Register / Login
Win a copy of
Re-engineering Legacy Software
this week in the
Docker in Action
EJB and other Java EE Technologies
JTA and JDBC code
posted 4 years ago
I am bit confused when we connect to databse from
application.I have always worked on
I have questiions about JTA and ORM like hibernate.
1) Does they also use JDBC internally or they have separate mechanism altogether?
2) I have seen some JTA api code but everywhere on different sites it does not say how do we get connection and execute the statement.
3)Can we couple JTA with JDBC like
//Step1 begin Transaction with JTA
//Step2 Now JDBC code for getting the connection ,statement and executing them.
//Step3 End Transaction with JTA
can we do the step 2 as i mentioned above or connection , statement needs to be acquired with JTA apis like XADatasource.?
Understanding JTA internals
Entity bean and bean managed transaction
Make hibernate use JTA transaction in WAS 5.1
Transactions - JTA or JDBC?
How to use JTA with JPA