0 Replies Latest reply on Feb 1, 2007 2:37 AM by Alan Feng

    Calling createTimer from SLSB causing loca tx warning

    Alan Feng Novice

      I have some SLSB that uses container managed default transaction settings. I also configured the JBoss DefaultDS to a separated production database.

      What happens is when I invoke


      I will get the following Warning message:
      01:20:46,065 WARN [TxConnectionManager] Prepare called on a local tx. Use of local transactions on a jta transaction with more than one branch may result in inconsistent data in some cases of failure.

      I think it is because that the timer is created with the DefaultDS, and my SLSB is using its own DataSource. Therefore, JBoss issues the warning as two different datasources are used in same transaction boundary.

      I wonder what I need to do to get rid of this warning, as I don't care about keeping a single transaction for both datasources. The createTimer() call can actually be treated as a separate transaction that has nothing to do with my main SLSB transaction.

      Maybe there is some EJB transaction settings I can set?

      Thank you,