Check your vendor specific documentation. Many app servers support this
(Someone just posted Weblogic, and I know Orion allows this), but it's
not in the spec--so you have to check your vendor specific documentation
to find out how to do it for your application.

-joel shellman
http://www.ants.com/

> Anand Sankaran wrote:
> >
> > Hi all
> >
> > Is there a way that a SessionBean can timeout if one of its operations are
> > taking too long?
> >
> > For instance, if I have a business method
> >
> > public void doSomeThingForALongTime()
> > {
> >         blah();
> >         foo();
> >         veryLongProcessMethod();
> >         catchTheRat();
> > }
> >
> > If veryLongProcessMethod() does not return after a fixed amount of time, can
> > the business method throw an exception or some thing?
> >
> > Is there a way to do this?
> >
> > - anand
> >
> > Anand Kumar Sankaran

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to