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*:
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:
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
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
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.
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