>From: Jason Dillon <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: [JBoss-dev] Retuning JMS RA connections?
>Date: Tue, 7 Aug 2001 15:51:00 -0700 (PDT)
>
> >
> > That sees like a bug, but it is important to remember that whats
> > actually is pooled is the the session, and that should be closed after
> > each method invocation.
>I was not closing the session properly.
>Should the connection close all of its sessions?
>
>I just read the javadoc for Session.close(), in it it says:
>
>   Closing a transacted session must rollback the in-progress transaction.
>
>and:
>
>   Closing a closed session must NOT throw an exception.
>
>The first one is a little scary since all examples that I have seen from 
>sun
>on using JMS inside of a EJB show close always being called.  Perhaps this
>is a javadoc bug?
>
>The current JmsSession will throw an javax.jms.llegalStateException when
>close() is called on a closed session, which should be easy to fix.
>
>--jason

That javadoc should only apply for non XASessions.  The transactions of an 
XASession is controlled by the TM and not the session methods.

Regards,
Hiram


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to