Hi Mahesh,

I am using OrbixWeb with Servlets. The way that I do it is by creating
a server side class (which is not a servlet itself) I call CorbaProxy.
This proxy class is accessed by a static instance from all my servlets
which need a corba connection. I load the properties from the proxy
class using:

        Properties properties = new
Properties( System.getProperties() );
        // specify where the properties file is. In this case it's on
the server somewhere.
        File file = new File( propertiesLocation );
          try
          {
                properties.load( new BufferedInputStream( new
FileInputStream( file ) ) );
          }
          catch(Exception ex)
          {
            System.out.println(" Exception: " + ex.toString() );
          }
        System.setProperties( properties );



Then you can use:

          ORB orb = ORB.init( ( String[] )null, System.getProperties() );


Hope that helps!

~David

==========================================
 David Valentine
 Software Design Engineer, NEC Australia
 [EMAIL PROTECTED]
 (61) 3 9271 4541
==========================================


> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's
> Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> mahesh
> Sent: Monday, July 26, 1999 2:58 PM
> To: [EMAIL PROTECTED]
> Subject: servlet-corba
>
>
> 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)
> 044- 4813555 - room no-33(res);
>
> ______________________________________________________________
> _____________
> 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
>

___________________________________________________________________________
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