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: Transactional Send Messages (NMS)
Date Thu, 05 Feb 2009 01:09:21 GMT
Hi Bryan,

Great!  I'm glad everything is working for you now.  I can see how it might
be a bit unclear, but I think it is there for historical reasons.

Best,
Jim

On Wed, Feb 4, 2009 at 4:01 PM, Bryan Murphy <bmurphy1976@gmail.com> wrote:

> On Tue, Feb 3, 2009 at 11:47 AM, Jim Gomes <e.semog@gmail.com> wrote:
> > That sounds like a bug.  My understanding of how sessions work is if you
> > have set the AcknowledgementMode.Transactional, none of the messages that
> > you send to producers created on that session will be visible to any
> > consumers until the Commit() function is called.  At that point, all
> > messages sent up to that point will now become visible -- an all or
> nothing
> > proposition.  If this is not working correctly, can you provide some
> sample
> > code showing the problem?
>
> I refactored our code and the commit/rollback is now working.  Thanks
> for pointing this out!  I had mistakenly assumed that
> AcknowledgementMode.Transactional only worked for consumers (and not
> producers).  It doesn't seem intuitive to me, that you would set
> something called "AcknowledgementMode" when producing messages.  It
> makes sense when consuming them, yes, I got it, and I'm letting you
> know.  But what do I acknowledge when sending a message?  The naming
> conventions are not as clear as they could be, but at least it's
> working now!
>
> Thanks,
> Bryan
>

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