Can you please help me to verify if my understanding of container demarcated
transaction is correct and help me explain my problem
Situation:
Client is calling stateless session bean, method lock, transaction attribute
Required. Stateless session bean is calling entity bean, method lock,
transaction attribute Mandatory.
My thinking:
Client doesn't create any transaction, therefore when session bean is
called, container creates transaction T1, because the attribute on the
method is Required. When stateless session bean calls entity bean, there is
already transaction T1 and therefore container will reuse T1 to execute the
call to entity bean.
What is happening, it that Container throws an exception Mandatory attribute
= caller must be in a transaction
My intention was to use Mandatory attribute to detect programmers error,
when entity beans are called without any transaction. This seems like the
container is ignoring the trasanction T1.
Any thoughts? Thanks in advance,
Miro Halas
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".