On Wed, 2003-03-12 at 17:18, Gwyn Evans wrote: > Hi Fred, > > Wednesday, March 12, 2003, 4:04:43 PM, you wrote: > > FS> Having the following tags in my Administration Servlet: > > FS> But I do not know how to get the following stuff in jboss-web.xml > FS> for the jndi name > > FS> <ejb-ref> > FS> <ejb-ref-name>AdministrationEJB</ejb-ref-name> > FS> <jndi-name>ejb/Administration</jndi-name> > FS> </ejb-ref> > > The samples (XDoclet\samples\src\java\test\web\SimpleServlet.java) > suggest that: > > * @jboss.ejb-ref-jndi > * jndi-name="ejb/Administration" > * ref-name="AdministrationEJB" > > and the <jbosswebxml/> sub-task of the <webdoclet> task would be what > you need.
That's what I thought, unfortunately it does not seem to work for servlets. My jboss-web.xml stays empty... Note: it works fine for EJBs as I'm using those tags to generate a jboss.xml Changeg the tags in my servlet as below: * @web:ejb-ref * description="Administration EJB" * name="AdministrationEJB" * type="Session" * home="com.xxx.yyy.administration.AdministrationHome" * remote="com.xxx.yyy.administration.Administration" * * @jboss.ejb-ref-jndi * ref-name="AdministrationEJB" * jndi-name="ejb/Administration" <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd"> <jboss-web> <context-root>ctxroot</context-root> <!-- Resource references --> <!-- EJB References --> </jboss-web> -- Frederic Soulier <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
