DDU DUQUENNOY Didier wrote:
> Just a question : is it possible to avoid generating the
> constant "JNDI_NAME" in the Home class?

You could modify the template to remove it. I don't know of an
configuration option.

> Actually, I don't understand why it is there since the JNDI
> Name of an EJB may change at deployment time...

They are used by the generated <Bean>Util classes, if you generate them.
Yes, that can cause issues if you need different JNDI names. As we
deploy the same application under different JNDI trees (each deployment
accesses a different database). To do this, I modified the Util class
template to accept a JNDI root to substitute into the JNDI name
constants. No, it's not very elegant, but it is functional until I can
take the time to replace the Util classes.

David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to