Hello all,
Perhaps some kind individual could help me with my issue. I am trying to create a topic connection. I have retrieved the ConnectionFactory and when i call createTopicConnection() an exception is thrown..
org.jboss.mq.SpyJMSException: Cannot authenticate user
at org.jboss.mq.Connection.authenticate(Connection.java:766)
at org.jboss.mq.Connection.(Connection.java:233)
at org.jboss.mq.SpyConnection.(SpyConnection.java:48)
at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnection
Factory.java:83)
I understand the the createTopicConnection method is overloaded and can have username and password parameters. I am unsure where these might be found in the JBoss configuration files.
Can anyone help with this problem?
Yep, which jboss version? If it's 2.4.x look in /conf/jbossmq-state.xml.
Not 100% if it's the same in 3.0 but imagine something similar.
Put your user/password in here. Note that this is only required with durable subscriptions