Forum Home » Fuse Distributions » Fuse ESB

Thread: how to configure ESB fuse for use a remote broker as default broker ?

 
This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 5 - Last Post: May 16, 2012 1:09 AM Last Post By: ffang
sekaijin

Posts: 41
Registered: 11/07/11
how to configure ESB fuse for use a remote broker as default broker ?
Posted: Mar 12, 2012 8:48 AM
 
  Click to reply to this thread Reply
Hi.

how to configure ESB fuse for use a remote broker as default broker ?

I've an activeMQ instance of which is running on another machine and which is the default broker of my developments

Thank
A+JYT
sekaijin

Posts: 41
Registered: 11/07/11
Re: how to configure ESB fuse for use a remote broker as default broker ?
Posted: Apr 23, 2012 10:29 AM   in response to: sekaijin in response to: sekaijin
 
  Click to reply to this thread Reply
Hello,
I raise this discussion because I still have not figured out how to do.

I have a machine that hosts an instance of ActiveMQ. this broker is oppérationnel and supervised.

I have on the an other machine that host ServiceMix (FuseESB)

1) In the doc I found on how to install sevicemix a broker. that is not what I want to do.

2) I found how to configure an instance with a SMX broker to operate in cluster. that is not what I want to do.

3) I found how to write camel routes using a broker external

but I have not found how to configure ServiceMix for all my camel routes use the same broker.

I found information on this possibility in the doc of ServiceMix 3 but it is no longer in ServiceMix 4. file property change no longer exists.

it means he explicitly that I have to redefine all my roads to use a broker that sets in each of her?

Thank you for your help.
A + JYT
PS: sorry for my approximate english
ffang

Posts: 1,320
Registered: 12/24/07
Re: how to configure ESB fuse for use a remote broker as default broker ?
Posted: Apr 23, 2012 11:15 AM   in response to: sekaijin in response to: sekaijin
 
  Click to reply to this thread Reply
Hi,

For FUSE ESB/Servicemix 4.x, you need edit etc/activemq-broker.xml.

If you already have started external broker on another machine, remove <broker.....>... </broker> bean from etc/activemq-broker.xml.

Also I think you need revise
<bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">

<property name="brokerURL" value="vm://default?create=false&amp;waitForStart=10000" />
</bean>

change <property name="brokerURL" value="vm://default?create=false&amp;waitForStart=10000" />
to
<property name="brokerURL" value="the external broker url you have" />

HTH.

Freeman
sekaijin

Posts: 41
Registered: 11/07/11
Re: how to configure ESB fuse for use a remote broker as default broker ?
Posted: Apr 25, 2012 9:43 AM   in response to: ffang in response to: ffang
 
  Click to reply to this thread Reply
Hello,

I will test this solution.

thank you for your help.
A+JYT
sekaijin

Posts: 41
Registered: 11/07/11
Re: how to configure ESB fuse for use a remote broker as default broker ?
Posted: May 15, 2012 2:25 PM   in response to: sekaijin in response to: sekaijin
 
  Click to reply to this thread Reply
Hi.

Après de nombreux essais, ça ne marche pas.

I changed the values &#8203;&#8203;as you said.
but the default broker is always a instance of activemq embedded in OSGI.

I see the messages of this file is accumulated and nothing on my remote broker.

I thought I had recovered the service pooledConnectionFactory defined in the xml file from my routebuilder to tell Camel to use it to establish the connection jms.

but is not found on the lookup camel register
and a lookup on InitialContext either.

for long it seems to be well configured since I have seen appear on my remote broker queue for nmr.

so I have still no solution to use to indicate fuseesb it should use for all roads remote JMS broker.

Apart from creating an explicit connection in each bundle I do not see how.

this is a big problem because it means that the platform will not fuse to meet specifications.

A + JYT
ffang

Posts: 1,320
Registered: 12/24/07
Re: how to configure ESB fuse for use a remote broker as default broker ?
Posted: May 16, 2012 1:09 AM   in response to: sekaijin in response to: sekaijin
 
  Click to reply to this thread Reply
Hi,

Ensure you have removed FUSE_ESB/data folder after you change FUSE_ESB/etc/activemq-broker, which can pick up your changes.

Freeman