aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JTS and JDBC in J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JTS and JDBC in J2EE" Watch "JTS and JDBC in J2EE" New topic
Author

JTS and JDBC in J2EE

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hi all,
I have a doubt regarding JTS and JDBC pools
Whats the difference between JTS pool and JDBC connection pool
Which is advantageous ,why and in what situation should I use JTS pool?
Thanx in advance
pavi kavi
Ranch Hand

Joined: Mar 01, 2001
Posts: 56
as far as i know we use JTS driver to connect connection pooling .
In weblogic they providded TXdatasource which uses this jts driver inbuilt to connect to the databse thru connection pooling
pavithra
Originally posted by Mary, Cole:
Hi all,
I have a doubt regarding JTS and JDBC pools
Whats the difference between JTS pool and JDBC connection pool
Which is advantageous ,why and in what situation should I use JTS pool?
Thanx in advance

daman sidhu
Ranch Hand

Joined: Aug 19, 2000
Posts: 184
Hi,
Using JTS and JDBC Connection pooling are 2 different things, with JDBC pooling u just maintain a pools of connections to the database which help to improve the performance of ur system, but with JTS which is the Java Transcation Services, and for using them we have the Java Transcation API short JTA, in that we can obtain and run our programs in Expilict Trancations which we can manage oursevles, this feature one cant get from JDBC, thus the transcaion which the client can make using JTA can be propogated to EJB's which can run in the client transaction and the container automatically rolls back all the updates to the DB if the tranction fails, or else if we can deteremine such a conditin the we can use Usertrancation.rollback() method.
Hope this helps,
Cheers,
Daman
 
Consider Paul's rocket mass heater.
 
subject: JTS and JDBC in J2EE