| KBDRand 2005-01-20, 7:54 am |
| I've got a JAR that I'm working on that will include a lot of custom code
that needs to be called from within a J2EE project running on the server
(the J2EE project is WebSphere Commerce 5.6 just fyi). We have created some
custom JSP files that reside in the J2EE project that need to reference code
in the JAR. This JAR will reside on the Websphere 5.02 Base server but will
not be inside the J2EE project.
In this case, if I'm going to do JNDI database calls based on a JNDI
datasource setup on the Websphere server do I need to setup those calls as
if it were a client jar outside of the container or since the JSP is calling
the JAR and it is inside the web container can the calls be made like they
were part of the container?
In the past I've always done my JNDI lookups from within the web or EJB
containers, so I'm unclear on how to proceed.
If anyone could point me to an articles on how to properly set it up (as far
as best practices on how the JAR should be deployed and the type of JNDI
lookups performed) I would appreciate it.
|