Re: How to implement AsyncCallback for AsyncProcessor?

2016-05-02 Thread Sven Bauhan
On 05/02/16 13:57, Claus Ibsen wrote: On Mon, May 2, 2016 at 1:54 PM, Sven Bauhan <sven.bau...@ast.dfs.de> wrote: I have context component to implement a protocol in our company. As the success of a transmission depends a response from the receiver, it has to be handled asynchronously.

Re: How to implement AsyncCallback for AsyncProcessor?

2016-05-02 Thread Sven Bauhan
On 05/02/16 13:57, Claus Ibsen wrote: On Mon, May 2, 2016 at 1:54 PM, Sven Bauhan <sven.bau...@ast.dfs.de> wrote: I have context component to implement a protocol in our company. As the success of a transmission depends a response from the receiver, it has to be handled asynchronously.

Re: How to implement AsyncCallback for AsyncProcessor?

2016-05-02 Thread Sven Bauhan
into the calling application route. On 05/02/16 13:48, Claus Ibsen wrote: AsyncCallback is an implementation detail for component developers, and the EIPs that are shipped in Camel. What is your use-case? On Mon, May 2, 2016 at 1:40 PM, Sven Bauhan <sven.bau...@ast.dfs.de> wrote: On 04/29

Re: How to implement AsyncCallback for AsyncProcessor?

2016-05-02 Thread Sven Bauhan
On 04/29/16 21:29, Claus Ibsen wrote: On Wed, Apr 27, 2016 at 10:05 PM, Sven Bauhan <sven.bau...@ast.dfs.de> wrote: Hi, I found the explanation for an AsyncProcessor: http://camel.apache.org/asynchronous-processing.html But I do not understand how to implement the corresponding AsyncCa

Re: Handling timeout in Recipient list with aggregation statergy

2016-04-28 Thread Sven Bauhan
On 04/27/16 15:36, ravi narayanan wrote: Hi Claus, I tried implementing timeout aware aggregation strategy and implemented timeout method in it. now when ever timeout happens(complete Timeout/Partial Response) the Old exchange message is coming to timeout method. Of course it is the old

Re: Handling timeout in Recipient list with aggregation statergy

2016-04-28 Thread Sven Bauhan
On 04/27/16 15:36, ravi narayanan wrote: Hi Claus, I tried implementing timeout aware aggregation strategy and implemented timeout method in it. now when ever timeout happens(complete Timeout/Partial Response) the Old exchange message is coming to timeout method. Of course it is the old

How to implement AsyncCallback for AsyncProcessor?

2016-04-27 Thread Sven Bauhan
Hi, I found the explanation for an AsyncProcessor: http://camel.apache.org/asynchronous-processing.html But I do not understand how to implement the corresponding AsyncCallback. I did not find any example, how this can be done. As the done() method just gets the boolean flag, I do not know how

Context component with response reply protocol:how to handle timeout in onCompletion with exception?

2016-04-25 Thread Sven Bauhan
Hi, I am trying to implement a protocol (called ATS-M), which splits messages for transportation and aggregates on receiving. When the receiver gets correct segments, it returns response messages. The sender waits for these response messages. So it works asynchronously cause the sender cannot

Camel 2.15.5: exception propagation with seda queue

2016-04-07 Thread Sven Bauhan
Hi, I have a problem using a seda queue when propagating an exception to a caller route using errorHandler(noErrorHandler()). What I want to achieve is to wait for a response message and sending an exception to a caller route outside a camel context component, if no response received within

2 Error Handlers called for 1 exception

2016-04-04 Thread Sven Bauhan
Hi, I have a problem with the current Camel version 2.16.2. In version 2.15.5 it works without problems. -- I want to test the throwing of an exception when no response message is received within a given timeout. To create a timeout, I use multicast to clone the message and a

Re: Synchronisation and Aggregator

