3 Replies Latest reply on Feb 26, 2004 5:03 AM by pep grifell

    When to release JMS resource in container-mamager transactio

    jieshengz Newbie

      Hi,
      I have a stateless session bean which will use the java:/JmsXA to obtain connectionFactory, connection and session. The method transaction is container managed. When should I release these resource?
      If I release the resource before the method return, the JMS transaction (which is within the session) is managed by container and has not commited yet. Will this resource release before methor return cause the transation roll back? If I do not release resource before the method return, I will not have a reference to them and can not release them anymore.
      Advice and suggestion are really appreciated!

      jason