Page 1 of 1

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

Posted: Sun Aug 21, 2011 2:43 pm
by ETS User
The answer is ambiguous. I understand from the explanation that only CMT transaction attributes can be changed in the deployment descriptor. In the question we have BMT. So, to me, in this case transaction attributes cannot be changed in the deployment descriptor. The question states "There is no mechanism", so why FALSE is the correct choice?

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

Posted: Sun Aug 21, 2011 2:46 pm
by Guest
Sorry, an admin can delete my bad post.
Thanks

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

Posted: Sat Mar 03, 2012 2:50 pm
by Alan
@TransactionAttribute cannot be used with bean transaction management. I received exception from Glassfish:
Method level transaction attributes may not be specified on a bean with transaction type

The question is wrong in my opinion.

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

Posted: Sat Mar 03, 2012 2:51 pm
by Alan
Method level transaction attributes may not be specified on a bean with transaction type [Bean]

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

Posted: Sat Mar 03, 2012 2:52 pm
by Alan
Sorry, my mistake. The question is right :).

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

Posted: Mon Jul 08, 2013 4:40 pm
by gurpreet_asrgndu
the question seems to be illogical. there cannot be transaction attribute on the bean with BMT. if you try to , we will get exception.there is no provision for transaction attribute in case of BMT, so assembler changing it is just out of scope. dont you think the question should be reframed.

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

Posted: Fri Aug 02, 2013 9:58 am
by mopuffus
The answer for the question
There is no mechanism for an Application Assembler to change the transaction attribute of a method of a session bean that uses bean-managed transaction demarcation.
is true.
Because the Transaction Management (CTM or BTM) is a structural information and it is not meant to be altered by the application assembler. The Transaction attribute can be altered by the application assembler. The trick here is that the BTM does now have a transaction attributes :mrgreen:

So we can not change the Transaction Management from CTM to BTM in order to be able to add/alter the transaction mechanisms --> the answer is true, There is no mechanism ....