Re: JMS Exception

2009-02-19 Thread Claus Ibsen
Hi Could you show a bit more, eg the camel route? And what versions of SMX and Camel are you using? And what JMS broker, is it ActiveMQ? The error you get is: Caused by: java.lang.UnsupportedOperationException: JMS message is not a TextMessage Looks like the payload is expected as a javax.jms.Te

JMS Exception

2009-02-19 Thread Nivetha Shri
Hi All Am getting the following exception when i send an xml message to a output queue using apache camel and servicemix. My xml is a valid one Here is the stack trace: WARN - DefaultMessageListenerContainer - Execution of JMS message listener failed javax.jms.JMSException: Error sending JBI e

Re: ActiveMQ DLQ

2009-02-19 Thread Ashwin Karpe
Hi, Please check out this link dealing with exception handling. This area has been substantially revamped in Camel 1.5.x.x. It should answer all of your questions http://camel.apache.org/exception-clause.html http://camel.apache.org/exception-clause.html pevgen wrote: > > Hi. > How can i sav

Re: Using Apache Camel Asynchronously

2009-02-19 Thread Ashwin Karpe
Hi, Camel is primarily a router surrounded by other capabilities (processors, interceptors etc). Camel mediates between 2 or more technology endpoints and applies rules, transforms, integration patterns along the way. Asynchronous behavior primarily involves setting up listeners backed by an eve

Re: Newbie Question - Content Filtering

2009-02-19 Thread Ashwin Karpe
Hi, Your approach is valid and will work as expected. However there is no need for this header field to be added. I would add an exception clause to deal with any exceptions thrown by the DBFilter. For more on exception handling check out http://camel.apache.org/exception-clause.html http://cam

Using Apache Camel Asynchronously

2009-02-19 Thread AnuragS
Does it make sense to use Apache Camel for making asynchronous calls? Or the old fashioned MoM is good enough. -- View this message in context: http://www.nabble.com/Using-Apache-Camel-Asynchronously-tp22111353s22882p22111353.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Newbie Question - Content Filtering

2009-02-19 Thread Jon Anstey
Try filtering using a custom bean expression instead. Something like this from("jms:queue:testQueue").filter().method("myTestDBFilter", "hasNewContent").to("jms:queue:otherTestQueue"); Where your bean would be something like this class TestDBFilter { public static boolean hasNewConte

Newbie Question - Content Filtering

2009-02-19 Thread triswork
I am new to Camel and am trying to migrate some code I wrote using the javax.jms classes across to Camel. I have a specific problem and I am not too sure if my approach is the optimal solution. I would really appreciate some feedback from the veterans on this list. Basically, my application perfo

Re: Persist messages body between different endpoints ?

2009-02-19 Thread Claus Ibsen
On Thu, Feb 19, 2009 at 4:47 PM, cmoulliard wrote: > > Claus, > > Will the lock on the file removed when the process will reached the last > step route - so in this case, when the messages will go to the queue : xx ? > > Can you confirm or infirm this ? Yes the lock file is of course delete when t

Re: Persist messages body between different endpoints ?

2009-02-19 Thread cmoulliard
Claus, Will the lock on the file removed when the process will reached the last step route - so in this case, when the messages will go to the queue : xx ? Can you confirm or infirm this ? Does it makes sense to design the route like this to avoid to lost messages and objects ? from("file=///

Re: Persist messages body between different endpoints ?

2009-02-19 Thread Claus Ibsen
On Wed, Feb 18, 2009 at 3:26 PM, cmoulliard wrote: > > Hi, > > I would like to know if a persisting (like serialization of messages) exist > and can be activated easily between different endpoints ? > > Let's see what I'm thinking about with an example > > from("file=").unmarshal().to("bean=A"