Re: JMS Transaction and Redelivery

Guy Katz <[email protected]> Mon, 26 Apr 2004 11:36:09 +0200
Newsgroups gmane.comp.java.sun.ejb.general
Message-ID <[email protected]>
hi;
in JMS there is no transaction propagation from sender to receiver so there
will be 2 transactions involved when the scenario involves sending and
receiving a message..
if you are sending a message under a transaction it (say from a session
bean), the message will be delivered to the queue/topic only under that
transaction.
if you are reading a message (say asynchronously from from an MDB) the
transaction will include the message read and the code under your
onMessage().

 -----Original Message-----
From: Venkatesan Krishnamoorthy [mailto:[email protected]]
Sent: Monday, April 26, 2004 10:06 AM
To: [email protected]
Subject: JMS Transaction and Redelivery



Guys:



My question is regarding transaction propagation in JMS based messaging. In
the article on the web site
http://www.javaworld.com/javaworld/jw-03-2002/jw-0315-jms-p1.html
<http://www.javaworld.com/javaworld/jw-03-2002/jw-0315-jms-p1.html> , the
producer and the receiver use different transaction and acknowledge modes
for the corresponding queue session.  The message producer uses a
non-transacted queue session while the message consumer uses a transacted
queue session. Does it mean that the transaction specified on the message
producer side is for the delivery of message from the producer to the JMS
provider and not for the delivery of the message from the producer to the
consumer? Also, what does it mean to have different acknowledge modes
specified for the corresponding queue session at the message producer and
the message consumer?



Can someone clarify this issue for me?



Thanks and Regards,

Venkat

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".




===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".