1 Reply Latest reply on Feb 25, 2014 5:53 AM by Raghavan TV

    JMSBridge between JbossMessaging and HornetQ

    Raghavan TV Newbie

      Am trying to create a bridge between our jboss-esb server (running JbossMessaging) and jboss-as-7.1.1 (running hornetQ)

      Followed the configurations suggested in Bridge JMS messages from AS 5 to AS 7

       

      But we are receiving a error when the sar starts

       

      Stack Trace:

      DEPLOYMENTS IN ERROR:

        Deployment "vfsfile:/C:/Users/user123/project/jboss-soa-p-5.3.1-messaging/server/production/deploy/mybridge.sar/" is in error due to the following reason(s): javax.management.AttributeNotFoundException: not found: Properties

       

      The jboss-server.xml under the jboss-esb (soa-p-5.3.1) (mybridge.sar/META-INF/jboss-service.xml) is as follows

       

      <server>
             <loader-repository>
                com.example:archive=unique-archive-name
                <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
             </loader-repository>
      
      
             <!-- AS7 JMS Provider -->
             <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.messaging:service=ServerPeer,name=EAP6JMSProvider">
      
      
                <attribute name="ProviderName">EAP6JMSProvider</attribute>
                <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
                <attribute name="FactoryRef">jms/RemoteConnectionFactory</attribute>
                <attribute name="QueueFactoryRef">jms/RemoteConnectionFactory</attribute> 
                <attribute name="TopicFactoryRef">jms/RemoteConnectionFactory</attribute>     
                <attribute name="Properties">
               
         java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
         java.naming.provider.url=remote://localhost:4547/
         java.naming.security.principal=admin
         java.naming.security.credentials=password
                </attribute>
             </mbean>
      
      
             <mbean code="org.jboss.jms.server.bridge.BridgeService" name="jboss.jms:service=Bridge,name=OldEAPtoEAP6Bridge" xmbean-dd="xmdesc/Bridge-xmbean.xml">     
                <depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=ServerPeer</depends>         
         <depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=ServerPeer,name=EAP6JMSProvider</depends>         
                <attribute name="SourceDestinationLookup">/queue/A</attribute>     
                <attribute name="TargetDestinationLookup">jms/queue/test2</attribute>      
                <attribute name="QualityOfServiceMode">1</attribute>          
                <attribute name="MaxBatchSize">1</attribute>     
                <attribute name="MaxBatchTime">-1</attribute>          
                <attribute name="FailureRetryInterval">60000</attribute>     
                <attribute name="MaxRetries">-1</attribute>     
                <attribute name="AddMessageIDInHeader">false</attribute>
                <attribute name="TargetUsername">admin</attribute>
                <attribute name="TargetPassword">password</attribute>
             </mbean>
          </server>