Messaging with JBOSS 5.0

Trying to setup make Messaging module work with JBOSS. I have the following setting in the server.properties

messaging.dispatcherImplementer:com.isomorphic.messaging.JMSMessageDispatcher

jndi.messaging.java.naming.factory.initial: org.jnp.interfaces.NamingContextFactory
jndi.messaging.java.naming.provider.url: jnp://localhost:1099

messaging.jms.context: messaging
messaging.jms.jndiPrefix:
messaging.jms.topicConnectionFactory: ConnectionFactory

Defined an mbean in the jbossmq-destinations-service.xml file for

<?xml version=“1.0” encoding=“UTF-8”?>
<server>
<!-- My topic, named: myAppTopic –>
<mbean code=“org.jboss.mq.server.jmx.Topic” name=“jboss.mq.destination:service=Topic,name=chatChannel”>
<depends optional-attribute-name=“DestinationManager”>jboss.mq:service=DestinationManager</depends>
</mbean>

</server>

Getting an error javax.jms.JMSException: There is no administratively defined topic with chatChannel. Has anyone used JBOSS for messaging.

Any info is appreciated.

Messaging with JBOSS

Able to get this running. All I had to do is to use /topic/ in the front of the channel name. Looks like JNDI lookup code is not working well for the send api.

Messaging.send('/topic/newTopic0', message, "callback(rpcResponse)");

Thanks for posting that, it may help others.

Is this something you think of as a JBoss or SmartClient Messaging flaw? How would Message know about that prefix of “/topic”?

Probably the way topic looked up is different

Mostly when creating the subscriber its using

Topic topic = (Topic) iniCtx.lookup(channelName);

while create the publisher must be using

Topic topic = topicSession.createTopic(channelName)

If you are going by the jndi lookup, need to use “/topic/chatChannel”. If you go by createTopic() method just “chatChannel” will work.

Not sure about the JBOSS difference of these two ways, looking at the JMS API, should be using the jndi lookup.