On 7 Aug, Hiram Chirino wrote:
>
>
>
>>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.
>
Yea, because if it was not we would get quite weird behaviour. Bean A
calls B, B uses the JMS RA and closes the session, bean A after that
updates a database.
If session close rolled the transaction back we would never be able to
save to the database in this example ;-(
//Peter
> 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
--
------------------------------------------------------------
Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems Architect WWW: http://www.tim.se
Email: [EMAIL PROTECTED] WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
------------------------------------------------------------
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development