You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ojs <ol...@siegmar.net> on 2006/10/17 11:19:40 UTC

Which persistentAdapter to take?

Hello,

I couldn't find a comparison of the available persistent adapters. I'm
unsure which one to use for which use case. I currently need one, that has
maximum security (write immediately to disk - do not only keep in memory)
and doesn't require a separate database that could be another single point
of failure.


Best

Oliver
-- 
View this message in context: http://www.nabble.com/Which-persistentAdapter-to-take--tf2458174.html#a6851382
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Which persistentAdapter to take?

Posted by ojs <ol...@siegmar.net>.

James.Strachan wrote:
> 
> You could use an embedded database (like Derby) with or without the
> high performance journal, or you could use Kaha. 
> 

Thanks for your answer! When do I need a journal, when not?


James.Strachan wrote:
> 
> The latter is the
> fastest, the former is the easiest to work with (e.g. you can do SQL
> on the data etc).
> 

How reliable are they? If I use Kaha with <kahaPersistenceAdapter dir =
"activemq-data" maxDataFileLength = "33554432"/>, then this is used for
long-time persistance, right? Where is the journal? Are there any
configuration options for the journal?



Best

Oliver
-- 
View this message in context: http://www.nabble.com/Which-persistentAdapter-to-take--tf2458174.html#a6853235
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Which persistentAdapter to take?

Posted by James Strachan <ja...@gmail.com>.
On 10/17/06, ojs <ol...@siegmar.net> wrote:
> I'm
> unsure which one to use for which use case. I currently need one, that has
> maximum security (write immediately to disk - do not only keep in memory)
> and doesn't require a separate database that could be another single point
> of failure.

You could use an embedded database (like Derby) with or without the
high performance journal, or you could use Kaha. The latter is the
fastest, the former is the easiest to work with (e.g. you can do SQL
on the data etc).

http://activemq.org/site/persistence.html
-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Which persistentAdapter to take?

Posted by James Strachan <ja...@gmail.com>.
On 10/17/06, ojs <ol...@siegmar.net> wrote:
> James.Strachan wrote:
> >
> >>Is there any documentation for the attributes and
> >> elements for journaledJDBC? I'm especially interested in the attributes
> >> 'useJournal' and 'useQuickJournal' - how to use them?
> >
> > http://people.apache.org/maven-snapshot-repository/incubator-activemq/incubator-activemq/4.1-SNAPSHOT/activemq.xsd.html
> >
>
> ...that's the page from where I knew these parameters. But the description
> is missing :-(

I've just added them, so the next build of the XSD reference should
have them in. Basically useJournal just allows you to enable/disable
the journal. useQuickJournal basically allows you to keep the messages
in the journal files and have JDBC reference the journal file (to save
copying messages from the journal into the JDBC database)


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Which persistentAdapter to take?

Posted by ojs <ol...@siegmar.net>.

James.Strachan wrote:
> 
>>Is there any documentation for the attributes and
>> elements for journaledJDBC? I'm especially interested in the attributes
>> 'useJournal' and 'useQuickJournal' - how to use them?
> 
> http://people.apache.org/maven-snapshot-repository/incubator-activemq/incubator-activemq/4.1-SNAPSHOT/activemq.xsd.html
> 

...that's the page from where I knew these parameters. But the description
is missing :-(

-- 
View this message in context: http://www.nabble.com/Which-persistentAdapter-to-take--tf2458174.html#a6856038
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Which persistentAdapter to take?

Posted by James Strachan <ja...@gmail.com>.
On 10/17/06, ojs <ol...@siegmar.net> wrote:
>
>
> James.Strachan wrote:
> >
> >> Is Kaha a 'replacement' for the mysql-database or for the journal?
> >
> > Its a combination of both.
> >
>
> When using journaledJDBC, which technique is used for the journal?

Its a journal - so a number of files with things written to the end of the file.

> Is it
> this 'Howl-based-thingy'?

Its howl-like yes


>Is there any documentation for the attributes and
> elements for journaledJDBC? I'm especially interested in the attributes
> 'useJournal' and 'useQuickJournal' - how to use them?

http://people.apache.org/maven-snapshot-repository/incubator-activemq/incubator-activemq/4.1-SNAPSHOT/activemq.xsd.html



-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Which persistentAdapter to take?

Posted by ojs <ol...@siegmar.net>.

James.Strachan wrote:
> 
>> Is Kaha a 'replacement' for the mysql-database or for the journal?
> 
> Its a combination of both.
> 

When using journaledJDBC, which technique is used for the journal? Is it
this 'Howl-based-thingy'? Is there any documentation for the attributes and
elements for journaledJDBC? I'm especially interested in the attributes
'useJournal' and 'useQuickJournal' - how to use them?


-- 
View this message in context: http://www.nabble.com/Which-persistentAdapter-to-take--tf2458174.html#a6853500
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Which persistentAdapter to take?

Posted by James Strachan <ja...@gmail.com>.
On 10/17/06, ojs <ol...@siegmar.net> wrote:
>
>
> James.Strachan wrote:
> >
> >>  If using
> >> <journaledJDBC journalLogFiles="5"
> >> dataDirectory="${basedir}/activemq-data"
> >> dataSource="#mysql-ds"/>, when is the data stored on disk and when in the
> >> mysql-database?
> >
> > In the journal file short term then long term in the mysql database.
> >
>
> Is Kaha a 'replacement' for the mysql-database or for the journal?

Its a combination of both.

>  If for
> the mysql-database (I guess), are there any options that can be set for the
> journal (directory, etc.)?

Mostly just the directory.

-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Which persistentAdapter to take?

Posted by ojs <ol...@siegmar.net>.

James.Strachan wrote:
> 
>>  If using
>> <journaledJDBC journalLogFiles="5"
>> dataDirectory="${basedir}/activemq-data"
>> dataSource="#mysql-ds"/>, when is the data stored on disk and when in the
>> mysql-database?
> 
> In the journal file short term then long term in the mysql database.
> 

Is Kaha a 'replacement' for the mysql-database or for the journal? If for
the mysql-database (I guess), are there any options that can be set for the
journal (directory, etc.)?
-- 
View this message in context: http://www.nabble.com/Which-persistentAdapter-to-take--tf2458174.html#a6853269
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Which persistentAdapter to take?

Posted by James Strachan <ja...@gmail.com>.
On 10/17/06, ojs <ol...@siegmar.net> wrote:
>
>
> jlim wrote:
> >
> > This could be what you need:
> >
> > http://activemq.org/site/persistence.html
> >
>
> Thanks for your answer! I knew this site, but it leaves many questions
> unanswered. What are the benefits from using JDBC Persistence without
> Journaling?

A performance degradation

> What are the drawbacks from using Kaha Persistence?

No SQL access

>  If using
> <journaledJDBC journalLogFiles="5" dataDirectory="${basedir}/activemq-data"
> dataSource="#mysql-ds"/>, when is the data stored on disk and when in the
> mysql-database?

In the journal file short term then long term in the mysql database.

-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Which persistentAdapter to take?

Posted by ojs <ol...@siegmar.net>.

jlim wrote:
> 
> This could be what you need:
> 
> http://activemq.org/site/persistence.html
> 

Thanks for your answer! I knew this site, but it leaves many questions
unanswered. What are the benefits from using JDBC Persistence without
Journaling? What are the drawbacks from using Kaha Persistence? If using
<journaledJDBC journalLogFiles="5" dataDirectory="${basedir}/activemq-data"
dataSource="#mysql-ds"/>, when is the data stored on disk and when in the
mysql-database?


Best

Oliver
-- 
View this message in context: http://www.nabble.com/Which-persistentAdapter-to-take--tf2458174.html#a6853055
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Which persistentAdapter to take?

Posted by Jonas Lim <jl...@exist.com>.
Hi,

This could be what you need:

http://activemq.org/site/persistence.html

Regards,
Jonas

ojs wrote:
> Hello,
>
> I couldn't find a comparison of the available persistent adapters. I'm
> unsure which one to use for which use case. I currently need one, that has
> maximum security (write immediately to disk - do not only keep in memory)
> and doesn't require a separate database that could be another single point
> of failure.
>
>
> Best
>
> Oliver
>