1 2 Previous Next 22 Replies Latest reply on Dec 24, 2010 11:36 AM by Khurram Majeed

    Messaging bridge question

    Chip Schoch Novice

      I am trying to set up a couple of bridges on one server (s1) whereas messages arriving on a queue are posted to a queue on a remote server (s2), That server processes the message and puts a response on its local response queues. I want another bridge to take that response and move it to my original server response queue.

      On s1 I configured the bridges so that the first bridge had s1 as the source provoder and the second bridge had s2 as the source provider. It seems that only bridge one is able to make the connection. For bridge two I get a no a such destination exception even though the destination is valid on s2.


      Am I not allowed to configure a bridge such that the source is the remote server?

      <?xml version="1.0" encoding="UTF-8"?>
      <server>
      
       <!-- Bridge 1. Send messages to remote input queue -->
       <mbean code="org.jboss.jms.server.bridge.BridgeService"
       name="jboss.messaging:service=Bridge,name=Conversion.In.Bridge"
       xmbean-dd="xmdesc/Bridge-xmbean.xml">
      
       <depends>jboss:service=Naming</depends>
       <depends>jboss.messaging.destination:service=Queue,name=File.Conversion.In</depends>
       <depends>jboss.messaging:service=ServerPeer</depends>
       <depends optional-attribute-name="SourceProviderLoader">jboss.mq:service=JMSProviderLoader,name=JMSProvider</depends>
       <depends optional-attribute-name="TargetProviderLoader">jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
      
       <attribute name="SourceDestinationLookup">/queue/File.Conversion.In</attribute>
       <attribute name="TargetDestinationLookup">/queue/Remote.Conversion.In</attribute>
      
       <attribute name="MaxBatchSize">5</attribute>
       <attribute name="MaxBatchTime">-1</attribute>
       <attribute name="FailureRetryInterval">5000</attribute>
       <attribute name="MaxRetries">-1</attribute>
      
       </mbean>
      
       <!-- Bridge 2. Get messages from remote output queue -->
       <mbean code="org.jboss.jms.server.bridge.BridgeService"
       name="jboss.messaging:service=Bridge,name=Conversion.Out.Bridge"
       xmbean-dd="xmdesc/Bridge-xmbean.xml">
      
       <depends>jboss:service=Naming</depends>
       <depends>jboss.messaging.destination:service=Queue,name=File.Conversion.Out</depends>
       <depends>jboss.messaging:service=ServerPeer</depends>
       <depends optional-attribute-name="SourceProviderLoader">jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
       <depends optional-attribute-name="TargetProviderLoader">jboss.mq:service=JMSProviderLoader,name=JMSProvider</depends>
      
       <attribute name="SourceDestinationLookup">/queue/Remote.Conversion.Out</attribute>
       <attribute name="TargetDestinationLookup">/queue/File.Conversion.Out</attribute>
      
       <attribute name="MaxBatchSize">5</attribute>
       <attribute name="MaxBatchTime">-1</attribute>
       <attribute name="FailureRetryInterval">5000</attribute>
       <attribute name="MaxRetries">-1</attribute>
      
       </mbean>
      
       </server>


        • 1. Re: Messaging bridge question
          Tim Fox Master

          Please post your JMSProviderLoader configuration (both of them), also what version are you using?

          • 2. Re: Messaging bridge question
            Chip Schoch Novice

            This is my original jms-ds.xml.

            <?xml version="1.0" encoding="UTF-8"?>
            
            <connection-factories>
            
             <!-- ==================================================================== -->
             <!-- JMS Stuff -->
             <!-- ==================================================================== -->
            
             <!-- The JMS provider loader -->
             <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
             name="jboss.mq:service=JMSProviderLoader,name=JMSProvider">
             <attribute name="ProviderName">DefaultJMSProvider</attribute>
             <attribute name="ProviderAdapterClass">
             org.jboss.jms.jndi.JNDIProviderAdapter
             </attribute>
             <!-- The combined connection factory -->
             <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
             <!-- The queue connection factory -->
             <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
             <!-- The topic factory -->
             <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
             <!-- Uncomment to use HAJNDI to access JMS
             <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=localhost:1100
             </attribute>
             -->
             </mbean>
            
             <!-- The server session pool for Message Driven Beans -->
             <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader"
             name="jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool">
             <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
             <attribute name="PoolName">StdJMSPool</attribute>
             <attribute name="PoolFactoryClass">
             org.jboss.jms.asf.StdServerSessionPoolFactory
             </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">java:/DefaultJMSProvider</config-property>
             <max-pool-size>20</max-pool-size>
             <security-domain-and-application>JmsXARealm</security-domain-and-application>
             </tx-connection-factory>
            
            </connection-factories>



            I added this one for specifying my remote server.

            <?xml version="1.0" encoding="UTF-8"?>
            
            <server>
            
             <!-- ==================================================================== -->
             <!-- JMS Stuff -->
             <!-- ==================================================================== -->
            
             <!-- The JMS provider loader -->
             <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
             name="jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider">
            
             <attribute name="ProviderName">ConversionJMSProvider</attribute>
             <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
            
             <!-- The combined connection factory -->
             <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
             <!-- The queue connection factory -->
             <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
             <!-- The topic factory -->
             <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
             <!-- Uncomment to use HAJNDI to access JMS -->
            
             <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=192.168.1.75:1099
             </attribute>
             </mbean>
            
            </server>
            


            • 3. Re: Messaging bridge question
              Chip Schoch Novice

              I am using JBossAS 4.2.0..GA, JBM 1.3.0.GA with one fix that was posted right after it released, on both servers.

              • 5. Re: Messaging bridge question
                Chip Schoch Novice

                I have looked through the links and as far as I can tell my configuration is correct. As you can see from the dump below my bridge connects to the remote queue when that queue destination is a target destination (Remotee.Conversion.In). When the remote destination is the source destination it fails to connect (Remote.Conversion.Out). It says 'No such Destination' for Remote.Conversion.Out, but that is incorrect. The log on the remote server says that that queue has been started, as has Remote.Conversion.In. Either I am missing something painfully obvious or it has trouble connecting to destinations where the source destination is a remote queue.

                2007-07-26 10:39:54,731 DEBUG [org.jboss.jms.client.JBossSession] attempting to create consumer for destination:JBossQueue[File.Conversion.In]
                
                2007-07-26 10:36:13,995 DEBUG [org.jboss.jms.client.JBossSession] attempting to create consumer for destination:JBossQueue[Remote.Conversion.Out]
                2007-07-26 10:36:13,995 ERROR [org.jboss.messaging.util.ExceptionUtil] SessionEndpoint[10] createConsumerDelegate [5c4o12v-r71he3-f4lclt5k-1-f4lcm90r-q]
                javax.jms.InvalidDestinationException: No such destination: JBossQueue[Remote.Conversion.Out]
                 at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegateInternal(ServerSessionEndpoint.java:1171)
                 at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegate(ServerSessionEndpoint.java:200)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createConsumerDelegate$aop(SessionAdvised.java:87)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_6311124154581125663.invokeNext(SessionAdvised$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.server.container.SecurityAspect.handleCreateConsumerDelegate(SecurityAspect.java:118)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_6311124154581125663.invokeNext(SessionAdvised$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_6311124154581125663.invokeNext(SessionAdvised$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised.createConsumerDelegate(SessionAdvised.java)
                 at org.jboss.jms.wireformat.SessionCreateConsumerDelegateRequest.serverInvoke(SessionCreateConsumerDelegateRequest.java:95)
                 at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:141)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
                 at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)
                 at org.jboss.remoting.Client.invoke(Client.java:1550)
                 at org.jboss.remoting.Client.invoke(Client.java:530)
                 at org.jboss.remoting.Client.invoke(Client.java:518)
                 at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
                 at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createConsumerDelegate$aop(ClientSessionDelegate.java:230)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.container.StateCreationAspect.handleCreateConsumerDelegate(StateCreationAspect.java:147)
                 at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect30.invoke(StateCreationAspect30.java)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.container.ConsumerAspect.handleCreateConsumerDelegate(ConsumerAspect.java:69)
                 at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect29.invoke(ConsumerAspect29.java)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:91)
                 at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
                 at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate.createConsumerDelegate(ClientSessionDelegate.java)
                 at org.jboss.jms.client.JBossSession.createConsumer(JBossSession.java:237)
                 at org.jboss.jms.client.JBossSession.createConsumer(JBossSession.java:215)
                 at org.jboss.jms.server.bridge.Bridge.setupJMSObjects(Bridge.java:965)
                 at org.jboss.jms.server.bridge.Bridge.start(Bridge.java:287)
                 at org.jboss.jms.server.bridge.BridgeService.startService(BridgeService.java:345)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
                 at $Proxy0.start(Unknown Source)
                 at org.jboss.system.ServiceController.start(ServiceController.java:417)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.start(Unknown Source)
                 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy42.start(Unknown Source)
                 at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy9.deploy(Unknown Source)
                 at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                 at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                 at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                 at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                 at $Proxy0.start(Unknown Source)
                 at org.jboss.system.ServiceController.start(ServiceController.java:417)
                 at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.start(Unknown Source)
                 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy5.deploy(Unknown Source)
                 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                 at org.jboss.Main.boot(Main.java:200)
                 at org.jboss.Main$1.run(Main.java:508)
                 at java.lang.Thread.run(Thread.java:595)
                2007-07-26 10:36:13,995 WARN [org.jboss.jms.server.bridge.Bridge] Failed to set up connections
                javax.jms.InvalidDestinationException: No such destination: JBossQueue[Remote.Conversion.Out]
                 at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegateInternal(ServerSessionEndpoint.java:1171)
                 at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegate(ServerSessionEndpoint.java:200)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createConsumerDelegate$aop(SessionAdvised.java:87)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_6311124154581125663.invokeNext(SessionAdvised$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.server.container.SecurityAspect.handleCreateConsumerDelegate(SecurityAspect.java:118)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_6311124154581125663.invokeNext(SessionAdvised$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_6311124154581125663.invokeNext(SessionAdvised$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.server.endpoint.advised.SessionAdvised.createConsumerDelegate(SessionAdvised.java)
                 at org.jboss.jms.wireformat.SessionCreateConsumerDelegateRequest.serverInvoke(SessionCreateConsumerDelegateRequest.java:95)
                 at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:141)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
                 at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)
                 at org.jboss.remoting.Client.invoke(Client.java:1550)
                 at org.jboss.remoting.Client.invoke(Client.java:530)
                 at org.jboss.remoting.Client.invoke(Client.java:518)
                 at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
                 at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createConsumerDelegate$aop(ClientSessionDelegate.java:230)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.container.StateCreationAspect.handleCreateConsumerDelegate(StateCreationAspect.java:147)
                 at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect30.invoke(StateCreationAspect30.java)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.container.ConsumerAspect.handleCreateConsumerDelegate(ConsumerAspect.java:69)
                 at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect29.invoke(ConsumerAspect29.java)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:91)
                 at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
                 at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
                 at org.jboss.jms.client.delegate.ClientSessionDelegate.createConsumerDelegate(ClientSessionDelegate.java)
                 at org.jboss.jms.client.JBossSession.createConsumer(JBossSession.java:237)
                 at org.jboss.jms.client.JBossSession.createConsumer(JBossSession.java:215)
                 at org.jboss.jms.server.bridge.Bridge.setupJMSObjects(Bridge.java:965)
                 at org.jboss.jms.server.bridge.Bridge.start(Bridge.java:287)
                 at org.jboss.jms.server.bridge.BridgeService.startService(BridgeService.java:345)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
                 at $Proxy0.start(Unknown Source)
                 at org.jboss.system.ServiceController.start(ServiceController.java:417)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.start(Unknown Source)
                 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy42.start(Unknown Source)
                 at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy9.deploy(Unknown Source)
                 at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                 at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                 at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                 at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                 at $Proxy0.start(Unknown Source)
                 at org.jboss.system.ServiceController.start(ServiceController.java:417)
                 at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.start(Unknown Source)
                 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy5.deploy(Unknown Source)
                 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                 at org.jboss.Main.boot(Main.java:200)
                 at org.jboss.Main$1.run(Main.java:508)
                 at java.lang.Thread.run(Thread.java:595)
                


                • 6. Re: Messaging bridge question
                  Tim Fox Master

                  Hi Chip-

                  The two links I posted:

                  http://jira.jboss.com/jira/browse/JBMESSAGING-999
                  http://www.jboss.org/index.html?module=bb&op=viewtopic&t=111456

                  Refer to a known issue which was fixed in 1.4.0.CR1 (see the JIRA link).

                  I think this is the same issue.

                  • 7. Re: Messaging bridge question
                    Chip Schoch Novice

                    Yes, I read through the JIRA link but that is referring to retrying the remote connection at startup. That is not the issue. My server is running. I can connect to the remote queue if that queue is the target destination, not the source destination. I stepped through bridge.java and verified that everything looks ok, ie the IC has the remote properties and the Destination is correct. Everything looked good to me but when it executes CreateConsumer is throws the exception. I can create a stand alone program that is able to connect to the remote server and create a consumer. I am also able to specify the same remote queue as the source destination in the bridge service and it connects fine.

                    I noticed in the stack trace the line:

                    org.jboss.remoting.transport.local.LocalClientInvoker.invoke

                    I am not that familiar with this code but does this mean that at this point remoting thinks the client is local? If this is so then that is a mistake. I get kind of lost in the aop code. Is it possible there is a bug that is causing it to try to connect to the local machine instead of the remote machine? Just a guess.

                    • 8. Re: Messaging bridge question
                      Tim Fox Master

                      Chip-

                      I will take a look at this and try and replicate ASAP, but will probably be next week since we are really snowed under (what's new?) right now. :)

                      Thx

                      • 9. Re: Messaging bridge question
                        Chip Schoch Novice

                        Thanks Tim. FYI, I just setup up a JBossAs 4.2.0.GA server with JBM_1.4.0.CR1 and tried it and I got the same behavior.

                        • 11. Re: Messaging bridge question
                          Tim Fox Master

                          Sorry I have taken so long to look at this.

                          Before I investigate any deeper, there is one obvious thing I can see wrong in your remote jms provider config:

                           <!-- The combined connection factory -->
                           <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
                           <!-- The queue connection factory -->
                           <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
                           <!-- The topic factory -->
                           <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
                           <!-- Uncomment to use HAJNDI to access JMS -->
                          


                          You are doing your lookups with the "java:" prefix.

                          As I'm sure you know, in JNDI, anything that starts with "java:" represents a lookup in the same VM.

                          You need to lookup in the global JNDI space, i.e. "/XAConnectionFactory" rather than "java:/XAConnectionfactory".

                          Take a look at http://www.jboss.org/wiki/Wiki.jsp?page=HowDoIConfigureAnMDBToTalkToARemoteQueue for how to set up a remote JMS provider.

                          Can you report back after trying this and we can investigate further if a problem still exists?

                          • 12. Re: Messaging bridge question
                            Tim Fox Master

                            Ok, I just validated that I can successfully consume from a remote jms provider and send to a local jms provider using the bridge and a remote jms provider loader configured using global JNDI namespace.

                            I'm using TRUNK but there haven't been any bridge code changes between CR1 and TRUNK.

                            I'm also using a version of remoting in which Ron has fixed several outstanding remoting bugs - I'm not sure if you'll need this, it'll be in the next release - but it's here for now, if you want:

                            http://repository.jboss.com/jboss/remoting/2.2.1.SP1-experimental/

                            • 13. Re: Messaging bridge question
                              Chip Schoch Novice

                              Sorry for taking so long to reply. The auto notification for your response got swallowed in my spam filter.

                              I removed java: from the remote provider lookup and the bridge started without any exceptions. I posted a message to my local queue and I don't know what happened to it. It is not on the queue (when I list messages using jmx-console) and it is not on the remote queue either. And it was not consumed by my remote service because I undeployed the consumer, so I don't know what is happening to the message. It seems to be disappearing.

                              I am not using the latest remoting jar you referenced.

                              • 14. Re: Messaging bridge question
                                Chip Schoch Novice

                                One more thing. I sent 4 messages to my local queue and all seemed to disappear. I then stopped my bridge. The messages could then be seen using the jmx-console. I restarted my bridge and the messages are were longer visible from the jmx-console. I stopped the bridge and they reappeared.

                                Go figure.

                                1 2 Previous Next