Hello Friends,
I am having a problem with authenticatin in
JBoss Application server. I want to implement durable subscription usign JBoss so that the client is able to recieve message even when it reconnects.
I read in the JBoss documentation that the user needs to connect using a UserID and a Password.
My Problem is :
Where to specify the username and password (I know jbossmx-state.xml holds the userid and the password but where is it required to be placed in the J Boss appication direcotry)
Also whenever I try to connect to the TopicConnectionFactory using
tconFactory = (TopicConnectionFactory) ctx.lookup(JMS_FACTORY);
tcon = tconFactory.createTopicConnection("john", "needle");
I get the exception
javax.jms.JMSSecurityException: Connection not authorized to do durable subscription on topic: EKTMessageTopic
at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:135)
at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:816)
at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:297)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:160)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:361)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:534)
I have been trying to figure it out since a long time, Any help will be highly appreciated.
Thanks,
Amit