Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0
-
None
-
N/A
Description
javadoc for EJBControl says (in part) ... The naming syntax is BeanName#EJBJAR (e.g. CreditCard#CustomerData.jar).
I think that's actually backwards. The syntax is jarFile.jar#ejb-name with the path to the jar file being relative to the referencing compponent. It might also be helpful to document that the runtime uses the fully qualified name of the control inteface with suffix "jcx" to build the comp:env entry lookup. So a control extension controls.HelloEjbControl would resolve using the following entry in web.xml ... assuming the EJB was in a jar named ejbModule.jar in the root of the application.
<ejb-ref>
<ejb-ref-name>controls.HelloEjbControl.jcx</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>ejbs.HelloBeanHome</home>
<remote>ejbs.HelloBeanRemote</remote>
<ejb-link>ejbModule.jar#HelloBean</ejb-link>
</ejb-ref>