0 Replies Latest reply on Jul 16, 2002 5:25 AM by chika

    Timeout in Stateless Session bean

    chika

      Hi,
      I'm using JBOSS2.4.4.I want to set timeout for a stateless session bean.I had tried to programatically set the value but nothing seems to happen.

      UserTransaction tx = sessionContext.getUserTransaction();
      tx.setTransactionTimeout(30);
      tx.begin();
      // do certian piece of work
      tx.commit();

      Can anybody let me know how to set session timeoot in deployment descriptor for stateless session bean.

      Rgds,
      Shikha