[jboss-user] [JBoss Messaging] - Re: JMS Bridge Question

timfox do-not-reply at jboss.com
Tue Aug 14 08:42:42 EDT 2007


In your remote jms provider, you are using the local JNDI namespace (java:) to do your lookup:


  | <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
  | 	 name="jboss.messaging:service=JMSProviderLoader,name=CSMJMSProvider">
  |     <attribute name="ProviderName">CSMJMSProvider</attribute>
  |     <attribute name="ProviderAdapterClass">
  |       org.jboss.jms.jndi.JNDIProviderAdapter
  |     </attribute>
  |     
  |     <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
  | 
  |     <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
  |     
  |     <attribute name="TopicFactoryRef">java:/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=192.168.0.22:1099
  |     </attribute>
  | 
  |   </mbean>
  | 

In JNDI, "java:" means "in the same VM", for a remote jms provider you don't want to do the lookup in the same VM.



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

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



More information about the jboss-user mailing list