Re: Interceptor to get messages text

2010-12-27 Thread Dejan Bosanac
d are ready to > permanently stored in amq or kahadb?? > > thnx, > Petrucci > >> Date: Wed, 22 Dec 2010 17:30:46 +0100 >> Subject: Re: Interceptor to get messages text >> From: de...@nighttale.net >> To: users@activemq.apache.org >> >> Hi, >> >

RE: Interceptor to get messages text

2010-12-27 Thread Petrucci Andreas
:46 +0100 > Subject: Re: Interceptor to get messages text > From: de...@nighttale.net > To: users@activemq.apache.org > > Hi, > > try > > ((TextMessage)message).getText() > > but there are better ways to achieve what your code is doing he

Re: Interceptor to get messages text

2010-12-22 Thread Dejan Bosanac
Hi, try ((TextMessage)message).getText() but there are better ways to achieve what your code is doing here. Cheers -- Dejan Bosanac - FuseSource - The experts in open source integration and messaging. Email: dej...@fusesource.com Web: http://fusesource.com Twitter:  http://twitt

Interceptor to get messages text

2010-12-22 Thread Petrucci Andreas
Hi there, i have constructed an interceptor in order to get producers messages. the code is below. public class mypluginBroker extends BrokerFilter { public void send(ProducerBrokerExchange producer, Message message) throws Exception { /*System.out.println("Mes