camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arthanarisamy Annamalai <>
Subject Handling EJB Timeout
Date Thu, 03 Apr 2014 11:21:18 GMT
To handle timeout on client side for EJB service call, i used
Future<Exchange> and had set time out time over future object. Having this,
both success and time out cases are working fine.

But the problem here is when i take thread dump i could see that the thread
is in waiting state.
When i manually stop and start producer template there are no threads in
waiting state. As per camel guidelines if i allow Spring to inject Producer
Template, starting, stopping and releasing resources will be handled by
Spring itself, but i am not sure whether the resources are released as the
thread is in waiting state.

Or is there a better way to handle time out? If its a HTTP request,
camel-http component has options to set timeout and not in case of camel-ejb

Any suggestions will be of a great help as we are fine tuning out product's
performance and most of the thread's waiting are related to Camel Producer
Template only.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message