Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-956

Javadoc has syntax of ejbLink property reversed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.0.1
    • System Controls
    • 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>

      Attachments

        Activity

          People

            Unassigned Unassigned
            dread David Read
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: