Because you have defined this:
<DurableSubscription>
| <ClientID>TPCAddSchool</ClientID>
| <Name>TPCAddSchool</Name>
| <Topic>addschool</Topic>
| </DurableSubscription>
the clientid will be set automatically by jbossmq on the connection for user TPCAddSchool.
If you want to connect to the topic you should not be specifying
TopicConnection.setClientID. The exception you are seeing is per the JMS spec.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991825#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...