Re: J2C and Oracle

Johan Eltes <[email protected]> Fri, 11 Nov 2005 15:36:41 +0100
Newsgroups gmane.comp.java.sun.connector
Message-ID <[email protected]>
Yes, if the following criteria are met, it may work:

- your mainframe resource manager (J2C) support XA
- Your oracle datasource is set up for XA
- Your code uses "java:comp/env/....." to lookup the datasource and
the JCA factory
- The code that performs trransactional activities through the
datasource and the JCA executes within the scope of an active JTA
transaction (userTransaction.begin()...your business
logic....userTransaction.commit() / userTransactionRollback).

/Johan

11 nov 2005 kl. 15.28 skrev SUBSCRIBE EJB-INTEREST anonymous:

> Hi,
> I use J2C 1.0.
> I have a stateless session bean with Bean Managed Transaction.
> In my BMT, I update Mainframe using J2C and then,update Oracle
> database.
> If one of the updates fails, I rollback the transaction.
> My question is will this work?
>
> ======================================================================
> =====
> To unsubscribe, send email to [email protected] and include in
> the body
> of the message "signoff CONNECTOR-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 CONNECTOR-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".