I've done that, though I think you need to do the Queues like this:

  | <mbean code="org.jboss.mq.server.jmx.Queue" 
name="jboss.mq.destination:service=Queue,name=myQueue1">
  |     <depends 
optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
  |     <depends 
optional-attribute-name="SecurityManager">myApp:service=SecurityManagerForQueue1</depends>
  |     <attribute 
name="SecurityManager">myApp:service=SecurityManagerForQueue1</attribute>
  |     <attribute name="SecurityConf">
  |             <security>
  |                     <role name="guest" read="true" write="true"/>
  |                     <role name="publisher" read="true" write="true" 
create="false"/>
  |                     <role name="noacc" read="false" write="false" 
create="false"/>
  |             </security>
  |     </attribute>
  | </mbean>
  | 
  | 
(notice that it doesn't just depend on the custom SecurityManager--it actually 
specifies that it uses it)

Unfortunately this does not appear to work.  I see stack traces like this when 
the system starts up:

  | 2006-06-27 16:43:43,498 WARN  
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected 
for Queue1Consumer
  | javax.jms.JMSSecurityException: User: null is NOT authenticated
  |     at 
org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:230)
  |     at 
org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:66)
  |     at 
org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:744)
  |     at 
org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:302)
  |     at 
org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:220)
  |     at 
org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:396)
  |     at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
  |     at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
  |     at java.lang.Thread.run(Thread.java:595)
  | 
Setting breakpoints and stepping through code, it's trying to use the jbossmq 
security-domain, which isn't the one I want it to use.


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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to