A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
EJB and other Java EE Technologies
JTA and JDBC code
Joined: Jun 16, 2011
Aug 07, 2011 05:16:55
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.?
Have you tried LearnNowOnline?
subject: JTA and JDBC code
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015