In your EJB declare your jndi like this

@ejb.bean type="Stateless"
  jndi-name="${jndi-prefix}/UserController"

Then in your build.xml have a property like

<property name="jndi-prefix" value="myfirstApp" />

xdoclet will do a replacement on that value.
You would need to set the jndi-prefix value depending on what you wanted
the jndi name to be.

Ben



On Thu, 26 Aug 2004, Sean Radford wrote:

> Hi,
>
> How can I (of just can I) tell xdoclet that I want one of my ejb's is to
> be deployed to 2 (or more) different JNDI locations (each with their own
> environment entries)?
>
> Or do I have to resort to merge-files, and if so can I tell xdoclet to
> create my ejb's classes but not worry about its deployment descriptor
> (and leave that just to the merge file)?
>
> Thanks in advance,
>
> Sean
>
> --
> Dr. Sean Radford, MBBS, MSc
> [EMAIL PROTECTED]
> http://bladesys.demon.co.uk/
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to