I have a Topic that defined some security roles for accessing like:

        ...
        
            
                
                
            
        
        ...

In my code I want to be able to call:

connectionFactory.createTopicConnection() [without any username/password arguments]

to get a handle on a topic connection to publish messages to.  Unfortunately I get an 
access error saying that I don't have permission to publish to this topic.  If I pass 
in a user name and password to the createTopicConnection(username, password) method 
with a user that is in the publisher role then all works.

My question is the JavaDocs for createTopicConnection() says that it will "Creates a 
topic connection with the default user identity".  How do I setup the default user 
identity so I don't have to specify a username/password in my code?

Thanks!
Mike

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841790#3841790

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841790


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to