Package org.jboss.soa.esb.services.routing

Examples of org.jboss.soa.esb.services.routing.MessageRouterException


        _cbr.setConfigTree(config);
        _mapper = new ObjectMapper(config);
        try {
            dlQueueInvoker = new ServiceInvoker(ServiceInvoker.INTERNAL_SERVICE_CATEGORY, ServiceInvoker.DEAD_LETTER_SERVICE_NAME);
        } catch (MessageDeliverException e) {
            throw new MessageRouterException(e);
        }
       
        messageMulticaster.setAggregatorOnProperties(Aggregator.aggregatorOnProperties(config));
    }
View Full Code Here


                try {
                    _logger.debug("Sending message to the DeadLetterService");
                    dlQueueInvoker.deliverAsync(message);
                    throw new ActionProcessingException(error);
                } catch (MessageDeliverException e) {
                    throw new MessageRouterException("Failed to deliver message to Dead Letter Channel.", e);
                }
            } else {
                routeMessage(message, outgoingDestinations);
            }
        } catch (MessageRouterException e) {
View Full Code Here

                    _ruleReload, message, objectList);
            for (String destination : destinations) {
                if (_destinations.containsKey(destination)) {
                    outgoingDestinations.add(_destinations.get(destination));
                } else {
                    throw new MessageRouterException("Destination " + destination + " does not exist your configuration");
                }
            }
        } catch (ObjectMappingException ome) {
            throw new MessageRouterException(ome);
        }
        return outgoingDestinations;
    }
View Full Code Here

        throws MessageRouterException
   
        try {
            messageMulticaster.sendToSubset(message, outgoingDestinations);
        } catch (RegistryException e) {
            throw new MessageRouterException(e);
        } catch (MessageDeliverException e) {
            throw new MessageRouterException(e);
        }
    }
View Full Code Here

        // instruct class loader to load the Content Based  Router Implementation
        Class cbrClass = ClassUtil.forName(className, ContentBasedRouterFactory.class);
        // Try to get an instance of the CBR
        cbr = (ContentBasedRouter) cbrClass.newInstance();
    } catch (ClassNotFoundException cnfex) {
        throw new MessageRouterException("Content Based Router Implementation=" + className + " not found", cnfex);
    } catch (Exception e) {
      throw new MessageRouterException(className + " invokation problem. " + e.getLocalizedMessage(), e);
        }
        return cbr;
      }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.services.routing.MessageRouterException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.