Hi all,I believe is good practice not to call Entity beans directely from Web Server but always to use a Remote Session bean facade.
Many Thanks to all in advance for their help on this!
I have a small problem with xdoclet - apologies for the long posting I
didn't want to leave out anything.
When I create util classes for Session beans getLocalHome uses the
BeanLocalHome.JNDI_NAME value to do the
InitialContext.lookup(jndi_string) in the generated util class, This
means that I can call getLocalHome() from a web applciation, e.g. a
Junit Test run using the Junitee xodclet target.
When util classes for Entity beans are generated, getLocalHome() uses
the BeanLocalHome.COMP_NAME value to do the
InitialContext.lookup(jndi_string), this is as far as I can see only
available from inside the container. This means that the
util.getLocalHome() is not available from a web applcation even if this
is in the same VM as the app server, like JBoss / Jetty or JBoss /
Tomcat ( I've tested both! ). This means the util objects created by
xdoclet won't work if used from web - clients.
Simone
-------------------------------------------------------
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
