Posted: Thu Oct 30, 2008 12:20 pm Post subject: Purpose of a "Topic String"
Apprentice
Joined: 07 Oct 2008 Posts: 25
I'm using MQ 7 Pub/Sub capabilities and was wondering what the "Topic String" property on a topic is for?
Here is my reason for asking. I have a Topic named INPUT.TOPIC defined with a Topic String of "input". I then created a Message Driven Bean and deployed it on Websphere 6.1. The MDB receives messages if I create a simple test program from Java using JMS. However, if I go into MQ Explorer and create a "Test Publication" (the topic string is to "input" by default) and publish a message, it doesn't get pushed to the MDB. If I change the topic string to "INPUT.TOPIC" the MDB does get the message.
If someone could help me with this I would appreciate it.
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
The TopicString property of a TOPIC object associates the topic string (and maybe its subordinates) with that object for security and administrative control purposes. In MQ, opening the TOPIC object is equivalent to opening its TopicString, although normally apps should always using the topic string and have no knowledge of TOPIC object names.
Try the sample programs amqspub and amqssub on the topic string. Its probably a mis-match problem with upper/lower case or other characters you may have included in the topic string. _________________ Glenn
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum