Chris,
ejb-body.j is new to XDoclet, but you can find the same code in
ejb-jar_xml.j in EJBDoclet 1.2 - its just a way of breaking the templates
into smaller chunks.
Ok - I'm not 100% about this as its been a while since I've used 1.2,
but... I think if you add ref-name="global/Foo" to your @ejb:ejb-ref tag
then you will be able to reference it by
"java:comp/env/ejb/global/Foo". As I said, not 100% sure about
that... but give it a burl... probably also worth sticking your head in
the template files... look in src/ejbdoclet/ejb-jar_xml.j and search for
ejb/ and you'll see the relevant part of the ejb-jar.xml.
hth,
cheesr
dim
On Mon, 20 Aug 2001 [EMAIL PROTECTED] wrote:
> Hi Dmitri and Ara,
>
> Thanks for your replies! Actually, we have several modules of ejb. Thus,
> we would like to have sth like this for the ejb-name prefix - i.e.
> ejb/[module name] (e.g. ejb/global, ejb/inventory, etc.). Sorry about my
> previous misleading explanation 8(
>
> P.S.
> I'm still using ejbDoclet 1.2, is ejb-body.j included in xdoclet only?
>
> Thanks again 8)
>
> Chris
>
> -----Original Message-----
> From: Ara Abrahamian [mailto:[EMAIL PROTECTED]]
> Sent: August 17, 2001 10:05 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [Xdoclet-user] ref-name for ejb-external-ref
>
>
> > I know how to setup the [ref-name: String] for tag @ejb:ejb-ref.
> However,
> > anyway that I can setup the same thing for @ejb:ejb-external-ref
> (instead
> > of
> > using the default ejb-name prefixed by a ejb/)?
>
> You mean you want to get rid of the ejb/ which is automatically
> prefixed?
>
> If using XDoclet:
> Modify xdoclet/core/resources/xdoclet/ejb/ejb-body.j and delete ejb/
> from line 198. Then build and create xdoclet.jar. If you do not want to
> build xdoclet, you can make a copy of it, modify it, and then specify it
> as the template (<deploymentdescriptor templatedir="mytemplate" .../>).
>
> Ara.
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/xdoclet-user