activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: concurrent usage of a journal and a database?
Date Mon, 15 Oct 2007 13:01:08 GMT
On 15/10/2007, j0llyr0g3r <timo.roessner@wincor-nixdorf.com> wrote:
>
> Hey folks,
>
> i really dont understand the following code-snippet from the original
> AMQ-config-file:
>
>     <!-- Use the following if you wish to configure the journal with JDBC
> -->
>     <!--
>     <persistenceAdapter>
>         <journaledJDBC journalLogFiles="5"
> dataDirectory="${activemq.base}/activemq-data"  dataSource="#postgres-ds"/>
>     </persistenceAdapter>
>     -->
>
> where dataSource="#postgres-ds" would be
>
>   <!--
>   <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"/>
>   </bean>
>   -->
>
> which would be a PostgreSQL-Server.
>
> Why and - more important - how could it be possible to use the
> filesystem-based journal AND a database at once?

Using the file system journal is a performance optimisation; its maybe
10-20x faster than just using a database

-- 
James
-------
http://macstrac.blogspot.com/

Open Source SOA
http://open.iona.com

Mime
View raw message