I've setup an application, which uses JMS Topics to inform stand-alone clients about certain state change. So the client subscribe to the well known topic and receive messages.
Now I want to secure the topic, so that authenticated clients are able to subscribe to the topics, only. I've an application policy defined in conf/login-config.xml like this:
<application-policy name="myApp"> <authenication> ... </authentication> </application-policy>
<server> <mbean code="org.jboss.mq.server.jmx.Topic" name="jboss.mq.destination:service=Topic,name=myApp"> <attribute name="JNDIName">topic/myApp/check</attribute> <depends optional-attribute-name="DestinationManager" >jboss.mq:service=DestinationManager</depends> </mbean> </server>
<depends optional-attribute-name="SecurityManager"> jboss.mq:service=SecurityManager <depends>