The answer is Yes.
U should manage the JDBC connections as u would do normally.
The container picks up the correct connection associated with the transaction
everytime.

But make sure u r using the correct location from the data-sources.xml.
The location to use is 'ejb-location'

Hope this helps

- Kishor





Mikael St

�ldal <[EMAIL PROTECTED]> on 07/19/2001 10:48:49 AM

Please respond to Orion-Interest <[EMAIL PROTECTED]>

To:   Orion-Interest <[EMAIL PROTECTED]>
cc:    (bcc: Kishore Atigre)

Subject:  EJB, JDBC and transactions



Can I use container managed transactions in EJB:s which make explicit JDBC
calls (BMP entity beans or session beans)?

How should JDBC Connections be managed in that case?

If several methods, possibly from several EJB:s are involved in a single
transaction, do they all have to work on the same JDBC Connection? If so, do
I have to pass it around manually?





Reply via email to