This content has been marked as final.
Show 1 reply
-
1. Re: How to specify an application-policy for HornetQ?
jaikiran Sep 3, 2010 2:46 AM (in response to eugene-71)In the JBOSS_HOME/server/< servername>/deploy/hornetq/hornetq-jboss-beans.xml, there's a HornetQSecurityManager which uses org.hornetq.integration.jboss.security.JBossASSecurityManager. The JBossASSecurityManager accepts a "securityDomainName" property value. By default, it's java:jaas/hornetq. You can override it with your policy name:
<!-- The security manager --> <bean name="HornetQSecurityManager" class="org.hornetq.integration.jboss.security.JBossASSecurityManager"> <start ignored="true"/> <stop ignored="true"/> <depends>JBossSecurityJNDIContextEstablishment</depends> <property name="allowClientLogin">false</property> <property name="authoriseOnClientLogin">false</property> <!-- custom JAAS policy --> <property name="securityDomainName">java:jaas/mypolicy</property> </bean>