2014-07-01 Thread Sven Bauhan
On 06/27/14 22:46, Sven Bauhan wrote: Hi, I want to use a Synchronisation in a route with an Aggregator. So I implemented the onCompletion() method of the Synchronisation to send a response that the message was received correctly. My problem is that the onCompletion() method is called

Synchronisation and Aggregator

2014-06-27 Thread Sven Bauhan
Hi, I want to use a Synchronisation in a route with an Aggregator. So I implemented the onCompletion() method of the Synchronisation to send a response that the message was received correctly. My problem is that the onCompletion() method is called for each message segment, not only for the

How to catch reply messages in InOut MEP?

2014-06-12 Thread Sven Bauhan
To explain my problem I provide the route in a diagram of my context component. It is composed by 2 main routes for the different message directions. My problem is now, that I have to inform the aggregator, when the message has left the route via the MESSAGE_OUT endpoint. When the message can

Exception handling versus normal

2014-05-16 Thread Sven Bauhan
Hi, have a camel route to receive and decode incoming messages. Sometimes it can happen the external application on destination endpoint is not available. Then I get an exception which I can catch and send back an error message. If the received message is delivered correctly to the endpoint an

Re: How to catch a DirectConsumerNotAvailableException?

2014-05-16 Thread Sven Bauhan
to the endpoint? Thanks Sven On 05/13/14 20:20, Sven Bauhan wrote: Hi, I have a route with a direct endpoint going to a socket connection. It can be the the program on the other side of the connection crashes and the connection is shut down. My messages in the route cannot be delivered any

How to catch a DirectConsumerNotAvailableException?

2014-05-14 Thread Sven Bauhan
Hi, I have a route with a direct endpoint going to a socket connection. It can be the the program on the other side of the connection crashes and the connection is shut down. My messages in the route cannot be delivered any more. This happens especially from the aggregator in the route. In

Re: JaxbDataFormat escaping special characters

2013-08-27 Thread Sven Bauhan
On 08/26/13 16:43, Christian Posta wrote: At the moment, there is a filtering writer that camel uses by default, and unfortunately it's not configurable at the moment. If you open a JIRA i will get a patch for you to make it configurable. Hey thanks. I will open a ticket in Jira. But I need a

JaxbDataFormat escaping special characters

