I have a requirement of deploying the same application multiple times to
the same server.  Of course each application talking to a different
database.

The problem that I have is that in the Session bean header I have
 * @ejb.bean
 *    type="Stateless"
 *    name="ApplicationController"
 *    description="Session Bean for accessing user functions"
 *    jndi-name="org.kelut.users.userinfo.ApplicationControllerHome"
 *    transaction-type="Container"
 *    view-type="remote"

So when xdoclet runs the jndi name becomes
org.kelut.users.userinfo.ApplicationControllerHome, is there a way to set
a prefix for this through ANT or something so I can have different JNDI
names generated for each deployment.

I think an optimal solution would to be able to change the prefix in my
build.xml somehow.

Maybe something like
<ejbdoclet destdir="${gen.src.dir}" excludedtags="@version,@author" ejbspec="2.0">
    <packageSubstitution packages="entity.ejb" substituteWith="entity"/>
    <jndiSubstitution jndiNames="org.kelut" substituteWith="firstDeployment.org.kelut" 
/>
...


If there is an existing way to do this I would like to know that as well.
If people think this is a worthwhile I can add this as a feature request.

Ben Litchfield



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to