• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Transaction Propagation in Legacy System with Web interface

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 can't take it! You are too smart for me! Here is the tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic