the set of options that can be configured via the broker: url scheme
is limited to simple strings.
Simplest way may be to introduce a broker bean into your application context.
To reference an external xml configuration use something like:
<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
<property name="config" value="classpath:activemq.xml" />
<property name="start" value="true" />
</bean>
or you could explicitly configure a broker bean using the xml syntax:
<amq:broker useJmx="false" persistent="false">
<amq:transportConnectors>
<amq:transportConnector uri="tcp://localhost:0" />
</amq:transportConnectors>
</amq:broker>
see: http://activemq.apache.org/spring-support.html for more detail
2009/10/5 davidgeary <[email protected]>
>
> I'm setting up an embedded broker in a connection factory in spring with the
> following URL:
>
> <property name="brokerURL"
> value="vm:(broker:(tcp://localhost:61618,network:multicast://default)?persistent=false&brokerName=ec-amq)"/>
>
> Whats the correct syntax for the broker URL in order to set up discovery on
> the transport connection? Ie if I was using ActiveMQ XML configuration it
> would be
>
> <transportConnectors>
> <transportConnector
> name="openwire" uri="tcp://localhost:61618"
> discoveryUri="multicast://default"/>
> </transportConnectors>
>
> I can't see how to get the discoeryUri into the brokerURL?
>
> Thanks for any help
>
> Dave
>
>
> --
> View this message in context:
> http://www.nabble.com/Enable-discovery-in-embedded-broker-URL-tp25752382p25752382.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
--
http://blog.garytully.com
Open Source Integration
http://fusesource.com