The type of Datasource (javax.sql.Datasource or javax.sql.XADataSource) has
no bearing on when the Transaction will be commited. If you have set the TX
attribute as required then the transaction will be commited only if there is
no incoming transaction i.e the transaction is started just before the
method execution . In case the method of SLSB is invoked with a Transaction
Context, then only when this incoming transaction commits will the work done
by the method get comitted.
XADataSource allow for 2 PC across Resource Managers.
Amit Khanna,
Pramati Technologies.
----- Original Message -----
From: Komatineni, Satya <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 6:37 PM
Subject: Is it mandatory to have XADataSource for EJB transactional suppor
t?
> If I am manipulating a database through SLSBs via non-xa datasources,
would
> the transaction automatically commited by the EJB container (assuming I
have
> the transaction required attribute set)?
>
> Or do I need to have XA driver supporting the datasource to have this
> functionality.
>
> Your help is much appreciated
> Satya
>
>
===========================================================================
> 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".