activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j0llyr0g3r <timo.roess...@wincor-nixdorf.com>
Subject concurrent usage of a journal and a database?
Date Mon, 15 Oct 2007 11:27:19 GMT

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?

How does this make sense?

>From what i have, i'd thought that you only can use one at a time?

Could somebody please enlighten me?
-- 
View this message in context: http://www.nabble.com/concurrent-usage-of-a-journal-and-a-database--tf4626576s2354.html#a13210886
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message