Any servlet container allows you to pass arguments to the init function of
the servlet. For weblogic, it's:
weblogic.httpd.initArgs.ServletName=key1=val1,key2=val2...
(in the weblogic.properties file)
Gene
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Edward Barrett
Sent: Wednesday, July 19, 2000 5:41 AM
To: [EMAIL PROTECTED]
Subject: Passing environment to servlets
We have servlets that need to connect to a JNDI implementation to locate
other objects. In addition, the servlets redirect to certain URLs depending
on results.
We would like to be able to completely paramatise this - so that we don't
need to hard code any values into the servlet.
I presume I can hold the later requirement in JNDI, but what about the
former - is there a better way than a parameter to the JVM ?
Also, how would I bind values to the JNDI (we are using WebLogic but I hope
it is a standard mechanism) and what is the lookup string required ?
TIA
Ed
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".