-
1. Re: creating multiple topics
fergie Nov 30, 2001 4:29 AM (in response to garyg)Hi.. Are you ensuring the topics are in the JNDI directory?... try this:
...
try{
_topic = (Topic)ctx.lookup("topic/sometopic");
}catch(NamingException ne) {
try{
_topic = session.createTopic("sometopic");
ctx.bind("topic/sometopic", _topic);
}catch(NamingException ne2) {
...
}catch(JMSException jmse) {
...
}
}
.. -
2. Re: creating multiple topics
fergie Dec 3, 2001 7:17 AM (in response to garyg)Hi, did some tests on my suggestion.. and had probs. I guess JBoss doesn't support this method.. even if using transient topics. So the question is: Did you setup the topic names in the appropriate file (for 2.4.0 its
jbossmq.xml). Note topics expect the prefix "topic/" cause that's where JBoss puts it into the JNDI tree.
Hope this helps. -
3. Re: creating multiple topics
vineet Dec 28, 2001 5:00 AM (in response to garyg)Hi, Can somebody tell me where are the JNDI bindings set for topic. JBOSS seems to be appending topic/ to the topic names .Am I correct . If i want to look up a topicname without the topic/ appeneded how do i do specify it in jboss.xml .. I mean is there any way by which this appending of "topic/" to the topic name be stopped ..Kindly help
-
4. Re: creating multiple topics
yuquanlu Dec 28, 2001 9:20 PM (in response to garyg)Hi,
You can go to http://localhost:8082/ and open up JNDIView and click on the LIST operation, you can see what are really in there. JBossMQ uses names like topic/testTopic for topic names. And also in the online documentation you can find good examples for JMS, but becareful you are using the correct connection factory. You can also find what is bound there in JNDI for your topic connection factory.