You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2012/12/05 22:09:58 UTC

[jira] [Closed] (AMQ-1516) Allow a way to add/configure Broker Plugins with Spring

     [ https://issues.apache.org/jira/browse/AMQ-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish closed AMQ-1516.
-----------------------------

    Resolution: Incomplete

Patch missing.
                
> Allow a way to add/configure Broker Plugins with Spring
> -------------------------------------------------------
>
>                 Key: AMQ-1516
>                 URL: https://issues.apache.org/jira/browse/AMQ-1516
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>    Affects Versions: 4.1.1
>         Environment: Ubuntu Linux, Windows XP
>            Reporter: Saqib Rasul
>             Fix For: NEEDS_REVIEWED
>
>
> Currently the only way to add broker plugins is via some XBean magic. This has the following drawbacks:
> - a special compile-time step is required to get XBean to know we have a plugin
> - forces one to use Maven
> - There is lacking examples how to setup a new Broker Plugin
> I would suggest we have a Spring way of starting and configuring an activeMQ Broker which also allows one to specify the Broker Plugins. I would recommend something like this:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>   <!-- the bean that starts ActiveMQ -->
>   <bean id="activeMqStarter" class="ActiveMqStarter" init-method="startIt"
>     lazy-init="false">
>     <property name="properties" ref="activeMqProps" />
>   </bean>
>   <!-- the properties for the ActiveMQ Broker -->
>   <bean id="activeMqProps" class="ActiveMqStarterProps">
>     <property name="memoryLimit" value="20 Mb" />
>     <property name="deleteAllMessagesOnStartup" value="true" />
>     <property name="useJmx" value="true" />
>     <property name="persistent" value="false" />
>     <property name="useShutdownHook" value="true" />
>     <property name="connectors">
>       <list>
>         <value>tcp://localhost:61616</value>
>       </list>
>     </property>
>     <property name="plugins">
>       <list>
>         <ref bean="myFirstPlugin" />
>         <ref bean="myLastPlugin" />
>       </list>
>     </property>
>   </bean>
> </beans>
> {code}
> This would make it much easier to develop and deploy ActiveMQ Broker Plugins as it reduces the dependency to XBean and the additional compile-time step.
> I could volunteer to make such classes as a patch if you think this is worth it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira