Hi,
There is a sample DD :
<assembly-descriptor>
...
<container-transaction>
<method>
<ejb-name>EmployeeRecord</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
Sure we know that all methods belong to EmployeeRecord Bean has Required as trans-attribute.
But lets declare something like this.
<container-transaction>
<method>
<ejb-name>EmployeeRecord</ejb-name>
<method-name>xxx</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
So only method xxx of EmployeeRecord has trans-attribute Required. Then how about other methods ? which trans-attribute that they have ?
The same question for the Security DD Issue, if I don't have security-role-ref for the other methods, then what role do those methods can be accessed ? (or can be accessed by any role ?)
Thanks for any help.
There is a sample DD :
<assembly-descriptor>
...
<container-transaction>
<method>
<ejb-name>EmployeeRecord</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
Sure we know that all methods belong to EmployeeRecord Bean has Required as trans-attribute.
But lets declare something like this.
<container-transaction>
<method>
<ejb-name>EmployeeRecord</ejb-name>
<method-name>xxx</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
So only method xxx of EmployeeRecord has trans-attribute Required. Then how about other methods ? which trans-attribute that they have ?
The same question for the Security DD Issue, if I don't have security-role-ref for the other methods, then what role do those methods can be accessed ? (or can be accessed by any role ?)
Thanks for any help.