activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: concurrent usage of a journal and a database?
Date Mon, 15 Oct 2007 12:51:54 GMT
You can use the file based journal and a database together - it can  
make sense where the database is local to the message broker using it  
(embedded) - and for 4.x this is the default configuration - using  
Apache derby as the database.




cheers,

Rob

http://rajdavies.blogspot.com/



On Oct 15, 2007, at 12:27 PM, j0llyr0g3r 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?
>
> 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