activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Embedded Broker/Weblogic/Master Slave
Date Fri, 27 Jul 2007 06:32:31 GMT
Only one broker, the master in your cluster will be active - so it  
doesn't make sense to embed the brokers - as the slaves will hang  
until the lock is acquired - so extract the brokers from the application


cheers,

Rob

'Go Get Integrated -  ride the Camel! - http://activemq.apache.org/ 
camel/'
http://rajdavies.blogspot.com/



On Jul 26, 2007, at 10:46 PM, manishbel wrote:

>
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message