All,

I have now updated the Embedded Tomcat service (both in "contrib" CVS
and the JAR used by JBoss).

The major new feature is that it is now possible to look up EJB's from
servlets/JSP's through the JNDI namespace "java:comp/env" (i.e. as
specified in the servlet and J2EE specs!). 

To use this you must add a jboss-web.xml file which should be located
next to your web.xml file in your deployment. There is a DTD for this
file available in the "contrib" CVS module, but here's a simple example
to show how it works:
<jboss-web>
   <ejb-ref>
      <ejb-ref-name>ejb/Foo</ejb-ref-name>
      <jndi-name>Foo</jndi-name>
   </ejb-ref>
</jboss-web>
--
The above will allow servlets/JSP's in the web application to access the
EJB by looking up the name "java:comp/env/ejb/Foo" which will resolve to
the EJB bound to the global JNDI name "Foo". 

There is no need to add anything to web.xml, i.e. any ejb-ref's you add
there are ignored as currently all info is taken from jboss-web.xml.
This will be changed in a future version.

This has only been reasonably tested, so let me know if there are
certain configurations which this doesn't work.

regards,
  Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to