Hi All,
A question was raised During discusions of our Application design and I have to find out this. If we use Container managed transaction with Required attribute in Message Driven Bean, What would be the starting point of transaction. To be specific whether transaction starts when onMessage() method gets called or when message arrives at JMS Q. Any heplp would be appriciated.
Thanks
Madhav
-
Transactions with Message Driven Bean (2 messages)
- Posted by: madhava manduva
- Posted on: June 27 2005 16:33 EDT
Threaded Messages (2)
- Transactions with Message Driven Bean by sawan parihar on June 27 2005 21:13 EDT
- Transactions with Message Driven Bean by Roger Chung-Wee on July 05 2005 14:18 EDT
-
Transactions with Message Driven Bean[ Go to top ]
- Posted by: sawan parihar
- Posted on: June 27 2005 21:13 EDT
- in response to madhava manduva
Hello,
There is always a new transaction started or no transaction at all whenever a MDB is called and it depends on the transaction attribute (required or NotSupported for CMT). But you can bring your clients method and the sending of the message in one transaction.
Hope that helps.
Sawan -
Transactions with Message Driven Bean[ Go to top ]
- Posted by: Roger Chung-Wee
- Posted on: July 05 2005 14:18 EDT
- in response to madhava manduva
Here is a useful post.
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=70&t=003577