On Tue, 2003-12-30 at 13:02, Ionel GARDAIS wrote: > hi, > > how to add/change security roles on dynamicaly created > JMS queues ? > > I am creating a JMS queue using the jmx-console but > when I try to send a message, I get an exception : > > 13:46:56,541 WARN [OILServerILService] Client request > resulted in a server exception: > javax.jms.JMSSecurityException: Connection not > autorized to addMessages to destination: 4731602 > at > org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:160) > at > org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:270) > at > org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:136) > at > org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:253) > at java.lang.Thread.run(Thread.java:479) > > I specify a username/password when I create the > QueueConnection. > The username/password/role definition exists in the > jbossms-state.xml > > I just need to assign read/write authorization to the > roles via the jmx-console. >
You need to add the queue's configuration to the security manager (jboss.mq:service=SecurityManager) the operation is either addDestination(String destName, String conf); or addDestination(String destName, Element conf); where destName is the internal name of the queue/topic, e.g. QUEUE.myQueue and conf is the xml you would define on a static configuration e.g. <security> <role name="guest" read="true" write="true"/> <role name="publisher" read="true" write="true" create="false"/> <role name="durpublisher" read="true" write="true" create="true"/> </security> Regards, Adrian > Thanks, > ionel > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en franÃais ! > Yahoo! Mail : http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Director of Support Back Office JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user