1 Reply Latest reply on Feb 21, 2011 3:52 AM by topizio

    Failed to migrate HA EJB Messaging from JBoss 4.4.2 to 5.1

    topizio

      Hy guys,

       

         I developed an clustered application in JBoss4.2 with two MQ queue in HA. Here all stuff goes well and every node was able to send message to both queues using HA-JNDI lockup.

      I’ve recently tried to migrate from 4.2.2 GA to JBoss 5.1 GA. I’ve successfully setting up the application for single instance, but when I start the second note also start the problems.

       

      This is the server.log taken from the master node:

       

      ....

      2011-02-14 15:59:15,816 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@888554920{vfszip:/usr/jboss/jboss-5.1.0.GA/server/all/farm/ServicelandEAR.ear/ServiceHandlerMsgReceiverEJB.jar/}

      2011-02-14 15:59:15,868 INFO  [org.jboss.ejb.deployers.EjbDeployer] (main) installing bean: ejb/EngineMsgReceiverEJB.jar#Engine,uid2106924599

      2011-02-14 15:59:15,868 INFO  [org.jboss.ejb.deployers.EjbDeployer] (main)   with dependencies:

      2011-02-14 15:59:15,868 INFO  [org.jboss.ejb.deployers.EjbDeployer] (main)   and supplies:

      2011-02-14 15:59:15,868 INFO  [org.jboss.ejb.deployers.EjbDeployer] (main)     jndi:null

      ...

       

       

      After, when I start the second node it cannot see the queues at the startup time and in server.log I see the message:

       

      2011-02-14 15:59:18,072 ERROR [org.jboss.messaging.util.ExceptionUtil] (WorkManager(2)-2) SessionEndpoint[fc-gygfi5kg-1-02aei5kg-rk6gsk-100j3] createConsumerDelegate [gc-bzgfi5kg-1-02aei5kg-rk6gsk-100j3]

      javax.jms.InvalidDestinationException: No such destination: JBossQueue[Engine] has it been deployed?

          at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegateInternal(ServerSessionEndpoint.java:1862)

          at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegate(ServerSessionEndpoint.java:262)

          at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createConsumerDelegate$aop(SessionAdvised.java:94)

          at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_8721389917985689973.invokeTarget(SessionAdvised$createConsumerDelegate_8721389917985689973.java)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

          at org.jboss.jms.server.container.SecurityAspect.handleCreateConsumerDelegate(SecurityAspect.java:123)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.server.endpoint.advised.SessionAdvised.createConsumerDelegate(SessionAdvised.java)

          at org.jboss.jms.wireformat.SessionCreateConsumerDelegateRequest.serverInvoke(SessionCreateConsumerDelegateRequest.java:100)

          at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)

          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

          at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)

          at org.jboss.remoting.Client.invoke(Client.java:1724)

          at org.jboss.remoting.Client.invoke(Client.java:629)

          at org.jboss.remoting.Client.invoke(Client.java:617)

          at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)

          at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)

          at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createConsumerDelegate$aop(ClientSessionDelegate.java:267)

          at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_8721389917985689973.invokeTarget(ClientSessionDelegate$createConsumerDelegate_8721389917985689973.java)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

          at org.jboss.jms.client.container.StateCreationAspect.handleCreateConsumerDelegate(StateCreationAspect.java:142)

          at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConsumerDelegate_1970827269.invoke(StateCreationAspect_z_handleCreateConsumerDelegate_1970827269.java)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.container.ConsumerAspect.handleCreateConsumerDelegate(ConsumerAspect.java:76)

          at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect_z_handleCreateConsumerDelegate_1970827269.invoke(ConsumerAspect_z_handleCreateConsumerDelegate_1970827269.java)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)

          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)

          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.delegate.ClientSessionDelegate.createConsumerDelegate(ClientSessionDelegate.java)

          at org.jboss.jms.client.JBossConnectionConsumer.<init>(JBossConnectionConsumer.java:126)

          at org.jboss.jms.client.container.SessionAspect.handleCreateConnectionConsumer(SessionAspect.java:772)

          at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleCreateConnectionConsumer_1970827269.invoke(SessionAspect_z_handleCreateConnectionConsumer_1970827269.java)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)

          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.delegate.ClientConnectionDelegate.createConnectionConsumer(ClientConnectionDelegate.java)

          at org.jboss.jms.client.JBossConnection.createConnectionConsumer(JBossConnection.java:140)

          at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.setupConsumer(JmsServerSessionPool.java:289)

          at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.start(JmsServerSessionPool.java:89)

          at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupSessionPool(JmsActivation.java:656)

          at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:359)

          at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)

          at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)

          at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

          at java.lang.Thread.run(Thread.java:636)

       

       

       

      Furthermore,when the second node try to use the stub picked up using HA-JNDI this is the output:

       

      2011-02-14 16:01:24,429 INFO  [serviceland] (ajp-10.0.0.1-8009-10) Trying to use HA-JNDI to resolve the queue

      2011-02-14 16:01:24,620 ERROR [org.jboss.messaging.util.ExceptionUtil] (ajp-10.0.0.1-8009-10) SessionEndpoint[tn-oh6ii5kg-1-02aei5kg-rk6gsk-100j3] send [un-km6ii5kg-1-02aei5kg-rk6gsk-100j3]

      javax.jms.JMSException: Failed to route Reference[21261446096781312]:RELIABLE to Engine

          at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:757)

          at org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:399)

          at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)

          at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeTarget(SessionAdvised$send_7280680627620114891.java)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

          at org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)

          at org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)

          at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)

          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

          at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)

          at org.jboss.remoting.Client.invoke(Client.java:1724)

          at org.jboss.remoting.Client.invoke(Client.java:629)

          at org.jboss.remoting.Client.invoke(Client.java:617)

          at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)

          at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)

          at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(ClientSessionDelegate.java:499)

          at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeTarget(ClientSessionDelegate$send_6145266547759487588.java)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

          at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:661)

          at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleSend_1970827269.invoke(SessionAspect_z_handleSend_1970827269.java)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)

          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)

          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)

          at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:269)

          at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect_z_handleSend_1970827269.invoke(ProducerAspect_z_handleSend_1970827269.java)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)

          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)

          at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)

          at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:207)

          at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:145)

          at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:136)

          at com.serviceland.common.broker.impl.MessageBrokerImpl.sendTextMessage(MessageBrokerImpl.java:113)

          at com.serviceland.engine.manager.impl.EngineManagerImpl.run(EngineManagerImpl.java:58)

          at com.serviceland.engine.manager.impl.EngineManagerDelegate.run(EngineManagerDelegate.java:22)

          at com.serviceland.json.wrapper.ExecutionHandlerJSON.startExecution(ExecutionHandlerJSON.java:135)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at com.serviceland.json.wrapper.MethodInvoker.invokeMethod(MethodInvoker.java:103)

          at com.serviceland.servlet.JSONChannelServlet.process(JSONChannelServlet.java:60)

          at com.serviceland.servlet.JSONChannelServlet.doPost(JSONChannelServlet.java:149)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

          at org.jboss.web.tomcat.service.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:135)

          at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:94)

          at org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

          at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)

          at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

          at java.lang.Thread.run(Thread.java:636)

       

       

      I really cannot figure where are the problems (because sure, there is more than one). I start my server as “run.sh -c all -b 10.0.0.1”.

       

      Here above I put the descriptors for the first queue (ServiceHandler), obviously there’s others descriptors for the other queue.

       

       

      This is my jboss.xml :

       

      <jboss>

         <enterprise-beans>

            <message-driven>

               <ejb-name>Engine</ejb-name>

               <destination-jndi-name>queue/Engine</destination-jndi-name>

               <resource-ref>

                   <res-ref-name>queue/ServiceHandler</res-ref-name>

                   <jndi-name>jnp://${jboss.bind.address}:1100/queue/Engine</jndi-name>

               </resource-ref>

            </message-driven>

         </enterprise-beans>

         <resource-managers>

         </resource-managers>

      </jboss>

       

       

      This is my ejb-jar.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

      <ejb-jar >

         <description><![CDATA[No Description.]]></description>

         <display-name>Engine</display-name>

         <enterprise-beans>

            <message-driven >

               <description><![CDATA[Bean to access messages]]></description>

               <display-name>Engine</display-name>

               <ejb-name>Engine</ejb-name>

               <ejb-class>com.serviceland.ejb.engine.EngineBean</ejb-class>

               <transaction-type>Bean</transaction-type>

               <acknowledge-mode>Auto-acknowledge</acknowledge-mode>

               <message-driven-destination>

                  <destination-type>javax.jms.Queue</destination-type>

               </message-driven-destination>

               <resource-ref>

               <description>Message queue Engine</description>

               <res-ref-name>queue/Engine</res-ref-name>

               <res-type>javax.jms.Queue</res-type>

               <res-auth>Container</res-auth>

                <res-sharing-scope>Shareable</res-sharing-scope>

               </resource-ref>

            </message-driven>

         </enterprise-beans>

         <assembly-descriptor>

         </assembly-descriptor>

      </ejb-jar>

       

       

      This is my jbossmq-destination-service.xml putted in $JBOSS_HOME/server/all/deploy-hasingleton/jms:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <server>

        <mbean code="org.jboss.jms.server.destination.QueueService"

          name="jboss.messaging.destination:service=Queue,name=Engine"

          xmbean-dd="xmdesc/Queue-xmbean.xml">

          <depends optional-attribute-name="ServerPeer">

            jboss.messaging:service=ServerPeer

          </depends>

          <depends>jboss.messaging:service=PostOffice</depends>

          <attribute name="JNDIName">queue/Engine</attribute>

          <attribute name="RedeliveryDelay">10000</attribute>

          <attribute name="MaxDeliveryAttempts">3</attribute>

        </mbean>

      </server>

       

       

      This is my jms-ds.xml putted into $JBOSS_HOME/server/all/deploy/messaging:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <connection-factories>

        <mbean code="org.jboss.jms.jndi.JMSProviderLoader"

               name="jboss.messaging:service=JMSProviderLoader,name=RemoteJBossMQProvider">

            <attribute name="ProviderName">RemoteXAConnectionFactory</attribute>

            <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>

            <attribute name="FactoryRef">XAConnectionFactory</attribute>

            <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>

            <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>

            <attribute name="Properties">

              java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

              java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

              java.naming.provider.url=${jboss.bind.address:localhost}:1100

              jnp.disableDiscovery=false

              jnp.partitionName=${jboss.partition.name:DefaultPartition}

              jnp.discoveryGroup=${jboss.partition.udpGroup:230.0.0.4}

              jnp.discoveryPort=1102

              jnp.discoveryTTL=16

              jnp.discoveryTimeout=5000

              jnp.maxRetries=1

            </attribute>

        </mbean>

         <mbean code="org.jboss.jms.jndi.JMSProviderLoader"

                name="jboss.messaging:service=JMSProviderLoader,name=JMSProvider">

            <attribute name="ProviderName">DefaultJMSProvider</attribute>

            <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>

            <!--attribute name="FactoryRef">java:/XAConnectionFactory</attribute>

            <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>

            <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute-->

            <!-- The combined connection factory -->

            <attribute name="FactoryRef">XAConnectionFactory</attribute>

            <!-- The queue connection factory -->

            <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>

            <!-- The topic factory -->

            <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>

            <!-- Access JMS via HAJNDI -->

            <attribute name="Properties">

              java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

              java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

              java.naming.provider.url=${jboss.bind.address:localhost}:1100

              jnp.disableDiscovery=false

              jnp.partitionName=${jboss.partition.name:DefaultPartition}

              jnp.discoveryGroup=${jboss.partition.udpGroup:230.0.0.4}

              jnp.discoveryPort=1102

              jnp.discoveryTTL=16

              jnp.discoveryTimeout=5000

              jnp.maxRetries=1

            </attribute>

         </mbean>

         <!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->

         <tx-connection-factory>

            <jndi-name>JmsXA</jndi-name>

            <xa-transaction/>

            <rar-name>jms-ra.rar</rar-name>

            <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>

            <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>

            <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">DefaultJMSProvider</config-property>

            <max-pool-size>20</max-pool-size>

            <security-domain-and-application>JmsXARealm</security-domain-and-application>

            <!--depends>jboss.messaging:service=ServerPeer</depends-->

         </tx-connection-factory>

      </connection-factories>

       

      And I'm using the ndb-persistence-service.xml with false Cluster attribute.

       

      Have somebody any ideas?

       

      Thank's in advance.

       

      Best regards,

       

       

      Maurizio

        • 1. Re: Failed to migrate HA EJB Messaging from JBoss 4.4.2 to 5.1
          topizio

          Hi,

           

              it's wired 'cause this is my second post on this forum and for the second time I respond myself.. Guys, I got it!! :-D

           

          The description below are all right (or almost functionally), the problem was in the position of the XML file into deploy and deploy-hasingleton folders.

           

          Here above there's the current position of the file:

           

          [root@sbw01 jms]# pwd

          /usr/jboss/jboss-5.1.0.GA/server/all/deploy/jms

          [root@sbw01 jms]# ll

          total 128

          -rw-r--r-- 1 root root  4393 Feb 17 16:18 hajndi-jms-ds.xml

          -rw-r--r-- 1 root root 83412 May 22  2009 jms-ra.rar

          -rw-r--r-- 1 root root  4057 May 22  2009 messaging-jboss-beans.xml

          -rw-r--r-- 1 root root  4822 Feb 17 15:20 messaging-service.xml

          -rw-r--r-- 1 root root 12230 Feb 17 15:31 ndb-persistence-service.xml

          -rw-r--r-- 1 root root  4152 May 22  2009 remoting-bisocket-service.xml

           

          [root@sbw01 jms]# cd ../../deploy-hasingleton/jms

          [root@sbw01 jms]# ll

           

          total 20

          -rw-r--r-- 1 root root 6391 Feb 17 15:18 connection-factories-service.xml

          -rw-r--r-- 1 root root 6647 Feb 17 16:10 destinations-service.xml

          -rw-r--r-- 1 root root  496 May 22  2009 legacy-service.xml

           

          Now seems to be all ok, I've no error or warnings in my logs.

          I hope that this could be useful for someone.

           

          Best regards,

           

           

          Maurizio