Hi,

yeah the etc/activemq.xml will start a default embedded broker on localhost:61616, and also export a javax.jms.ConnectionFactory OSGi service which you can use in other bundles.

For your customer bundle, you can configure the ActiveMQComponent like
<bean id="jms" class="org.apache.activemq.camel.component.ActiveMQComponent">
        <property name="brokerURL" value="tcp://localhost:61616"/>
    </bean>
to use that default broker, or if you have external broker started, you can also configure the ActiveMQComponent similarly to use the external broker.

Freeman

On 2012-6-6, at 下午7:40, Guillaume Yziquel wrote:

Le Wednesday 06 Jun 2012 à 13:33:28 (+0200), [email protected] a écrit :
Hello all

General question about the embedded ActiveMQ broker which is started in ServiceMix 4.4.1 with default configuration.

Suppose I establish a route similar to the following (blueprint):

<camelContext xmlns=".....">
        <route>
                <from uri="file://data/in/"/>
                <to uri="activemq://myQueue"/>
        </route>
</camelContext>

What part of the ServiceMix configuration is responsible for the 'activemq'? As I understood, this is an 'org.apache.activemq.camel.component.ActiveMQComponent'. Am I right? Where is this component generated and configured so that I can just use it? Is it possible to point this component to an ActiveMQ instance on a different host?

etc/activemq.xml

Thanks in advance
- David

--
Guillaume Yziquel
Software Developer

Crossing-Tech
Parc Scientifique ÉPFL

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042










Reply via email to