[jboss-user] [Installation, Configuration & DEPLOYMENT] - Remote JMS Accessing not working

ranadheer.machineni do-not-reply at jboss.com
Thu Jun 12 08:14:17 EDT 2008


Hi,
i am running a application in Jboss, which connects to JMS of another Remote JBoss. the problem is i am able to connect and receive Topics when i supply remote url to context like below



  | Properties pro = new Properties();
  | pro.put(Context.PROVIDER_URL,"jnp://remotehost:1099");
  | jndiContext = new InitialContext(pro);
  | 	
	



but when i remove the above and supply to jms-ds.xml like below its not working. it says the name of the Topic not found


  | 
  |   <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">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=remotehost:1099
  |     </attribute>
  |     
  |   </mbean>	
  | 
  | 	


i tried with port number 1100 also, but help less. i need to use the second way any ways. any help is highly appreciated
Thanks
R

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

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



More information about the jboss-user mailing list