8 Replies Latest reply on Apr 24, 2013 9:38 AM by Somefname1 Somelname1

    Custom SecurityManager for HornetQ in Jboss AS

    Somefname1 Somelname1 Newbie

      I'm running HornetQ 2.3.0.CR1 in Jboss AS 7.2.0.Final. Trying to set my custom security manager through hornetq-jboss-beans.xml descriptor:



      <?xml version="1.0" encoding="UTF-8"?>

      <deployment xmlns="urn:jboss:bean-deployer:2.0">

         <bean name="HornetQSecurityManager" class="some.my.HornetSecurityManager">

            <start ignored="true"/>

            <stop ignored="true"/>





      when deploying I get this error in jboss:



      org.jboss.msc.service.DuplicateServiceException: Service jboss.pojo.HornetQSecurityManager.DESCRIBED is already registered



      Why do I get such error? How can I "unregister" standart built-in security manager? May be I need to add my security manager in messaging subsystem of standalone.xml?


      Excuse me, if it is more jboss related question.