activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marlon Santos <>
Subject Re: JDBC Master Slave
Date Mon, 11 Dec 2006 06:42:18 GMT


The problem was you were not using a  jdbc database in your xml config. 
Try changing 



     <jdbcPersistenceAdapter dataDirectory="activemq-data"

If your using other data source rather than postgres-sql, just change the
dataSource with the database you are using, such as mysql. then uncomment
this part.
( this example is for postgres-sql.)

  <bean id="postgres-ds" class="org.postgresql.ds.PGPoolingDataSource">
    <property name="serverName" value="localhost"/>
    <property name="databaseName" value="activemq"/>
    <property name="portNumber" value="0"/>
    <property name="user" value="activemq"/>
    <property name="password" value="activemq"/>
    <property name="dataSourceName" value="postgres"/>
    <property name="initialConnections" value="1"/>
    <property name="maxConnections" value="10"/>

then create the necessary tables and database needed.


Anthrope wrote:
> Hello,
>     I'm using version 4.1 and am trying to get a fairly straightforward
> jdbc master-slave setup going. I'm using a minimal configuration, with the
> default JDBC persistence adaptor, as specified in this example:
> .  I start the master
> instance first, and attempt to start the slave with the *same*
> configuration file. The slave fails to start, because it attempts to
> create the derby database as well. 
>      Now, the documentation states this: in regard to JDBC master slave
> configuration: "By default if you use the <jdbcPersistenceAdapter/> to
> avoid the high performance journal you will be using JDBC Master Slave by
> default. You just need to run more than one broker and point the client
> side URIs to them to get master/slave."
>      The behaviour I see is not quite consistent with this. I am not able
> to start more than one broker, which is the master. Am I missing something
> here? And, has anyone got this to work? I am attaching the broker
> configuration file, which is a verbatim cut and paste of the xml
> configuration file in the JDBC master slave example.
> m.xml  
> Regards,
> Prashanth

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message