activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Prokopiev <prokop...@stc.donpac.ru>
Subject Clustered JDBC database as message store and network of brokers
Date Fri, 11 Aug 2006 05:47:08 GMT
Hi,

Suppose, I use clustered JDBC database as message store with some 
brokers in such way:

<beans>

         <!-- JMX configuration -->
         <bean id="mbeanServer" 
class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
         <bean id="serverConnector" 
class="org.springframework.jmx.support.ConnectorServerFactoryBean">
                 <property name="objectName" 
value="connector:name=rmiConnector"/>
                 <property name="serviceUrl" 
value="service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"/>
                 <property name="threaded" value="true"/>
                 <property name="daemon" value="true"/>
                 <property name="server" ref="mbeanServer"/>
         </bean>
         <bean id="registry" 
class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
                 <property name="port" value="1099"/>
         </bean>

         <!-- HA-JDBC DataSource configuration -->
         <bean id="dataSource" 
class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
                 <property name="driverClassName" 
value="net.sf.hajdbc.sql.Driver"/>
                 <property name="url" value="jdbc:ha-jdbc:m"/>
                 <property name="username" value="activemq"/>
         </bean>

         <!-- ActiveMQ Broker configuration -->
         <bean id="broker" 
class="org.apache.activemq.broker.BrokerService" init-method="start" 
destroy-method="stop">
                 <property name="brokerName" value="m0"/>
                 <property name="persistent" value="true"/>
                 <property name="transportConnectorURIs">
                         <list>
                                 <value>tcp://localhost:5000</value>
                         </list>
                 </property>
                 <!--
                 <property name="networkConnectorURIs">
                         <list>
 
<value>static:(failover:tcp://m1:5000)</value>
                         </list>
                 </property>
                 -->
	</bean>

</beans>

Can I got any advantages by setting up network between brokers in this case?

--
Thanks,
Eugene Prokopiev


Mime
View raw message