You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Frizz <fr...@googlemail.com> on 2013/09/12 14:10:10 UTC
Adding custom made plugins not possible in 5.8?
Hello,
I made a new BrokerPlugin as described here:
http://fusesource.com/docs/mirrors/activemq/features/interceptors.html
I edited activemq.xml to add a "plugins" element to "broker" like this:
<broker xmlns="http://activemq.org/config/1.0" brokerName="localhost"
dataDirectory="${activemq.base}/data" plugins="#myPlugin">
Unfortunately in 5.8 (haven't checked older versions) "broker" does not
have a "plugins" element any more - so my activemq.xml does not validate
any more.
I also tried adding my plugins this way:
<plugins>
<bean id="myPlugin" class="org.myorg.MyPlugin"/>
</plugins>
But this also does not work any more, because plugins are now pre-defined,
like authorizationPlugin, connectionDotFilePlugin,
destinationDotFilePlugin, ...
Question: How can I add a custom made plugin to ActiveMQ 5.8?
cheers,
F.
Re: Adding custom made plugins not possible in 5.8?
Posted by Frizz <fr...@googlemail.com>.
Yes, that works.
Thanks a lot Torsten!
On Thu, Sep 12, 2013 at 4:03 PM, Torsten Mielke <tm...@redhat.com> wrote:
> Hello,
>
> Can you try
>
> > <plugins>
> > <bean xmlns="http://www.springframework.org/schema/beans"
> id="myPlugin" class="org.myorg.MyPlugin"/>
> > </plugins>
>
>
> instead?
> I recently got a destination interceptor to work that way and had to
> specify the namespace for <bean> correctly.
>
>
> Regards,
>
> Torsten Mielke
> tmielke@redhat.com
> tmielke.blogspot.com
>
>
> On Sep 12, 2013, at 2:10 PM, Frizz wrote:
>
> > Hello,
> >
> > I made a new BrokerPlugin as described here:
> > http://fusesource.com/docs/mirrors/activemq/features/interceptors.html
> >
> > I edited activemq.xml to add a "plugins" element to "broker" like this:
> >
> > <broker xmlns="http://activemq.org/config/1.0" brokerName="localhost"
> > dataDirectory="${activemq.base}/data" plugins="#myPlugin">
> >
> > Unfortunately in 5.8 (haven't checked older versions) "broker" does not
> > have a "plugins" element any more - so my activemq.xml does not validate
> > any more.
> >
> > I also tried adding my plugins this way:
> > <plugins>
> > <bean id="myPlugin" class="org.myorg.MyPlugin"/>
> > </plugins>
> >
> > But this also does not work any more, because plugins are now
> pre-defined,
> > like authorizationPlugin, connectionDotFilePlugin,
> > destinationDotFilePlugin, ...
> >
> > Question: How can I add a custom made plugin to ActiveMQ 5.8?
> >
> > cheers,
> > F.
>
>
>
>
>
Re: Adding custom made plugins not possible in 5.8?
Posted by Torsten Mielke <tm...@redhat.com>.
Hello,
Can you try
> <plugins>
> <bean xmlns="http://www.springframework.org/schema/beans" id="myPlugin" class="org.myorg.MyPlugin"/>
> </plugins>
instead?
I recently got a destination interceptor to work that way and had to specify the namespace for <bean> correctly.
Regards,
Torsten Mielke
tmielke@redhat.com
tmielke.blogspot.com
On Sep 12, 2013, at 2:10 PM, Frizz wrote:
> Hello,
>
> I made a new BrokerPlugin as described here:
> http://fusesource.com/docs/mirrors/activemq/features/interceptors.html
>
> I edited activemq.xml to add a "plugins" element to "broker" like this:
>
> <broker xmlns="http://activemq.org/config/1.0" brokerName="localhost"
> dataDirectory="${activemq.base}/data" plugins="#myPlugin">
>
> Unfortunately in 5.8 (haven't checked older versions) "broker" does not
> have a "plugins" element any more - so my activemq.xml does not validate
> any more.
>
> I also tried adding my plugins this way:
> <plugins>
> <bean id="myPlugin" class="org.myorg.MyPlugin"/>
> </plugins>
>
> But this also does not work any more, because plugins are now pre-defined,
> like authorizationPlugin, connectionDotFilePlugin,
> destinationDotFilePlugin, ...
>
> Question: How can I add a custom made plugin to ActiveMQ 5.8?
>
> cheers,
> F.