2013-08-26 Thread Sven Bauhan
Hi, as JAXB does not escape special characters when marshaling, there exists a solution to use a special EscapingXMLStreamWriter (see http://blog.lesc.se/2009/03/escape-illegal-characters-with-jaxb-xml.html). I used this in combination with org.apache.commons.lang.StringEscapeUtils to

Re: Bug in org.apache.camel.main.Main#doStop() ?

2013-07-02 Thread Sven Bauhan
I opened a bug report: https://issues.apache.org/jira/browse/CAMEL-6504 On 06/28/13 12:10, Christian Müller wrote: I cannot look into the code yet, but I think this should be fixed. Feel free to create a JIRA. Best, Christian Sent from a mobile device Am 28.06.2013 10:54 schrieb Sven Bauhan

Bug in org.apache.camel.main.Main#doStop() ?

2013-06-28 Thread Sven Bauhan
Hi, I think I found a bug in org.apache.camel.main.Main#doStop(): When I call a Camel application with parameter -h all parameters are printed an the program exits. But it is no clean exit; it throws an java.lang.IndexOutOfBoundsException. The reason for this is the expression in doStop(): +

ONC-RPC

2013-06-05 Thread Sven Bauhan
Hi, I wonder if there is a Camel endpoint for ONC-RPC (also called SUN RPC). I found endpoints for XML-RPC and SOAP but no one for ONC-RPC Can someone tell me, if such an endpoint exist or is planned? Perhaps I could use one protocol definition in Apache MINA, but I did not find it there

Re: AggregationStrategy and wrong sequence order

2013-04-29 Thread Sven Bauhan
Ok, new issue: https://issues.apache.org/jira/browse/CAMEL-6325 On 04/27/13 08:06, Claus Ibsen wrote: Hi Yeah that may be possible. Feel free to log a JIRA ticket. On Fri, Apr 26, 2013 at 6:33 PM, Sven Bauhan s...@ast.dfs.de wrote: Ok, but then the timeout for the aggregation can occur

AggregationStrategy and wrong sequence order

2013-04-26 Thread Sven Bauhan
Hi, I try to implement a fault handling in my AggregationStrategy for missing segments or a wrong sequence order. The standard for my protocol says, when the segments are not received in correct order, the receiver shall send an error response and withdraw all previously received segments

Re: AggregationStrategy and wrong sequence order

2013-04-26 Thread Sven Bauhan
You can just store some state on the oldExchange before throwing that exception in the aggregate method. So the next time, you can find that state on oldExchange and then regard it as null. On Fri, Apr 26, 2013 at 3:49 PM, Sven Bauhan sven.bau...@ast.dfs.de wrote: Hi, I try to implement

Re: Aggregator and closeCorrelationKeyOnCompletion

2013-04-22 Thread Sven Bauhan
then its not completed yet. On Thu, Apr 18, 2013 at 12:25 PM, Sven Bauhan sven.bau...@ast.dfs.de wrote: Hi, I use an aggregator to combine segmented messages (as the channel has limited size). For each received segment a response message is expected with the appropriate response status. As correlation

Error propagation in route

2013-04-22 Thread Sven Bauhan
Hi, I try to understand how to handle with errors in messages within a camel route. I have the following route in a Camel context component: FailureReceiveProcessor fails = new FailureReceiveProcessor(); onException(MessageReceiveException.class).handled(false).process(fails);

Aggregator and closeCorrelationKeyOnCompletion

2013-04-18 Thread Sven Bauhan
Hi, I use an aggregator to combine segmented messages (as the channel has limited size). For each received segment a response message is expected with the appropriate response status. As correlation key the message ID is used; and each segment has a segment number. When a complete message

Incomplete Registry interface [was: base class for context component?]

2013-03-18 Thread Sven Bauhan
Hi, I think for the interface Registry a method bind() should be defined. Here comes the explanation why: Finally I managed to create a camel context component to put a route in a black box. But I want to put this context component into a library and hide it behind an API. Starting point

Re: base class for context component?

2013-03-13 Thread Sven Bauhan
use the DefaultCamelContext to define your own context, with it's own name as this one is blackbox, and it's own routes. Taariq On Mon, Mar 11, 2013 at 11:21 AM, Sven Bauhan s...@ast.dfs.de wrote: On 03/09/13 20:40, Henryk Konsek wrote: Hi Sven, I'm trying to build my own context component

Re: base class for context component?

2013-03-13 Thread Sven Bauhan
On 03/13/13 12:50, Taariq Levack wrote: I got the idea that you really want to define an instance of the DefaultCamelContext, and not the new class/implementation that you are asking about. I did not mean to create a new implementation of DefaultCamelContext. I want to create a class for a

Re: base class for context component?

2013-03-11 Thread Sven Bauhan
On 03/09/13 20:40, Henryk Konsek wrote: Hi Sven, I'm trying to build my own context component as described in http://camel.apache.org/context.html. Actually Context Component is ready to use out of the box. You don't need to create your own. Or if you have to, please share with us the

Re: Reply messages from aggregator

2013-03-11 Thread Sven Bauhan
On 03/10/13 02:53, Christian Müller wrote: Can you explain in more detail what you want to do? I didn't understand your requirement... I have to implement a protocol called ATS-M. It splits messages into segments for transmission. At the receiver the segments are aggregated to the original

base class for context component?

2013-03-08 Thread Sven Bauhan
not make sense for a context component. Is there a better interface for this? Or should i create my own class without interface? Thanks, Sven Bauhan

Reply messages from aggregator

2013-03-01 Thread Sven Bauhan
automatically (JAXB)? Thanks, Sven Bauhan