Hi,

I think this has something to do with the xml namespace. The bean tag is a spring specific tag and is not recognized by xbean.

Well, basically you could try doing something similar to this:

<beans xmlns:amq="http://activemq.org/config/1.0";>
<amq:broker useJmx="true">
 <amq:plugins>
     <bean class="org.apache.activemq.security.JaasAuthenticationPlugin">
       <property name="configuration" value="activemq-domain"/>
     </bean>

     <amq:jaasAuthenticationPlugin configuration="activemq-domain" />
 </amq:plugins>

 <amq:persistenceAdapter>
     <amq:memoryPersistenceAdapter/>
   </amq:persistenceAdapter>

   <amq:transportConnectors>
      <amq:transportConnector name="hub" uri="https://localhost:8445"; />
<amq:transportConnector name="default" uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
   </amq:transportConnectors>
</amq:broker>
</beans>

Hope this helps.

Regards,
Adrian Co

p. wrote:

Your suggestion here to configure the ActiveMQ to use another security plugin
didi not work for me
I’ve added the bean to activemq.xml like this:

<broker useJmx="false" persistent="false">
   <plugins>
     <bean class="com.thirdparty.activemq.MyPlugin">
       <property name="endPoint" value="http://localhost:8080/sso/"; >
     </bean>
   </plugins>
  …..

the jar for MyPlugin is in ActiveMQ lib folder, by starting that I get this
error:

Loading message broker from: xbean:activemq.xml

ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name '' defined in class path resource [activemq.xml]:
Bean class [bean] not found; nested exception is
java.lang.ClassNotFoundException: bean

ERROR: java.lang.Exception:
org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name '' defined in class path resource [activemq.xml]:
Bean class [bean] not found; nested exception is
java.lang.ClassNotFoundException: bean

any suggestion?





--
View this message in context: 
http://www.nabble.com/Refreshing-authorizationPlugin-config-t1368949.html#a3889989
Sent from the ActiveMQ - User forum at Nabble.com.



Reply via email to