For having the util object use the JNDI_NAME for lookups put ejb.util
generate="physical" in your bean class. I believe you can specify the type
of name in the task in the build script as wel.. Furthermore I'd recommend
adding the attribute cacheHomes="true" in your build.xml.

Anyway, regarding COMP_NAME. THis should work, as required by the spec, for
JBoss, though it's a no-no. Currently you can't use COMP_NAME with JBoss.
JNDI_NAME always works. I believe JBoss is smart enough though to figure out
if you're a local client in the same jar and doesn't really use JNDI to do
the lookup then.

Bernie

-----Urspr�ngliche Nachricht-----
Von: Dylan van Iersel [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. Dezember 2002 23:04
An: xdoclet 
Betreff: [Xdoclet-user] JNDI_NAME & COMP_NAME


Hi all,

I am having XDoclet (1.2.0B) generate util objects and want to use them to
look up and cache home interfaces. The generated util objects lookup the
homes interfaces using the COMP_NAME static variable but I keep getting
the error message from JBoss that "javax.naming.NameNotFoundException: ejb
not bound"

Can somebody tell me what I am doing wrong?
"Manual" JNDI lookup works fine using the JNDI_NAME though.

a User bean:

 * @ejb:bean
 *     name="User"
 *     jndi-name="ejb/remote/platform/User"
 *     local-jndi-name="ejb/local/platform/User"
 *     cmp-version="2.x"
 *     schema="user"
 *     view="both"

and in the home interface

public static final String COMP_NAME="java:comp/env/ejb/UserLocal";
public static final String JNDI_NAME="ejb/local/platform/User";

Groeten,
Dylan






-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now!  Before the Holidays pass you by.
T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to