0 Replies Latest reply on Jun 1, 2006 9:52 PM by Shankar Vai

    Performing a Global Transaction on  multiple EMs

    Shankar Vai Newbie

      Hi All,

      I have a use case where the application has to complete a global transaction by calling various components. Each component maintains its own EnityManagerFactory and persists data [using a JPA provider].

      Would it be possible to commit/rollback transactions globally on the multiple EntityManagers., i.e., if any one component's EM fails would the application [assuming running on a managed environment] be able to rollback other EM operations that have been performed on the database so far?.

      I was looking into the JBoss Trailblazer - it speaks of a single EntityManager using a session bean.

      Any reply would be appreciated.

      Thanks
      Karthik