Link to home
Start Free TrialLog in
Avatar of venkatray
venkatray

asked on

JDBC Connection sharing in a JTA Transaction

I m using weblogic 8.1 and oracle XA driver.

If i create 2 different connections using the same DataSource in the same JTA transaction, will weblogic return 2 physical different connections or the same connection object.

the use case is that i use entity beans and DAO in the same transaction. entity beans to update data and DAO to read some data.

My concern is that, can DAO access data that is inserted by entity beans in the same transaction.

Weblogic docs say that in case of non-XA driver, the same connection object is used in  a single transaction.

Please advise,

thanks,
venkat
ASKER CERTIFIED SOLUTION
Avatar of yuvalg
yuvalg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial