activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saqib Rasul (JIRA)" <>
Subject [jira] Created: (AMQ-1516) Allow a way to add/configure Broker Plugins with Spring
Date Wed, 12 Dec 2007 12:56:27 GMT
Allow a way to add/configure Broker Plugins with Spring

                 Key: AMQ-1516
             Project: ActiveMQ
          Issue Type: New Feature
          Components: Broker
    Affects Versions: 4.1.1
         Environment: Ubuntu Linux, Windows XP
            Reporter: Saqib Rasul

Currently the only way to add broker plugins is via some XBean magic. This has the following

- 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:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="" xmlns:xsi=""

  <!-- the bean that starts ActiveMQ -->
  <bean id="activeMqStarter" class="ActiveMqStarter" init-method="startIt"
    <property name="properties" ref="activeMqProps" />

  <!-- 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">
    <property name="plugins">
        <ref bean="myFirstPlugin" />
        <ref bean="myLastPlugin" />

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.
You can reply to this email to add a comment to the issue online.

View raw message