File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "Transaction" Watch "Transaction" New topic
Author

Transaction

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
How can a transaction be coordinated with legacy systems or Java systems outside the container/server?
Unni Kuttan
Greenhorn

Joined: Jul 12, 2002
Posts: 11
Yes, J2EE uses JTA for transactions and since JTA supports distributed transactions, legacy apps, application servers, etc can involved in a single transaction.
Emil Kirschner
Greenhorn

Joined: Jul 10, 2002
Posts: 10
Originally posted by JiaPei Jen:
How can a transaction be coordinated with legacy systems or Java systems outside the container/server?

in order to access a legacy system you need some sort of connector. If you want your connector to enlist with ongoing transactions in your app-server, the connector must be JTA complient, meaning that the classes that represent resources (like a jdbc connection) in your legacy system must implement javax.transaction.xa.XAResource and the manager / factory that allow you to obtain those resources must ba capable to detect ongoing transactions and enlist your resource with it.
Most commercial connectors are JTA complient but you can find situations (like when connecting to an AS400 queue using JTOpen) when you'll have to implement transaction aware access classes yourself.
Of course if you use a JCA compliant connector all becomes much more simple.
Cheers,
e.
SJ Adnams
Ranch Hand

Joined: Sep 28, 2001
Posts: 925
search on google for transaction monitor
 
 
subject: Transaction
 
Threads others viewed
How can we handle transactions using Java Connector Architecture?
File Operation + JDBC
BC4J Transaction Problem
Points to consider when extending functionality of a system ...
WA #1.....word association
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture