No.

The ID in jbossmq-state.xml adds the extra constraint that
only the configured user can login as that id (and automatically
uses that client id).

If you use setClientID() then multiple users can share the id
(but not concurrently).

Regards,
Adrian

On Mon, 2004-01-12 at 18:11, Dilshan Rajapaksa wrote:
> Thanks alot....
>  
> if i use Connection.setClientID()  will it set alter the
> jbossmq-state.xml file and add the ID to the Particular user??
>  
> Dilshan
>  
> Adrian Brock <[EMAIL PROTECTED]> wrote:
>         You need to configure the role to allow it to "create" durable
>         subscriptions.
>         
>         e.g. the example below that comes with jboss allows
>         durpublisher to create subscriptions but not guest or
>         publisher.
>         guest and publisher can create nondurable subscriptions.
>         
>         Also make sure you use Connection.setClientID() before
>         creating
>         durable subscriptions, otherwise the subscription will be made
>         against an temporary client id like ID:1
>         
>         Regards,
>         Adrian
>         
>         name="jboss.mq.destination:service=Topic,name=testDurableTopic">
>         
> optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
>         optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager
>         
>         
>         
>         create="false"/>
>         create="true"/>
>         
>         
>         
>         
>         
>         On Fri, 2004-01-09 at 06:05, Dilshan Rajapaksa wrote:
>         > Hi...
>         > 
>         > I need to do create a durable subscription to topic. I have
>         created a
>         > topic in the using a MDB in the
>         "jbossmq-destinations-service.xml". I
>         > would like to know the changes i have to make in order to
>         make the
>         > topic durable. i get the following error at the moment. 
>         > " javax.jms.JMSSecurityException: Connection not authorized
>         to do
>         > durable subscription on topic: HeadOffice"
>         > 
>         > Dilshan
>         > 
>         > 
>         > 
>         >
>         ______________________________________________________________________
>         > Do you Yahoo!?
>         > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>         -- 
>         xxxxxxxxxxxxxxxxxxxxxxxx 
>         Adrian Brock
>         Director of Support
>         Back Office
>         JBoss Group, LLC 
>         xxxxxxxxxxxxxxxxxxxxxxxx 
>         
>         
>         
>         -------------------------------------------------------
>         This SF.net email is sponsored by: Perforce Software.
>         Perforce is the Fast Software Configuration Management System
>         offering
>         advanced branching capabilities and atomic changes on 50+
>         platforms.
>         Free Eval! http://www.perforce.com/perforce/loadprog.html
>         _______________________________________________
>         JBoss-user mailing list
>         [EMAIL PROTECTED]
>         https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ______________________________________________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to