activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Gomes" <e.se...@gmail.com>
Subject Re: persistence not working
Date Thu, 04 Sep 2008 02:08:55 GMT
Check here:
http://remark.wordpress.com/articles/publish-subscribe-with-activemq-and-nms/

Google is also great for searching for samples.  http://www.google.com


On Wed, Sep 3, 2008 at 5:03 PM, Eugene79 <spamacct11@yahoo.com> wrote:

>
> ooook. Can somebody point me to *any* sample code to do this. Java, ruby,
> anything. ActiveMQ documentation is practically non-existent.
>
>
>
>
> Eugene79 wrote:
> >
> > Hi,
> >
> > I am investigating ActiveMQ as a message broker solution for our
> > application. I set it up on my machine and tried sample ruby programs. So
> > far it works fine when there is both a publisher and subscriber running.
> > However, what I want to do is make sure that messages can be delivered
> > even if the subscriber is temporarily unavailable. So, I set up
> > persistence in activemq.xml:
> >
> >     <persistenceAdapter>
> >       <journaledJDBC journalLogFiles="5" dataDirectory="../data"/>
> >     </persistenceAdapter>
> >
> > And changed line 44 in publisher.rb to
> >
> >               @conn.send '/topic/event', @body, {'persistent'=>'true'}
> >
> > However, the messages get delivered only if listener.rb is also running.
> I
> > want to be able to run publisher.rb, have the messages stored by
> activemq,
> > then run listener.rb and retrieve all the messages that were sent. This
> > doesn't work. How can I set this up?
> >
> > thanks,
> >
> > Eugene
> >
>
> --
> View this message in context:
> http://www.nabble.com/persistence-not-working-tp19281689p19300657.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message