I have a javabeans written for an application.  This javabeans requires a
java environment variable normally set by setting -D<param>=<value> when
starting the Java virtual machine of the application. I want to be able to
use this same bean from within a Servlet class.  Can I still do this without
changing any of the code?  Specifically, how do I startup my Servlet so that
I can pass the environment variables correctly?

I'm using JavaWebServer on Solaris 2.6.  I've tried setting the -D... when
starting the httpd script but that doesn't work.  I also tried setting the
parameters using the Admin GUI for the servlet properties tab.  That doesn't
work either (it can only be retrieved using getInitParameter()).

Any ideas?


Byung-Hee Choung
Principal Applications Developer          Phone: 650.506.2883
Unified Messaging             Mobile/Pager: 510.703.9532
Internet Applications Division          Fax: 650.654.6205
Oracle Corporation            [EMAIL PROTECTED]
500 Oracle Parkway, M/S 6op337  Redwood Shores, CA 94065

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to