The container assures if using a shared connection model, that all classes
doing a lookup() for a connection's datasource are returned the same
connection.  So if ABean is marked as TX_REQUIRED and it creates an instance
of BClass and BClass does a JNDI lookup for a DataSource and gets a
connection, this would be the same connection returned to ABean itself.

Dave Wolf
Internet Applications Division
Sybase

----- Original Message -----
From: "Samuel Abraham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 22, 2001 3:17 AM
Subject: Relation between Transaction and Connection


> hi,
> Is there any association between a transaction and the connection used for
> the transaction?
> For example:
> I have a Session bean with a method which is having TX_REQUIRED as
> attribute.
> In the method different classes(normal classes not Entity beans) modelling
> tables are used for INSERT/UPDATE etc.
> Lets assume that all these classes create a new connection and do the
work.
> Now if an operation in one of these classes fail will the whole operation
in
> the Session bean method rollback?
> TIA
> sam
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to