Problem sending to remote queue
tkrebs Nov 7, 2001 9:21 AMI am using JBoss-2.4.3_Tomcat_3.2.3. From within my session bean I try to send a message to a remote topic which is established a remote JBoss server (running the same version). I followed the instructions in the documentation and added a JMS remote provider, but the messages end up in the topic of the originating JBoss instance.
I have no glue what else to try or where to search.
I attached the excerpts from my configuration files (the remote JBOSS is running on ccatpu01) and the debug messages I see on the originating JBOSS instance:
----------------------------------------------------
Console output on originating JBOSS
----------------------------------------------------
[RemoteJmsXA] Pool org.jboss.jms.ra.JmsManagedConnectionFactory-1 [1/1/Unlimited] gave out pooled object: org.jboss.jms.
ra.JmsManagedConnection@5306dd
[RemoteJmsXA] FINE: Leaving out XAResource
[RemoteJmsXA] FINE: ConnectionEvent listener added
[Default] Publishing messageTextMessage@Order created:1718,BMW...
[RemoteJmsXA] FINE: Closing session
[RemoteJmsXA] FINE: Sending connection event: 1
[RemoteJmsXA] Pool org.jboss.jms.ra.JmsManagedConnectionFactory-1 [0/1/Unlimited] returned object org.jboss.jms.ra.JmsMa
nagedConnection@5306dd to the pool.
---------------------------------------------------
jboss.jcml
-------------------------------------------------
MyRemoteProvider
ccatpu01:1099
XAConnectionFactory
XAConnectionFactory
org.jboss.jms.jndi.JBossMQProvider
<!-- JMS XA Resource adapter, -->
<!-- use this to get transacted JMS in beans -->
RemoteJmsXA
JCA:service=RARDeployer
JMS Adapter
MinervaXACMFactory
<!-- See the documentation for the specific connection manager
implementation you are using for the properties you can set -->
JmsProviderAdapterJNDI=java:MyRemoteProvider
# Pool type - uncomment to force, otherwise it is the default
#PoolConfiguration=per-factory
# Connection pooling properties - see
# org.opentools.minerva.pool.PoolParameters
MinSize=0
MaxSize=10
Blocking=true
GCEnabled=false
IdleTimeoutEnabled=false
InvalidateOnError=false
TrackLastUsed=false
GCIntervalMillis=120000
GCMinIdleMillis=1200000
IdleTimeoutMillis=1800000
MaxIdleTimeoutPercent=1.0
<!-- Principal mapping configuration -->
org.jboss.resource.security.ManyToOnePrincipalMapping
----------------------------------------
jboss.xml
----------------------------------------
false
<container-configurations />
<enterprise-beans>
<ejb-name>OrderControllerEJB</ejb-name>
<jndi-name>ejb/OrderControllerEJB</jndi-name>
<configuration-name/>
<resource-ref>
<res-ref-name>jms/MyTopicConnection</res-ref-name>
<resource-name>topicfactoryref</resource-name>
</resource-ref>
<resource-ref>
<res-ref-name>jms/im</res-ref-name>
<resource-name>topicref</resource-name>
</resource-ref>
<ejb-name>OrderEJB</ejb-name>
<jndi-name>ejb/OrderEJB</jndi-name>
<configuration-name></configuration-name>
<ejb-name>KeyGeneratorEJB</ejb-name>
<jndi-name>ejb/KeyGeneratorEJB</jndi-name>
<configuration-name></configuration-name>
</enterprise-beans>
<resource-managers>
<resource-manager res-class="">
<res-name>jdbc/MatcherDB</res-name>
<res-jndi-name>java:/Hypersonic</res-jndi-name>
</resource-manager>
<resource-manager>
<res-name>topicfactoryref</res-name>
<res-jndi-name>java:/RemoteJmsXA</res-jndi-name>
</resource-manager>
<resource-manager>
<res-name>topicref</res-name>
<res-jndi-name>jnp://ccatpu01:1099/topic/testTopic</res-jndi-name>
</resource-manager>
</resource-managers>