Re: Problem trying to route with Interceptors

2009-03-23 Thread Andreas Gies
lse if (substr.matches("blue\\s*")) { messageSend.setDestination(this.getDestinations()[7]); } super.send(producerExchange, messageSend); } } -- View this message in context: http://www.nabble.com/Problem-trying-to-rout

Re: Problem trying to route with Interceptors

2009-03-23 Thread Andreas Gies
messageSend.setDestination(this.getDestinations()[2]); } else if (substr.matches("blue\\s*")) { messageSend.setDestination(this.getDestinations()[7]); } super.send(producerExchange, mes

Re: Problem trying to route with Interceptors

2009-03-23 Thread DanielR
>>> } >>> >>> public Broker installPlugin(Broker broker) throws Exception { >>> return new MsgInterceptorPluginRouter2(broker); >>> } >>> >>> public void send(ProducerBrokerExchange producerExchange, Message >>> m

Re: Problem trying to route with Interceptors

2009-03-23 Thread Andreas Gies
d); } } -- View this message in context: http://www.nabble.com/Problem-trying-to-route-with-Interceptors-tp22606463p22663866.html Sent from the ActiveMQ - User mailing list archive at Nabble.com. --- Mit freundlichen GrĂ¼ssen - Kind Regards Andreas Gies Principal Consultant Ope

Re: Problem trying to route with Interceptors

2009-03-23 Thread DanielR
t; String substr = content.substring(0,4); > > if (substr.matches("red\\s*")) { > messageSend.setDestination(this.getDestinations()[2]); > } > else if (substr.matches("blue\\s*")) { > mes

Problem trying to route with Interceptors

2009-03-19 Thread DanielR
ns()[7]); } super.send(producerExchange, messageSend); } } -- View this message in context: http://www.nabble.com/Problem-trying-to-route-with-Interceptors-tp22606463p22606463.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.