G
gk
This is from Book "Ejb 3.0 In Simple Steps" By Drearntech Press
I have gone through the EJB Transaction Attributes . I know there are
Six transaction attributes we all know REQUIRED ,
REQUIRED_NEW ,MANDATORY , NOT_SUPPORTED, SUPPORTS and NEVER.
My question is on its usage .....see what the Book says ...Here is
the excerpt from the Book
REQUIRED
--------------------------
The REQUIRED transaction operation is required when the method is
involved in some serious data change which needs to be protected by a
transaction.
My Question >> : I'm not sure what does the Book mean by "some
serious data change" ....To me , any data change is a serious
matter
....So , this part is not clear. Does anybody have any idea
or real example when this could be useful ? may be in terms of code or
a case study to understand this concept.
MANDATORY
----------------------------
We should use the MANDATORY attribute when our method needs to verify
that the component was invoked within the context of a client-managed
transaction.
My Question >> : Again, "method needs to verify that the component was
invoked within the context of a client-managed transaction" is NOT
quite understandable . What is to be written for this verification in
code level ? may be in terms of code or a case study to understand
this concept.
I have gone through the EJB Transaction Attributes . I know there are
Six transaction attributes we all know REQUIRED ,
REQUIRED_NEW ,MANDATORY , NOT_SUPPORTED, SUPPORTS and NEVER.
My question is on its usage .....see what the Book says ...Here is
the excerpt from the Book
REQUIRED
--------------------------
The REQUIRED transaction operation is required when the method is
involved in some serious data change which needs to be protected by a
transaction.
My Question >> : I'm not sure what does the Book mean by "some
serious data change" ....To me , any data change is a serious
matter
or real example when this could be useful ? may be in terms of code or
a case study to understand this concept.
MANDATORY
----------------------------
We should use the MANDATORY attribute when our method needs to verify
that the component was invoked within the context of a client-managed
transaction.
My Question >> : Again, "method needs to verify that the component was
invoked within the context of a client-managed transaction" is NOT
quite understandable . What is to be written for this verification in
code level ? may be in terms of code or a case study to understand
this concept.