• 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
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Payment and Seat reservation....in the same tx ?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I'm modelling the last part of "Pay Itinerary".
Forgive the silly question: since CreditCardPayment and SeatReservation should be in the same transaction, it's not important which one is called first in the sequence diagram ? (So I can debit CC first and reserve Seat after- and viceversa)

My doubt arised because TransMaster communicates with the J2ee application using XML-RPC. I'm not sure if the transmaster Tx (XML-RPC) can join the Tx used for reserving a seat (written in Java), so if one tx fails also the other rollsback.

Hope somebody can shed some light on it....
Thanks
Marta
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think once we get the reply from TransMaster, we can programatically abort the transaction for a roll back. Do we need to specify all these things in the deliverables.
 
Marta De rossi
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I agree. Thinking over, I don't need a distributed transaction since I have a return code from the Web Service. I'll use that as discriminant for continuing or throwing Exception.
Thanks
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What happens if you don't get a reply?
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if we dont get the reply then treat this as a failure of the transaction and handle exception appropriatly.
 
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic