WebSphere Application Server - JNDI calls from within JAR that resides outside of J2EE project?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > January 2005 > JNDI calls from within JAR that resides outside of J2EE project?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author JNDI calls from within JAR that resides outside of J2EE project?
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.


Johan

2005-01-21, 5:53 pm

> 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?


I bet this is exactly how it will work.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com