Re: Leveraging CXF Asynchronous processing when MEP is InOut

2013-07-23 Thread Claus Ibsen
On Tue, Jul 23, 2013 at 11:57 AM, Edwin  wrote:
> Since my cxf call has an MEP of InOut, is it possible to achieve the cxf
> asynchronous behavior?
>
> Or is the cxf asynchronous behaviour only associated with an MEP of InOnly?
>

No camel-cxf is async by default, unless you force it to be
synchronous with synchronous=true.

The Camel CXF producer uses the org.apache.cxf.endpoint.ClientCallback
from Apache CXF

> Thanks,
> Edwin
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Leveraging-CXF-Asynchronous-processing-when-MEP-is-InOut-tp5735904p5736102.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Re: Leveraging CXF Asynchronous processing when MEP is InOut

2013-07-23 Thread Edwin
Since my cxf call has an MEP of InOut, is it possible to achieve the cxf
asynchronous behavior? 

Or is the cxf asynchronous behaviour only associated with an MEP of InOnly?

Thanks,
Edwin 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Leveraging-CXF-Asynchronous-processing-when-MEP-is-InOut-tp5735904p5736102.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Leveraging CXF Asynchronous processing when MEP is InOut

2013-07-22 Thread Claus Ibsen
cxf is asynchronous.

If a thread is blocking somewhere it can be because you use direct
component and what calls that may be blocking.

On Fri, Jul 19, 2013 at 1:39 PM, Edwin  wrote:
> Hi Folks,
>
> I have a route which looks like this:
>
> from("direct:start").setExchangePattern("InOut").to("cxf:myEndpoint").to("bean:myDAO,method:updateRecord")
>
> When the response is received from myEndpoint, the database record is
> updated.
>
> myEndpoint typically takes about 5secs to generate a response so I would
> prefer to send the requests asynchronously and not hold up the executing
> thread while it waits for a response.
>
> I know the cxf component attempts to do this by default however since the
> MEP is InOut, I believe the thread waits for a response.
>
> Is there anyway to achieve asynchronous sending of the requests while
> keeping the MEP at InOut?
>
> Any thoughts are much appreciated.
>
> Thanks,
> Edwin
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Leveraging-CXF-Asynchronous-processing-when-MEP-is-InOut-tp5735904.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Re: Leveraging CXF Asynchronous processing when MEP is InOut

2013-07-22 Thread gilboy
Hi 

I also had the same query. Would be very interested to hear any response on
this query

Thanks





--
View this message in context: 
http://camel.465427.n5.nabble.com/Leveraging-CXF-Asynchronous-processing-when-MEP-is-InOut-tp5735904p5736049.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Leveraging CXF Asynchronous processing when MEP is InOut

2013-07-19 Thread Edwin
Hi Folks,

I have a route which looks like this: 

from("direct:start").setExchangePattern("InOut").to("cxf:myEndpoint").to("bean:myDAO,method:updateRecord")

When the response is received from myEndpoint, the database record is
updated.

myEndpoint typically takes about 5secs to generate a response so I would
prefer to send the requests asynchronously and not hold up the executing
thread while it waits for a response. 

I know the cxf component attempts to do this by default however since the
MEP is InOut, I believe the thread waits for a response.

Is there anyway to achieve asynchronous sending of the requests while
keeping the MEP at InOut?

Any thoughts are much appreciated.

Thanks,
Edwin





--
View this message in context: 
http://camel.465427.n5.nabble.com/Leveraging-CXF-Asynchronous-processing-when-MEP-is-InOut-tp5735904.html
Sent from the Camel - Users mailing list archive at Nabble.com.