[jboss-user] [Beginners Corner] - Not able to look up queue on a remote server

srufus do-not-reply at jboss.com
Thu Dec 11 00:23:36 EST 2008


Hi,
I am new to Jboss and this is what I am trying  to do.

1. Pass a message to queue A on server 1 (Jboss ESB server) (this is my local host)
2. Receive it on  queue B on server 2 (JBoss App server)

However,I get an exception which tells me that it is not able to look up the queue on the remote machine




<?xml version="1.0" encoding="UTF-8" ?> 
  | <connection-factories>
  | 
  | <!--  The JMS provider loader   --> 
  | <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>  
  |    <!--  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> 
  |   <!-- 
  |    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>
  | 
  | 
  | 
  | <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider">
  |      <attribute name="ProviderName">RemoteXAConnectionFactory</attribute>
  |      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</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>
  |     <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=xxx.xx.xxx.xx:1099
  |     </attribute>
  |   </mbean>
  |   
  |   <mbean code="org.jboss.jms.server.bridge.BridgeService" name="jboss.messaging:service=Bridge,name=TestBridge" xmbean-dd="xmdesc/Bridge-xmbean.xml">
  |      <depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=JMSProvider</depends>
  |      <depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
  |      <attribute name="SourceDestinationLookup">/queue/StoreQueue</attribute>
  |      <attribute name="TargetDestinationLookup">/queue/destination_try</attribute>
  |      <attribute name="QualityOfServiceMode">0</attribute>
  |      <attribute name="MaxBatchSize">5</attribute>
  |      <attribute name="MaxBatchTime">-1</attribute>
  |      <attribute name="FailureRetryInterval">5000</attribute>
  |      <attribute name="MaxRetries">-1</attribute>
  |      <attribute name="AddMessageIDInHeader">false</attribute>
  | </mbean>
  | 
  | <!--  The server session pool for Message Driven Beans --> 
  | <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader" name="jboss.messaging: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>	
  | 
  | 
  | Exception :
  | 
  | 10:50:39,699 WARN  [Bridge] Failed to set up connections
  | javax.naming.NameNotFoundException: queue/destination_try
  |         at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:223)
  |         at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:134)
  |         at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:324)
  |         at org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.
  | java:194)
  |         at sun.reflect.GeneratedMethodAccessor145.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:324)
  |         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
  |         at sun.rmi.transport.Transport$1.run(Transport.java:148)
  |         at java.security.AccessController.doPrivileged(Native Method)
  |         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
  |         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
  | 60)
  |         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
  | .java:701)
  | 

Further I am also not able to access the remote server's JMX console though the server is running there 

when I try  http://serverip:8080 I get a  page cannot be displayed

Please help.

Thanks in advance


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195784#4195784

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4195784



More information about the jboss-user mailing list