activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomasz Pik <>
Subject Embedding AcitveMQ with JDBC persistence
Date Wed, 15 Apr 2009 06:40:14 GMT

I'm trying to embed activemq in web application, using JDBC for persistence.
During startup tables in database are created but activemq is still using
kaha files for persistence.
Here's my config file:

<bean id="dataSource" name="dataSource"

<amq:jdbcPersistenceAdapter id="persistenceAdapter"
useDatabaseLock="false" dataSource="#dataSource"/>
<bean class=""/>

<amq:broker useJmx="false" persistent="false"
    <amq:transportConnector uri="vm://alamakota" />

<amq:connectionFactory id="jmsFactory" brokerURL="vm://alamakota"/>
<amq:queue id="jmsQueue" physicalName="alama"/>

What should I do to get rid of 'activemq-data' directory (on
production serwer I won't be able
to write to filesystem) and use database for persistence.

Thanks in advance,

View raw message