activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: Configuring ActiveMQ in OSGi containers
Date Wed, 05 Nov 2008 10:08:39 GMT

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

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

osgi install -s
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


    <bean id="broker" class="org.apache.activemq.xbean.XBeanBrokerService">
        <property name="transportConnectorURIs">
        <property name="useJmx">
        <property name="persistent">

to the ${SERVICEMIX_HOME}/etc

and then add this bundle

osgi install -s

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:

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?


Dejan Bosanac - get a free ActiveMQ user guide

ActiveMQ in Action -
Scripting in Java -

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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message