activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saqib Rasul (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/activemq/browse/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
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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message