Hi,

I've played a bit with servicemix kernel and activemq these days and
found servicemix.activemq bundle that does what you need (with some
restrictions) - https://issues.apache.org/activemq/browse/SM-1065.

To make it run, first you need to install the following dependencies

osgi install -s
mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec
osgi install -s mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec
osgi install -s mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec
osgi install -s mvn:org.apache.activemq/activemq-core/5.1.0
osgi install -s mvn:org.apache.xbean/xbean-spring

then you should add activemq.xml,like

<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";>

    <bean id="broker" class="org.apache.activemq.xbean.XBeanBrokerService">
        <property name="transportConnectorURIs">
          <list>
            <value>tcp://localhost:61616</value>
          </list>
        </property>
        <property name="useJmx">
            <value>false</value>
        </property>
        <property name="persistent">
            <value>false</value>
        </property>
    </bean>
</beans>

to the ${SERVICEMIX_HOME}/etc

and then add this bundle

osgi install -s
mvn:org.apache.servicemix.activemq/org.apache.servicemix.activemq

The only problem is that seems that it relies on activemq 4.0 and I
didn't managed to make it work with "normal" activemq config files

I was getting: Unrecognized xbean namespace mapping:
http://activemq.org/config/1.0

Maybe ActiveMQ could provide a activemq-all bundle with all these
dependecies and a link to the external configuration file, for better
integration in OSGi containers?


Cheers

-- 
Dejan Bosanac


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net



huntc wrote:
> James.Strachan wrote:
>   
>> I'd recommend using Spring Dynamic Modules, then drop the
>> conf/activemq.xml into META-INF/spring/activemq.xml and it should boot
>> up OK. I've not tried this yet mind you - let us know how you get on
>> :)
>>
>>     
>
> Thank you James. I shall attempt to give this a go and report back my
> findings.
>
> However I was rather hoping that the configuration would be something
> external to the bundle itself - something along the lines of how Tomcat is
> configured in spring dm server.
>
> Thanks again.
>   

Reply via email to