About Question enthuware.oce-ejbd.v6.2.465 :
Moderator: admin
About Question enthuware.oce-ejbd.v6.2.465 :
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 :
Sorry, an admin can delete my bad post.
Thanks
Thanks
Re: About Question enthuware.oce-ejbd.v6.2.465 :
@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.
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 :
Method level transaction attributes may not be specified on a bean with transaction type [Bean]
Re: About Question enthuware.oce-ejbd.v6.2.465 :
Sorry, my mistake. The question is right .
-
- Posts: 55
- Joined: Thu Jan 03, 2013 7:51 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.465 :
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.
-
- Posts: 22
- Joined: Thu Jul 25, 2013 3:39 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.465 :
The answer for the question
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
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 ....
is true.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.
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
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 ....
Who is online
Users browsing this forum: No registered users and 160 guests