activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dejan Bosanac" <de...@nighttale.net>
Subject Re: Simple authentication not working: Unrecognized xbean element mapping: authenticationUser
Date Mon, 21 Apr 2008 08:38:07 GMT
Hi,

xbean support for simple authentication plugin is available since 5.0 and is
working fine. You can find an example configuration in unit test resources

https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/security/simple-auth-broker.xml

In the 4.*, the plugin is not so Spring-friendly. You can set some things
manually, such as

 <bean class="org.apache.activemq.security.SimpleAuthenticationPlugin"
id="simpleAuthentication">
     <property name="userPasswords">
         <map>
             <entry>
                 <key>
                     <value>system</value>
                 </key>
                 <value>manager</value>
             </entry>
         </map>
     </property>
</bean>

and then install it with

<broker plugins="#simpleAuthentication"></broker>

Cheers
-- 
Dejan Bosanac
www.scriptinginjava.net

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message