Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting up ActiveMQ with Journaled MySQL JDBC Persistence
    primarykey
    data
    text
    <p>I'm running ActiveMQ 5.5.1 and having issues getting journaled JDBC persistence configured. Using <a href="http://fusesource.com/docs/esb/4.3/amq_persistence/FuseMBPersistJDBCJournaled.html" rel="nofollow">the example here</a>, I get the following XML validation error:</p> <pre><code>./activemq console xbean:my-activemq.xml Java Runtime: Sun Microsystems Inc. 1.6.0_29 /home/aj/jdk1.6.0_29/jre Heap sizes: current=253440k free=250641k max=253440k JVM args: -Xms256M -Xmx256M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Dactivemq.classpath=/home/aj/apache-activemq-5.5.1/conf; -Dactivemq.home=/home/aj/apache-activemq-5.5.1 -Dactivemq.base=/home/aj/apache-activemq-5.5.1 ACTIVEMQ_HOME: /home/aj/apache-activemq-5.5.1 ACTIVEMQ_BASE: /home/aj/apache-activemq-5.5.1 Loading message broker from: xbean:my-activemq.xml INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@13f3045: startup date [Thu Dec 22 07:49:17 EST 2011]; root of context hierarchy ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [my-activemq.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.apache.activemq.store.journal.JournalPersistenceAdapter' to required type 'org.apache.activemq.store.PersistenceAdapterFactory' for property 'persistenceFactory'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.apache.activemq.store.journal.JournalPersistenceAdapter] to required type [org.apache.activemq.store.PersistenceAdapterFactory] for property 'persistenceFactory': no matching editors or conversion strategy found </code></pre> <p>I've reviewed <a href="http://activemq.apache.org/config/1.0/core/activemq-core-5.4.0-schema.html#journaledJDBC" rel="nofollow">the published schema</a>, but it appears to be completely different than this example, so clearly one of the two sources is out of sync. Can anyone please share their working persistence configuration using Journaled JDBC with MySQL?</p> <p>Here's the relevant sections of my configuration:</p> <pre><code>&lt;bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"&gt; &lt;property name="driverClassName" value="com.mysql.jdbc.Driver"/&gt; &lt;property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/&gt; &lt;property name="username" value="activemq"/&gt; &lt;property name="password" value="activemq"/&gt; &lt;property name="maxActive" value="200"/&gt; &lt;property name="poolPreparedStatements" value="true"/&gt; &lt;/bean&gt; &lt;persistenceFactory&gt; &lt;journaledJDBC journalLogFiles="5" dataDirectory="${activemq.base}/activemq-data" dataSource="#mysql-ds"/&gt; &lt;/persistenceFactory&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload