1)ejbFindByPrimaryKey doesnt need to have EJBQL......!!! I mean ...all finders except ejbFindByPrimaryKey need ejbql.
Please tell me the correct option....it will make me feel better
There is no need to specify the ejb-ql for this method. The container has enough information in the deployment descriptor, the primary key class/field, to generate the query.
2) The App Assembler can differentiate between remote and local interfaces and home and local-home while specifing the security for methods...
<method-permission>
<role-name>Admin</role-name>
<method>
<ejb-name>UserEJB</ejb-name>
<method-name>setData</method-name>
<method-intf>local</method-intf>
</method>
</method-permission>
Can he do the same while specifing transaction attributes to methods in <method> element of <container-transaction> element? Since its same method element out there it may be ok...but XML parser may disallow it here....
Yes, of course. As an application assembler, I would like to have different transaction attributes for the methods of remote than that of local interface. Also, as long as the DTD of <method> element allows <method-intf> element, why would you think that the parse may complain? It won't.
SCJP, SCWCD, SCBCD, OCA J8