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 component. 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: http://camel.465427.n5.nabble.com/Handling-EJB-Timeout-tp5749722.html Sent from the Camel - Users mailing list archive at Nabble.com.