Good day,
I'm really new in Servlets and I have a simple question. I would like to
make a servlet "gateway" to my existing CORBA distributed environment. I'm
trying to implement a servlet that makes some database queries using
an exported CORBA object. My problem, is that I don't want the
servlet, on each "service-request", to re-obtain several CORBA object
references, so I want to make these resources (CORBA object references)
persistent.
I read the "Servlet Tutorial" (bundled with Sun's JSDK
2.0), where the "init" & "destroy" methods
were described. If I get it correct, the "init" method is being called just
once (by the servlet enabled HTTPd) before any client can be served. Also
the "destroy" method is called just once, by the servlet enabled HTTPd, but only
after a succesfull call to the "init" method.
Once again, if I get it correct, the right place to place
my CORBA initialization calls, should be the init method. So, in the "init"
method, I do so, and store the references of the CORBA objects on some "instance
variables". Unfortunately, after the servlet is initialized, these
instance variables are set to "null" ( i mean, when a client calls the
initialized servlet, these variables are nulled). So, how can I store
these references, somewhere, and be able to restore them, from within the
servlet ?
Thank's in advance
Regards
Filippos Slavik
##########################################################################
Filippos Slavik
Part of the SIAMS's implementation development team. For more
information, please check http://www.siams.net
e-mail : [EMAIL PROTECTED]
##########################################################################
Filippos Slavik
Part of the SIAMS's implementation development team. For more
information, please check http://www.siams.net
e-mail : [EMAIL PROTECTED]
##########################################################################
