Title: Deviations from Servlet 2.2 spec

I have a question about the ejb-ref section of the web-xml.html documentation and the related Orion behaviour:

In the web-xml.html there is the following description of the ejb-ref-name elemnt:

  <ejb-ref-name>nameOfEJB</ejb-ref-name>
    Contains the name of an EJB reference. This name must match an context-param name.

And then one has to put the actual JNDI location in the context-param value.

But then there is an additional thing which confuses me and that is in the orion-web.xml, one specifies an ejb-ref-mapping which maps the ejb-ref-name to a JNDI location. Why is there this duplication? The ejb-ref-mapping in orion-web.xml seems to be the correct way to do it according to Sun's example below.

This is the description of this element in the Servlet 2.2 spec:

  The ejb-ref-name element contains the name of an EJB reference. This is the JNDI name that the servlet code uses to get a reference to the enterprise bean.

And in the Sun specific sun-j2ee-ri.xml there is an ejb-ref tag which maps the ejb-ref-name in the web.xml to the actual JNDI location.

Why has Orion deviated from the specification? Or am I misreading or misinterpreting the documentation?

Thanks,
Gordon

--- Codito, ergo sum -- "I code, therefore I am" ---
Gordon Tyler <[EMAIL PROTECTED]>
AST -- Product Development
Tel: +27-(0)21-6803412
PGP key available on request



--- Codito, ergo sum -- "I code, therefore I am" ---
Gordon Tyler <[EMAIL PROTECTED]>
AST -- Product Development
Tel: +27-(0)21-6803412
PGP key available on request


Reply via email to