You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Garner, Shawn" <sh...@vangent.com> on 2007/04/13 18:16:28 UTC
broker url and broker xbean config file
Is there a way to move the brokerURL into the activemq.xml file?
So I can go from:
<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
<property name="config"
value="classpath:org/apache/activemq/xbean/activemq.xml" />
<property name="start" value="true" />
</bean>
<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory"
depends-on="broker">
<property name="brokerURL" value="vm://localhost"/>
</bean>
To
<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
<property name="config"
value="classpath:org/apache/activemq/xbean/activemq.xml" /><!--this now
configures <property name="brokerURL" value="vm://localhost"/>-->
<property name="start" value="true" />
</bean>
<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory"
depends-on="broker"/>
Shawn
Re: broker url and broker xbean config file
Posted by "Christopher G. Stach II" <cg...@ldsys.net>.
Garner, Shawn wrote:
> Is there a way to move the brokerURL into the activemq.xml file?
>
> So I can go from:
>
> <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
> <property name="config"
> value="classpath:org/apache/activemq/xbean/activemq.xml" />
> <property name="start" value="true" />
> </bean>
>
> <bean id="connectionFactory"
> class="org.apache.activemq.ActiveMQConnectionFactory"
> depends-on="broker">
> <property name="brokerURL" value="vm://localhost"/>
> </bean>
>
> To
>
> <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
> <property name="config"
> value="classpath:org/apache/activemq/xbean/activemq.xml" /><!--this now
> configures <property name="brokerURL" value="vm://localhost"/>-->
> <property name="start" value="true" />
> </bean>
>
> <bean id="connectionFactory"
> class="org.apache.activemq.ActiveMQConnectionFactory"
> depends-on="broker"/>
>
>
>
>
>
>
> Shawn
>
>
>
>
Redelivery is a function of the client, so it kind of belongs in the
URL. That's where I have mine.
--
Christopher G. Stach II