Anand,

If you're using WLS, there is one setting in weblogic-ejb-jar.xml.

   <transaction-descriptor>
      <trans-timeout-seconds>20</trans-timeout-seconds>
   <transaction-descriptor>

I did not try this myself - but this could help you.

Subbu

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