Anand

Most EJB Servers I am familiar with offer 2 options -

1) Connection based timeout - usually set in the server's orb properties
(vendor dependent)
2) Trasaction based timeout - usually set in your deployed beans's DD or
the underlying OTM properties (vendor dependent)

--
Harsh
GemStone Systems
"Nothing exists except a-toms and space; everything else is opinion"
- Democritus, (arguably) The First Particle Physicist, 600 B.C. Greece



> 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