About Question enthuware.oce-ejbd.v6.2.512 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

About Question enthuware.oce-ejbd.v6.2.512 :

Post by fjwalraven »

I think there are a couple of things not specified well in this question:
Consider the sequence of method calls as shown in the following image when a message is received by the MDB. All the beans have container managed transaction demarcation and have 'Required' as the transaction attribute. What will happen if SLSB2 rolls back the transaction?
First of all, if the container has started the transaction on the receipt of the message, that means that SLSB2 cannot rollback the transaction as it is running under the same transaction context. It can only mark the transaction for rollback (call setRollbackOnly())

Secondly, the "correct answer" states:
"The transaction started by the MDB is rolled back and JMS Message redelivery semantics will apply."
The transaction is not started by the MDB, but by the container (otherwise you would have a BMT MDB)

Regards,
Frits

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.512 :

Post by admin »

You are right. This question has now been fixed to remove the two issues you mentioned.

thank you for your feedback,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests