I had tried to do this first but I was getting a null back from the jndi
lookup for the transaction manager.

I am not certain if this is because I'm doing this from a servlet rather
than an EJB ? It is also currently packaged as a war not an ear so the
deployer may act differently ? It sounds the code for my transaction
handlers are basically right so I'll investigate the Jboss side of things
further...

Thanks, Colin

----- Original Message -----
From: "Bruce Snyder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, 18 May 2002 2:07
Subject: Re: [castor-dev] help with jboss transaction interaction with
castor..


> This one time, at band camp, Gray Jones said:
>
> See inline comments.
>
> GJ>Here's something I did to connect castor to jBoss.  In my case I want
jBoss
> GJ>to control the transactions so I don't call begin() and commit() when
using
> GJ>the jta transaction manager.  So its jboss that is starting and
stopping the
> GJ>transactions.  I'm not sure if this applies in your case or not
> GJ>
> GJ>jdo.setTransactionManager( "java:/TransactionManager" );
>
> This is also  what I've done with JBoss and I highly recommend it.
> It just alleviates one more thing that you don't need to worry about
> because JBoss will handle it for you.
>
> GJ>  -----Original Message-----
> GJ>  From: Colin Canfield [mailto:[EMAIL PROTECTED]]
> GJ>  Sent: Friday, May 17, 2002 11:05 AM
> GJ>  To: [EMAIL PROTECTED]
> GJ>  Subject: Re: [castor-dev] help with jboss transaction interaction
with
> GJ>castor..
> GJ>
> GJ>
> GJ>  Sorry I forgot to include that one... it gives a Persistence
exception: no
> GJ>transaction in progress for the current thread (I'm asuming the
ut.commit
> GJ>should be after the db.close ...
>
> This is incorrect. If the db object is closed before the transaction
> is committed, this will surely throw an exception. db.commit() must
> come before db.close().
>
> Bruce
> --
>
> perl -e 'print
unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to