1 Reply Latest reply on Sep 8, 2003 1:27 PM by Adrian Brock

    Prepare called on a local tx. warning

    nic7834 Newbie

      Good day,

      I am using a container managed entity bean which in its ejbPostCreate() method publishes a message to a topic.

      The wish is that if the entity bean fails to create, then the message, as part of a transaction, is not placed in the topic.

      The JNDI resource reference for my JMS TopicConnectionFactory is:

      When my code runs I get the following waring:
      11:05:02,274 WARN [TxConnectionManager$LocalXAResource] 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 assume that this is a two phase commit issue of transaction management for my database (MySQL) and JMS.

      Would appreciate any tips on resolving the issue from anyone.

      Much appreciated.