2008/5/28 TLFox <[EMAIL PROTECTED]>:

> "Non-transactional production and consumption can also achieve
> the same level of assurance; however, this requires careful programming."
>
> Please explain how it is possible to achieve the above paragraph in QPID
> without using transactions? With QPID since persistent messages are always
> sent asynchronously it will never be possible to provide the same level of
> assurance no matter how careful you program. Therefore QPID does not comply
> with the above statement from the spec.

I suppose it depends how you define "careful programming". You can
insert a synchronous operation (in protocol terms) after the publish.
For example, if you cast your javax.jms.Session to an AMQSession and
call getQueueDepth(Destination) that would do the trick. There are
other options - for example, declare the destination.

RG

Reply via email to