Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

one single transaction , several databases' connections

Thread view: 
YeTsun@gmail.com - 31 Jul 2007 08:29 GMT
Can one single transaction contain connections to several different
database?
Daniel Dyer - 31 Jul 2007 09:58 GMT
> Can one single transaction contain connections to several different
> database?

You need distributed transactions.  Search for JTA and "XA transactions".

Dan.

Signature

Daniel Dyer
http://www.uncommons.org

Roedy Green - 31 Jul 2007 10:43 GMT
On Tue, 31 Jul 2007 07:29:05 -0000, "YeTsun@gmail.com"
<YeTsun@gmail.com> wrote, quoted or indirectly quoted someone who said

>Can one single transaction contain connections to several different
>database?

If you do it with separate connections to each database, each
connection knows nothing about the others.  You need a tool that makes
several distributed databases look like one to your app.

This is the sort of thing you use EJB and JTA for.  See
http://mindprod.com/jgloss/ejb.html
http://mindprod.com/jgloss/jta.html

You might see what comes up when you google on "JDBC connection
pooling".
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Roedy Green - 31 Jul 2007 11:56 GMT
For some reason Telus is rejecting posts that contain blank lines or a
mention of whom I am replying to. So I have been forced for now to
scrunch up the messages. I will sign up again with Forte Agent
newsserver, but that will take a while.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.