• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Marta De rossi
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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
 
Vidyasagar Guduru
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Peter Warde
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you don't get a reply?
 
Alok Sharma
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if we dont get the reply then treat this as a failure of the transaction and handle exception appropriatly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic