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

Moderator: admin

Post Reply
deadlock_gr
Posts: 54
Joined: Tue Apr 19, 2011 10:32 am
Contact:

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

Post by deadlock_gr »

What is meant by the question as "default acknowledgement mode"?

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

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

Post by admin »

In this question, since the message needs to be sent in a transaction, the first parameter is has to be true and so the second parameter will be ignored. So only option 4 is correct.

This explanation has been added to the question.

thanks for your feedback!
If you like our products and services, please help us by posting your review here.

goetz

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

Post by goetz »

According to the spec (13.3.5):
Because the container manages the transactional enlistment of JMS sessions on behalf of a bean, the parameters of the createSession(boolean transacted, int acknowledgeMode), createQueueSession(boolean transacted, int acknowledgeMode) and createTopicSession(boolean transacted, int acknowledgeMode) methods are ignored. It is recommended that the Bean Provider specify that a session is transacted, but provide 0 for the value of the acknowledgment mode.
I tried both cases in GlassFish 3.1 (setting both true and false to the transacted parameter), and it seems to confirm that the transacted flag is ignored. Whether or not the message is sent successfully depends on the outcome of the bean transaction and has nothing to do with the transacted flag. Any clarifications you can provide is much appreciated!

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

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

Post by admin »

You are right but it applies only to beans. The question is not talking just about the beans.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 83 guests