You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by kar <ja...@gmail.com> on 2011/04/25 19:33:32 UTC
ActiveMQ 5.4: Message transactions/history to be permanently stored
Hello,
I am using ActiveMQ 5.4 and the database is set to kahadb. My application is
using the Spring framework.
I needed a way to get the below information :
1) All messages that were sent to a particular queue(since the creation of
the queue)
2) Messages that were consumed from the queue(since the creation of the
queue)
3) Messages that were removed from the queue(since the creation of the
queue)
Basically i need the message transactions/history to be permanently stored.
So that i can get the history(via code) of any message or queue and show in
my application UI.
Thanks
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-4-Message-transactions-history-to-be-permanently-stored-tp3473678p3473678.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ 5.4: Message transactions/history to be permanently
stored
Posted by kar <ja...@gmail.com>.
Hi Gary,
Thanks alot for replying. Really appreciate it.
I have some further questions below:
1) "you can listen to advisory messages and keep running counts or do the
same via a broker plugin."
-> what are advisory messages and how to listen to them.
-> what broker plugins can i use for my purpose.
2) kahaDB journal api
-> Can i access the acknowledged messages as well as unacknowledged
messages.
-> Can the archived files be accesed from the API.
-> Are there any examples online.
3) "The index only reflects the current unconsumed or pending message."
-> What index is this.
4) I read online that the camel wiretap method can be used on the broker to
store information in another database as well. But could not find any
example.
Please help. Sorry about asking so many questions am new to ActiveMQ.
Thanks alot
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-4-Message-transactions-history-to-be-permanently-stored-tp3473678p3476138.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ 5.4: Message transactions/history to be permanently stored
Posted by Gary Tully <ga...@gmail.com>.
you can listen to advisory messages and keep running counts or do the
same via a broker plugin.
But if you want to ensure that the journal reflects the state, enable
archiving with archiveDataLogs=true on the kahadb persistence adapter.
You will then need to look at the kahaDB journal api to parse the
journal to find acked and unacked messages on the set of active and
archived journal data files.
Looking at the kahadb persistence adapter recovery source code will
give you some simple pointers into that.
The index only reflects the current unconsumed or pending message.
On 25 April 2011 18:33, kar <ja...@gmail.com> wrote:
>
> Hello,
>
> I am using ActiveMQ 5.4 and the database is set to kahadb. My application is
> using the Spring framework.
>
> I needed a way to get the below information :
> 1) All messages that were sent to a particular queue(since the creation of
> the queue)
> 2) Messages that were consumed from the queue(since the creation of the
> queue)
> 3) Messages that were removed from the queue(since the creation of the
> queue)
>
> Basically i need the message transactions/history to be permanently stored.
> So that i can get the history(via code) of any message or queue and show in
> my application UI.
>
> Thanks
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-4-Message-transactions-history-to-be-permanently-stored-tp3473678p3473678.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
--
http://blog.garytully.com
http://fusesource.com