activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manishbel <manish...@yahoo.com>
Subject Embedded Broker/Weblogic/Master Slave
Date Thu, 26 Jul 2007 21:46:16 GMT

Hello

My Goals are

1.) Use the embedded broker configured as spring bean in the application.
2.) To be able to use the Master/Slave behaviour
3.) Deploy the application in the weblogic cluster.

I have configured the broker to use the databse lock, at the moment one of
the cluster instances comes up and acquires the lock when the other cluster
instance
is trying to come up it hangs waiting for the lock and application itself is
being prevented from starting. is there a solution for this situation or do
i have to
extract the brokers out of the application?

Manish

Here is the configuration

  <bean id="persistenceAdapter"
class="org.apache.activemq.store.PersistenceAdapterFactoryBean">
    <property name="dataDirectory" value="${jms.activemq.data.dir}"/>
    <property name="journalLogFiles" value="5"/>
    <property name="dataSource">
      <bean class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
        <property name="driverClassName"
value="oracle.jdbc.driver.OracleDriver"/>
        <property name="url"
value="${jms.activemq.persistence.dataSource.url}"/>
        <property name="username"
value="${jms.activemq.persistence.dataSource.username}"/>
        <property name="password"
value="${jms.activemq.persistence.dataSource.password}"/>
      </bean>
    </property>
  </bean>

 
 <bean name="activeMqBroker"
class="org.apache.activemq.xbean.XBeanBrokerService">
    <property name="start" value="true"/>
    <property name="useJmx" value="true"/>
    <property name="advisorySupport" value="false"/>
    <property name="managementContext" ref="jmxManagementContext"/>
    <property name="persistenceAdapter" ref="persistenceAdapter"/>
    <property name="brokerName" value="brokerA"/>
    <property name="masterConnectorURI" value="tcp://xxx.host.com:13000"/>
    <property name="shutdownOnMasterFailure" value="false"/>
    <property name="destinations">
      <list>
       <!-- I have specified list of destinations here -->
      </list>
    </property>
    <property name="transportConnectorURIs">
      <list>
       
<value>${jms.transport.protocol}://localhost:${jms.server.port}?${jms.transport.options}</value>
      </list>
    </property>
    <property name="jmsBridgeConnectors">
      <ref bean="bridgeList"/>
    </property>
  </bean>
-- 
View this message in context: http://www.nabble.com/Embedded-Broker-Weblogic-Master-Slave-tf4154288s2354.html#a11819593
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message