1 Reply Latest reply on Oct 8, 2001 11:26 PM by davidjencks

    transaction with external ejb-ref does not rolled back

    ceyhun_ozgun


      Hi,

      I have a transaction trouble.

      I have an app that uses 2 different DBs and I have 2 different jar files for beans. Beans in first jar have external ejb-ref's for beans in second jar. One session bean in first jar creates an entity bean in second jar and an another entity bean in first jar. And then it rolls back the transaction. All transaction attributes for methods is 'Required'.
      I want to have two phase commit for two different DBs.


      When I have deployed these jars on the same JBoss server it works ok.

      But when I deployed this jars on different JBoss servers, first server rolls backs all beans but second server does not rolls back. Even, when I debug JBoss, I found second bean does not included in transaction, and no locks acquired on second DB.

      But two phase commit scenario when I deployed on the same server it works.

      Please could anybody tell me what the problem is?.
      Am I missing something?

      thanks in advance.