*
The moose likes JBoss/WildFly and the fly likes Durable subscription authentication problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Durable subscription authentication problem" Watch "Durable subscription authentication problem" New topic
Author

Durable subscription authentication problem

Amit Siinngghh
Greenhorn

Joined: Jun 19, 2004
Posts: 12
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Durable subscription authentication problem
 
Similar Threads
javax.jms.IllegalStateException
JBOSS 4.2.3 throws UnexpectedError Delivering message Delegator
problem with jms/TopicConnectionFactory
JMS Questions
JMS Durable Subscriber Example