Re: ConvertBodyTo is problem when transaction failed

2010-11-16 Thread Willem Jiang
On 11/17/10 12:29 AM, Claus Ibsen wrote: On Tue, Nov 16, 2010 at 3:10 PM, Kannan wrote: Hi I am convert the message body to given class type and save the object into DB.if transaction failed the message will send to dead letter queue. Now deadLetter queue will contain converted type messag

Re: Defining routes dynamically

2010-11-16 Thread Donald Whytock
I don't think choice() works that way. choice() is for selecting a single destination based on conditions; it does indeed stop at the first match. If you want multiple when() clauses to be hit, you'll need to give each one its own choice() end() wrapper. What do you mean by multiple filters occu

Error in MessageSupport when using JMSMessage

2010-11-16 Thread Tim
This is essentially a different incantation of CAMEL-2436 (https://issues.apache.org/activemq/browse/CAMEL-2436) A test case that reproduces the issue is below. If you have a bean that returns null when processing the body of a JMSMessage you will not get the null in the next endpoint but rather th

Re: Defining routes dynamically

2010-11-16 Thread Willem Jiang
You are making things complicate. Why don't you try to generate the spring DSL which is based on you business logic and use less simple expressions ? On 11/17/10 3:22 AM, Craig Taylor wrote: In an effort to avoid having to recompile / deploy our application for every customer / data iteration

Re: Help with Camel JAXB (SMX4 + Camel 2.1.0)

2010-11-16 Thread Willem Jiang
You are deploying the application context into a OSGi container, it's more complicate. Currently camel will try to use the application context classloader to load the jaxb context classes. So please make sure your spring application context bundle imports the generated package, and the genera

Re: ProducerTemplate with Spring and without

2010-11-16 Thread Willem Jiang
On 11/16/10 9:46 PM, serega wrote: The fundamental question is how do I test my routes with mock endpoints on both ends? The following code works. public class CamelTest extends CamelTestSupport { @EndpointInject(uri = "mock:result") protected MockEndpoint resultEndpoint; @Pro

Re: confusion with active mq

2010-11-16 Thread Willem Jiang
On 11/16/10 6:25 PM, Blair wrote: ok, that does sound right, I have tried to convert it to inonly but that didn't work well at all :) How do I put the response back? I have been reading the documentation for the last couple of days trying to work this particular problem out. If the message ex

Re: influcent processing of camel route while runtime

2010-11-16 Thread Willem Jiang
Hi, Maybe you can attach a customer processor after the error handler, when the route1 throws the exception, your customer processor can pause the route2. On 11/16/10 7:15 PM, alodde wrote: Hello everybody, Is there a way to influence the processing of camel route while runtime? I like to

Re: RecipientList repeating parent body

2010-11-16 Thread damianharvey
Hi Claus, Thanks for answering. I have a route/flow that calls a specific OS command to retrieve some XML (it's from a COBOL script). It is required to be called on it's own with a single Client or with a list of Clients. The main route (as per original post but with the response endpoint logic)

Defining routes dynamically

2010-11-16 Thread Craig Taylor
In an effort to avoid having to recompile / deploy our application for every customer / data iteration I'm attempting to store the route within the database and upon initialization, define the static routes represented therein (simple() match expression and target). I'm running into difficulty def

Re: ConvertBodyTo is problem when transaction failed

2010-11-16 Thread Claus Ibsen
On Tue, Nov 16, 2010 at 3:10 PM, Kannan wrote: > > Hi > >   I am convert the message body to given class type and save the object > into DB.if transaction failed the message will send to dead letter queue. > Now deadLetter queue will contain converted type message or original message > ? By defau

Re: Is that possible to override the properties that are loaded from classpath?

2010-11-16 Thread Claus Ibsen
Hi You can also implement your custom PropertyResolver and set it on the Properties component. Then you can control how the properties is resolved. But as Willem said, maybe the jasypt encryption stuff is something that works for you. Then you can use that out of the box. On Tue, Nov 16, 2010 at

Re: RecipientList repeating parent body

2010-11-16 Thread Claus Ibsen
On Tue, Nov 16, 2010 at 6:08 AM, damianharvey wrote: > > I have a route that uses RecipientList to call "exec" (see > http://stackoverflow.com/questions/4103499/apache-camel-exec-with-args) : > > from("seda:start") > .log("*** Started single body : ${body}") > .recipientList(simple("exec:GetCl

Re: TCP with SSL documentation/example?

2010-11-16 Thread wierob
Hi, thanks for your help. What I need is an example showing how to use the ApplicationContextRegistry, i.e. how to configure password, keystore, etc. in the context.xml. kind regards -- View this message in context: http://camel.465427.n5.nabble.com/TCP-with-SSL-documentation-example-tp3260204

ConvertBodyTo is problem when transaction failed

2010-11-16 Thread Kannan
Hi I am convert the message body to given class type and save the object into DB.if transaction failed the message will send to dead letter queue. Now deadLetter queue will contain converted type message or original message ? -- View this message in context: http://camel.465427.n5.nabble.c

Re: Cannot reply to a message routed more than once by Camel

2010-11-16 Thread Krystian
Hm.. But that kind of kills the possibility of using POJO producer/consumer, doesn't it? :/ -- View this message in context: http://camel.465427.n5.nabble.com/Cannot-reply-to-a-message-routed-more-than-once-by-Camel-tp3266433p3267329.html Sent from the Camel - Users mailing list archive at Nab

Re: Help with Camel JAXB (SMX4 + Camel 2.1.0)

2010-11-16 Thread sharma_arun_se
Hi, I hope somebody have solved this problem, as I can see there are number of posting for the problem but no real and satisfactory common solution to the problem. Let me discuss my issue: I have created jaxb bean as : In my routeBuilder.java Class, I have create route as : fro

Re: ProducerTemplate with Spring and without

2010-11-16 Thread serega
The fundamental question is how do I test my routes with mock endpoints on both ends? The following code works. public class CamelTest extends CamelTestSupport { @EndpointInject(uri = "mock:result") protected MockEndpoint resultEndpoint; @Produce(uri = "direct:start") protected

Re: confusion with active mq

2010-11-16 Thread Ashwin Karpe
Hi, Looks like you are using template.sendBodyAndHeaders(...) which is meant to send one way requests (InOnly). You need to use template.requestBodyAndHeaders(...) if you want a response back. You can get back the modified exchange in this case. Hope this helps. Cheers, Ashwin... - --

Re: influcent processing of camel route while runtime

2010-11-16 Thread Ashwin Karpe
Hi, Yes it is possible to influence the running of a route from another route. You can do this with a processor. The code would involve a> Getting a reference to the camel context. b> Getting and identifying the correct route from a list of route definitions c> Performing th

influcent processing of camel route while runtime

2010-11-16 Thread alodde
Hello everybody, Is there a way to influence the processing of camel route while runtime? I like to process two routes in parallel. Under special circumstances in route 1 (route 1 detected a problem), route 2 should be interrupted (if possible by throwing an exception). Thanks for your help, An

Re: confusion with active mq

2010-11-16 Thread Blair
ok, that does sound right, I have tried to convert it to inonly but that didn't work well at all :) How do I put the response back? I have been reading the documentation for the last couple of days trying to work this particular problem out. I'm looking for a good example - if you have one then

Re: multicast transaction

2010-11-16 Thread alodde
The question is maybe more general. Is it possible to associate a transaction with more then two threads? As multicast is able to process to operations (to) in parallel, for each operation (to) an own thread need to be started. Which results in the problem that one transaction context has to be