Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic