Advertisement

09.19.2007 at 09:10PM PDT, ID: 22840528
[x]
Attachment Details

EJB and Client Side Timeout

Asked by brian_sweeney in Enterprise Java Beans (EJB)

Tags: ejb, timeout, client

Hi
I have a java servlet which accesses a stateless  EJB on JBoss on a remote server, using code
like
Object objref = initial.lookup("TestBean");
CalculatorRemoteHome home = (TestRemoteHome) PortableRemoteObject.narrow(objref,TestRemoteHome.class);
TestRemote echo = home.create();
 int retval=echo.do_long_request();

I want to set a timeout on the method "do_long_request"
ie
1)  Request data from ejb
2)  if ejb requires more the say 30 seconds to process request and send  back result data to client then
   timeout on the client side and show a kind of "request took too long" error page.  

Is is possible to set such a timeout , either by a config file setting or programatically?
Thanks in advance

brian sweeney
Start Free Trial
 
Loading Advertisement...
 
[+][-]10.04.2007 at 08:24AM PDT, ID: 20014934

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Enterprise Java Beans (EJB)
Tags: ejb, timeout, client
Sign Up Now!
Solution Provided By: rama_krishna580
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.05.2007 at 11:10AM PST, ID: 20414017

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628