You're right. That got rid of my error. Now my jms-ds.xml looks like this:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <connection-factories>
| ...as provided in JBoss distro...
|
| <mbean
| code="org.jboss.jms.jndi.JMSProviderLoader"
|
name="jboss.messaging:service=JMSProviderLoader,name=DFMJMSProvider">
| <attribute name="ProviderName">
| DFMJMSProvider
| </attribute>
| <attribute name="ProviderAdapterClass">
| org.jboss.jms.jndi.JNDIProviderAdapter
| </attribute>
|
| <!-- The connection factory -->
| <attribute name="FactoryRef">XAConnectionFactory</attribute>
| <!-- The queue connection factory -->
| <attribute
name="QueueFactoryRef">XAConnectionFactory</attribute>
| <!-- The topic factory -->
| <attribute
name="TopicFactoryRef">XAConnectionFactory</attribute>
|
| <!-- Connect to JNDI on the host "localhost" port 1199 -->
| <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=localhost:1199
| </attribute>
| </mbean>
| </connection-factories>
|
Note: I've removed the tx-connection-factory that I had previously added to
jms-ds.xml, but the original tx-connection-factory XML is still there.
The descriptor and my application both deploy now without error. However, I'm still
not getting any messages delivered to my MDB. It seems, however, that the two instances of
JBoss are talking at some level as bringing down my client instance causes this stacktrace
in the remote JMS server.
| 14:33:54,649 WARN [Dispatcher] Cannot find object with id
pk-xdxg47vf-1-apahx6vf-hj5iam-n6dm1r3 to register
| 14:33:54,649 ERROR [ExceptionUtil]
ConnectionEndpoint[8k-9vwg47vf-1-apahx6vf-hj5iam-n6dm1r3] close
[kl-1m4k47vf-1-apahx6vf-hj5iam-n6dm1r3]
| java.lang.NullPointerException
| at
org.jboss.jms.server.endpoint.ServerConsumerEndpoint.localClose(ServerConsumerEndpoint.java:542)
| at
org.jboss.jms.server.endpoint.ServerSessionEndpoint.localClose(ServerSessionEndpoint.java:1151)
Any ideas on getting topic messages delivered? I can verify that they are being posted to
the remote server's topic as an MDB local to it receives and logs the messages.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233429#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...