The JMS DestinationManager is not adding Remote JMS queue/topics into it's
hashmap of destinations when using JMSProviderLoader that has a ProviderUrl
that points to another JBoss instance that houses the queues/topics.  I
added some trace logging to the JMSDestinationManager that dumps the hashmap
it uses internal to store queue/topic names and it appears that it is only
adding queue and topic names that it finds in the local JNDI space and not
the remote JNDI space.

I am playing with the default jboss target and have added the following to
the jms-service.xml file in addition to the DefaultJBossMQProvider.

  <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
 
name="jboss.mq:service=JMSProviderLoader,name=RemoteJBossMQProvider">
    <attribute name="ProviderName">RemoteJMSProvider</attribute>
    <attribute name="ProviderAdapterClass">
      org.jboss.jms.jndi.JBossMQProvider
    </attribute>
    <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
    <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
    <attribute name="ProviderUrl">10.9.159.250:1099</attribute>
  </mbean>


The RemoteJBossMQProvider service is loading correctly and shows up in the
java:/ name space.  I also check the context that is stored in the instance
of JBossMQProvider class (which extends the abstract class
AbstractJMSProviderAdapter) that is created for the RemoteJBossMQProvider,
and it appears to be correctly anchored to the remote host.  Not sure why
the DestinationManager is not registering the queues/topics on the remote
node.  It is also not clear to me how the DestinationManager differentiates
between local queues and remote queues.

What prompted this discovery was my MDB's that use the RemoteJMSProvider
instead of the DefaultJMSProvider complained at deployment time that their
destination queues do not exist, when in fact they do on the remote host.

This appears to be a bug, but I wanted to run it by this list before I
submit it as a bug.

Any suggestions?

Dustin


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to