I had the same problem your facing. Basically, I cheat and use the -D
switch when starting the servlet motor to pass in the ORB parameters.
For example:
java -DAGENT_PORT=5000 -DAGENT_ADDR=127.xxx.xxx.xxx
com.sun.web.shell.Startup
Then, in the servlet, the first time I init the ORB I use:
Properties prop = new Properties();
prop.put("ORBagentPort",System.getProperty("AGENT_PORT"));
prop.put("ORBagentAddr",System.getProperty("AGENT_ADDR"));
org.omg.CORBA.ORB.init(new String[0],prop);
(This is all with VisiBroker for Java)
Good luck!
______________________________________________________
Tim Sporcic http://www.gemplus.com
Gemplus Software [EMAIL PROTECTED]
____________________________ Séparateur Réponse ________________________________
Objet : servlet-corba
Auteur : "A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology." <[EMAIL PROTECTED]>
Date : 26/07/99 06:57
Hi Greetings!!!!!!
I am woking in a project of developing product in JAVA/CORBA . We have
already
done the application part. Now we have to make the browser version of the
project. We r using HTML-Servlet-CORBA for this purpose. Here we r facing a
problem of ORB initialisation in servlet to contact the server. As
ORB.init(String[],Properties) needs command line arguments, we dont know how
to get that in servlet. Which servlet class accomplish this. If u could
provide some guidance on this or any site address from where I can get enough
info, I will be very thankful to u.
looking forward
thanks and regards
Mahesh V. C
Software Engineer,
Transformation Systems,
140,Marshall's Road,
Egmore,
Chennai - 600 008;
Phone: 044-8526077 - 108(ex)
----------------------------------------------------------------
INFORMATION AUTOMATIC VIRUS CHECK (GEMPLUS) No virus known.
----------------------------------------------------------------
___________________________________________________________________________
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