activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Liard <sam...@net-liard.com>
Subject Slave but worker !
Date Mon, 30 Mar 2009 13:37:58 GMT

Hi,

I use Shared File System Master Slave configuration in two JVM with Spring.

It's works well but I would like add consumer in the Slave JVM.
I try :

<bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory"
destroy-method="stop">
  <property name="connectionFactory">
    <bean class="org.apache.activemq.ActiveMQConnectionFactory">
      <property name="brokerURL">
        <value>failover://(tcp://master:61616,vm:localhost)</value>
      </property>
    </bean>
  </property>
</bean>

And the broker :

<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean" >
  <property name="config" value="classpath:activemqSlave.xml" />
  <property name="start" value="true" />
</bean>

In this case, the slave wait for take the lock on share files and the JMS
consumer never start until the master dead.

How have an activeMQ Slave embeded in my JVM without block all other bean ?

Thanks

Samuel
-- 
View this message in context: http://www.nabble.com/Slave-but-worker-%21-tp22782932p22782932.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message