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 Propagation in Legacy System with Web interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Transaction Propagation in Legacy System with Web interface" Watch "Transaction Propagation in Legacy System with Web interface" New topic
Author

Transaction Propagation in Legacy System with Web interface

Roger Chang
Greenhorn

Joined: Jun 07, 2004
Posts: 5
Dear all,

Does anyone know how to control transaction propagation from EJB to
a legacy System with web interface, say perl, cgi.... since I dont
want to replicate business logic that has been written in the existing
system?

Using HTTPConnection does not address the transaction propagation problem..
..... get stuck!!!

Thanks

Regards


喜马拉雅 长城万里<br />辽阔的草原 绿色的森林<br /> <br />大千世界 人来人往<br />五湖四海 儿女情长
SAFROLE YUTANI
Ranch Hand

Joined: Jul 06, 2001
Posts: 257
Originally posted by Roger Chang:
Dear all,

Does anyone know how to control transaction propagation from EJB to
a legacy System with web interface, say perl, cgi.... since I dont
want to replicate business logic that has been written in the existing
system?

Using HTTPConnection does not address the transaction propagation problem..
..... get stuck!!!

Thanks

Regards


I'm assuming that you are trying to devise a method for booking a flight within the COBOL mainframe and including the mileage update to the Oracle database in the same transaction. The mileage database has a CGI/Perl web server for accessing the database from a "read only" context. The documentation does not mention that travel agens use the web-based system to update the mileage, it only says that it's used for getting the mileage. You can assume that travel agents don't use the web server for "updating" the Oracle database since that would be very prone to data integrity issues. What would happen if the agent books the flight then gets killed by a stray bullet immediately after.

If you want to include the mileage update in the "Pay for Itinerary" use case, then create a DAO that uses JDBC to access the Oracle database and call it from the EJB method that books and pays for the flight.

The documentation does not mention exactly how the mileage database gets updated based on new flight bookings, so you can assume that it is updated with some type of out-of-process procedure (cron-job, who know's), and you cannot reuse that procedure.
[ June 11, 2004: Message edited by: SAFROLE YUTANI ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transaction Propagation in Legacy System with Web interface