4 Replies Latest reply on Feb 13, 2004 9:45 AM by Kabir Khan

    local tx question

    peter Apprentice

      Hi,

      I am using postgresql, jboss3.2.3.
      Also, entity bean is used.

      The following WARN is displayed, who can give me some explain? ANd how to solve this?

      15:03:52,581 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.

      thanks a lot

      yang

        • 1. Re: local tx question
          Juha Lindfors Master

          PostgreSQL does not support two phase commit, see the FAQ for more information.

          • 2. Re: local tx question
            peter Apprentice

            hI,

            Thanks for replying.

            Actually i don't require JMS to support transaction. But I need OTHER connection management features SUCH AS CONNECTION POOLING.

            in the jms-ds.xml file, there are following codes:

            < tx-connection-factory>
            < jndi-name>JmsXA< /jndi-name>
            < xa-transaction/ >
            < adapter-display-name>JMS Adapter< /adapter-display-name>
            < config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic< /config-property>
            < security-domain-and-application>JmsXARealm< /security-domain-and-application>
            < /tx-connection-factory>


            If i just remove the "< xa-transaction/ >", does this mean the connection is still managed properly and without transaction feature.

            Or I just need to set the JNDI in jboss.xml file to be one of value set in the uil2-service.xml file? (I mean there is no need to use jms-ds.xml file).



            Thanks

            yang

            • 3. Re: local tx question
              peter Apprentice

              Hi,

              I try to modify my jboss.xml file so that it includes :

              < resource-ref >
              < res-ref-name>jms/LocalQueueConnectionFactory< /res-ref-name>
              < jndi-name>java:/ConnectionFactory< /jndi-name>
              < /resource-ref>

              I try to use jndi-name here instead of using resource-name.

              But the jms client running in another JVM cannot receive the message in the jboss queue.

              Any suggestion!

              yang

              • 4. Re: local tx question
                Kabir Khan Master

                Which Invokation Layer are you using? AFAIK the default in JBoss 3.2.3 is the JVM IL, which is the fastest but requires the JMS client and server to run in the same JVM.

                IF (!!!) I remember correctly, when we were trying out the different ILs, we changed the QueueFactoryRef and TopicFactoryRef attributes of the JMSProviderLoader MBean config in:
                server/default/deploy/jms/jms-ds.xml

                The different Invokation Layers are defined in:
                server/default/deploy/jms/xxx-il-service.xml