> I am trying to use the AdminClient example sent with SwiftMQ 1.2.
>
> However, when I connect I get
> javax.jms.JMSSecurityException: sender subscription to queue
> 'swiftmqmgmt@router1' is not granted for user: anonymous
> which seems to be coming from the cli = new CLI(connection); call.
>
> I have however specified the admin username and password in the
> PROVIDER_URL, and in fact if I change it to a wrong username is does
> give me
> "unknown user"
>
> If I disable authentication on the router I can then connect.
>
> Any ideas what I am doing wrong?
You don't have to specify a username/password in the provider URL.
Anonymous connect should work. When you create a queue connection for
administration and authentication is on, the user you specify must have
the above grant on 'swiftmqmgmt@router1'. You can do this by putting it
in the group of the user (see Authentication Swiftlet config). The grant
is already specified for group 'admin' which has a user named 'admin'.
When authentication is turned off, every user has all grants.
> Thanks for an excellent product!
Thank you.
--
Andreas Mueller, [EMAIL PROTECTED], IIT GmbH, Bremen/Germany, http://www.iit.de
SwiftMQ, JMS Enterprise Messaging System, http://www.swiftmq.com
-----------------------------------------------------------------------
Support SwiftMQ! PLEASE vote for SwiftMQ as "Best Java Messaging Tool":
http://www.sys-con.com/java/readerschoice2001/
------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/