Dynamically configure broker

View: New views
1 Messages — Rating Filter:   Alert me  

Dynamically configure broker

by Jenny wei :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

   In the Lingo example file, I saw:

   <!-- JMS ConnectionFactory to use -->
  <bean id="jmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="vm://localhost"/>
  </bean>

   I wonder if there is a way to dynamically configure broker. My application client could potentially connect to different servers, after a user chooses one, it will use the service provided by the specified server. So the hardcoded broker URL will not work.  For different customers, they will use different server set up. Again, the hardcoded broker URL will not work.

   Thanks,

   Jenny
LightInTheBox - Buy quality products at wholesale price