If you have a clustered JDBC database and want to use that to get HA
then I'd recommend using this...
http://incubator.apache.org/activemq/jdbc-master-slave.html
which allows you to run many brokers; one is the master and others are
slaves for fast HA and failover. The only downside is performance as
JDBC Master Slave only works when not using the high performance
journal
On 8/11/06, Eugene Prokopiev <[EMAIL PROTECTED]> wrote:
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
--
James
-------
http://radio.weblogs.com/0112098/