Handle Transaction on differents EARs

Posted by rfders on Stack Overflow See other posts from Stack Overflow or by rfders
Published on 2009-12-14T20:03:05Z Indexed on 2010/04/30 19:57 UTC
Read the original article Hit count: 274

Filed under:
|
|
|
|

Hello, what is the best practice to handle multiple EARs and the same transaction, as far as we know we need to apply XA concepts in order transaction works correctly. but apparently in currents project that we've been working on, this is not strictly necessary for creates and updates; however if we try to retrieve any collection from an entity we get an error that say there its not an active transaction or it was closed, but if we update Entity A in Ear A and update Entity B in Ear B it works perfectly when Entity A and Entity B has different datasources, at this point we are so confused about that, because we haven't configure any xa datasource yet. how is the best approach to work with this. transaction are handles by beans and not by the container and datasource are different between EAR A and EAR B

© Stack Overflow or respective owner

Related posts about jta

Related posts about java