activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laures <baetz.alexan...@googlemail.com>
Subject Configuration of Custom Plugins with "bean"-Tags inside the Plugin-Tag causes Exception
Date Wed, 08 Jun 2011 07:47:24 GMT
The Documentation says its possible to configure your own plugins like that:

  <plugins>
      <bean id="myPlugin" class="org.myorg.MyPlugin"/>    
  </plugins>

I tried this with on ActiveMQ 5.5 the following way:

  <plugins>
      <jaasAuthenticationPlugin configuration="activemq-domain" />
      <bean id="authplug"
class="org.apache.activemq.security.AuthorizationPlugin"></bean>
  </plugins>

I am aware that I'm not configuring an authentication map, this was only a
test. In the end i want to configure another bean that injects my own
Authorization map into the Broker.

This config raised two problems:
1. Validation fails. The xml validation fails for this configuration because
the "bean"-Tag is not expected, even if the documentation sais otherwise.
2. When validation is deactivated spring throws the following exception:

 org.springframework.beans.factory.BeanDefinitionStoreException:
Unrecognized xbean element mapping: bean in namespace
http://activemq.apache.org/schema/core



--
View this message in context: http://activemq.2283324.n4.nabble.com/Configuration-of-Custom-Plugins-with-bean-Tags-inside-the-Plugin-Tag-causes-Exception-tp3581876p3581876.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message