Fenderbosch, Eric wrote:
Set the jndi-name and/or local-jndi-name in your @ejb.bean tag.
The COMP_NAME will be "java:comp/env/<jndi-name>" with all "." replaced by "/".

ex:

@ejb.bean jndi-name="ejb.ObjectLib"

Will generate this in the home:
   public static final String COMP_NAME="java:comp/env/ejb/ObjectLib";
   public static final String JNDI_NAME="ejb.ObjectLib";


Eric,


It does not appear to be the case with COMP_NAME.
In the example you have provided, it works as shown.
But if you try:

  @ejb.bean
    name = "SOMETHING_ELSE"
    jndi-name = "ejb.APP_NAME.ObjectLib"

it will NOT result in

public static final String COMP_NAME="java:comp/env/ejb/APP_NAME/ObjectLib";

but rather in

public static final String COMP_NAME="java:comp/env/ejb/SOMETHING_ELSE";

I'm not sure this is a rule, but it seems that COMP_NAME will be
"java:comp/env/ejb/<name>" where <name> is name attribute of @ejb.bean tag.
Can someone confirm?


Regards, Milen Dyankov








------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to