title: Spring Distributed Transaction Involving RMI calls possible?
body: <p><strong>Background</strong></p>
  
  <p>I have Spring Client application that provisions a service to two servers using RMI. In the the client I save an entity to the database (easy) and make rmi calls to two servers with details of the entity. I am using Spring 3.0.2 on the servers and the client is a simple Spring-mvc site. </p>
  
  <p><strong>Requirements</strong></p>
  
  <p>My requirement is that if any of the rmi calls fail to the servers that the whole transaction rolls back, that is the entity is not saved on the client and if either rmi call was successful that this too rolls back.</p>
  
  <p>I am relatively new to Distributed transactions, but I guess I want a XA like transaction using RMI calls.</p>
  
  <p>I did find a nice link on the subject <a href="http://www.atomikos.com/Publications/DistributedTransactionPatterns" rel="noreferrer">here</a> but it does not mention the pattern for when calling two remote method calls to different servers. I would love to hear more about the subject in terms of recommended reading and also any pointers on how to achieve this using spring. Is using a transaction manager for this possible?</p>
  
  <p>Thank you.</p>