• Post Reply Bookmark Topic Watch Topic
  • New Topic

Providing a Timeout Feature for EJB, Web Services invocation

 
Moha Shaf
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application invokes remote EJBs and WebServices. And it happens quite frequently that these services take very long time than what is accepted. As results from these services are not mandatory, I want these invocations to timeout after a certain time (say 5 seconds) so that the flow is not stuck at this point. Is there an elegant way to implement this feature?
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moha,

Check with your application server. It should be very possible to set EJB or transaction time-outs.

Cheers,
Reza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!