How should look like exception route in asynchronous processing?

2014-07-14 Thread M314
I am about to modify camel based application by changing Processors onto AsyncProcessors. I do not fully understand how exception handling route should look like when route is consist of AsyncProcessors. Currently most of code looks like this: *Route parts*:

RE: How should look like exception route in asynchronous processing?

2014-07-14 Thread M314
What about AsyncCallback class? Should I just make a empty implementation like this: new AsyncCallback() { public void done(boolean sync) {} } and do not care about it, since I have exception handling already written in different route? -- View this message in context:

Application stuck in ProducerTemplate.sendBodyAndHeaders(...) line

2014-01-24 Thread M314
I have such simple class: @Component public class MessagesProducer { private String endpoint = activemq:queue:myqueue; @EndpointInject ProducerTemplate producer; public void send(BodyAndHeaders bah) { MapString, Object

How to get user in camel processor? (Spring security on REST Service + CXFRS Component)

2013-12-11 Thread M314
I use Spring security to protect access to rest service on server. Application use Camel framework to handle request/messages. So when request pass though spring security, then camel transform it to the Exchange class (I'm using CXFRS Component for that), and further processing is prepared by

Re: Apache Camel and Synchronized methods in processor

2013-10-31 Thread M314
In general my routing is quite complicated. Do it realy matter how exacly it looks like? Numbers of used threads areset by property one 'concurrentConsumers' for JmsConfiguration. MyBean distribute jobs between chlid applications (balance load of child applications) - with dynamic routing.

Apache Camel and Synchronized methods in processor

2013-10-30 Thread M314
In my routing messages pass myBean twice. Once I have: ... //some code .process(myBean) ... //some code .method(myBean, myMethod) ... //some code This bean have to be synchronized. I whould like just to add key word: 'synchronized' to methods: 'myMethod' and 'process', but those mehods are