0 Replies Latest reply on Jul 28, 2014 1:53 PM by Sankar Radhakrishnan

    WMQ Resource Adapter warning: MQJCA4005:Distributed transactions are not allowed in client mode

    Sankar Radhakrishnan Newbie

      Migrating websphere application into Jboss EAP 5.x in jboss developer studio.

       

      Initialy in websphere my application listens with the help of websphere default workmanager.

       

      Now i am using org.springframework.jms.listener.DefaultMessageListenerContainer and wmq.jmsra.rar file (copied in the deployfolder) for this

       

      Below is the entry in applicationContext.xml file

      <bean id="mdpConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">

       

      <property name="jndiTemplate">

       

       

      <ref bean="mdpJndiTemplate"/>

       

      </property>

       

      <property name="jndiName">

       

       

      <value>java:jms/accountQueueCF</value>

       

      </property>

      </bean>

       

      <bean id="transactionResponseQ" class="org.springframework.jndi.JndiObjectFactoryBean">

       

      <property name="jndiTemplate">

       

       

      <ref bean="mdpJndiTemplate"/>

       

      </property>

       

      <property name="jndiName">

       

       

      <value>java:jms/TransactionResponseQ</value>

       

      </property>

      <property name="lookupOnStartup" value="true"/>

      </bean>


      <bean id="transactionMessageListener" class="com.acc.adapter.mdp.QueueTransactionStatusListener" lazy-init="default" autowire="default"dependency-check="default"/>


      <bean id="jmsContainerTransactionFlagMessage" class="org.springframework.jms.listener.DefaultMessageListenerContainer">

       

      <property name="connectionFactory" ref="mdpConnectionFactory"/>

       

      <property name="destination" ref="transactionResponseQ"/>

      <property name="messageListener" ref="transactionMessageListener"/>

      <property name="concurrentConsumers" value="3"/>

      <property name="maxMessagesPerTask" value="1"/>

      <property name="sessionTransacted" value="true"/>

       

      <property name="cacheLevelName" value="CACHE_NONE"/>

      </bean>



      while starting the server with earfile will be deployed but the below error comes in the server log

      ERROR [STDERR] (main) WMQ Resource Adapter warning: MQJCA4005:Distributed transactions are not allowed in client mode


      I want a non xa transaction mode but somehow its try to work in xa transaction mode


      can anyone help?