File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Durable subscription authentication problem" Watch "Durable subscription authentication problem" New topic

Durable subscription authentication problem

Amit Siinngghh

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 EDU.oswego.cs.dl.util.concurrent.PooledExecutor$

I have been trying to figure it out since a long time, Any help will be highly appreciated.

I agree. Here's the link:
subject: Durable subscription authentication problem
It's not a secret anymore!