2 Replies Latest reply on Jun 13, 2008 1:53 AM by ranadheer.machineni

    Accesing Remote JMS,working when remote URL provided to the

    ranadheer.machineni

      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