ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Mitchell <kevin.mitch...@xmls.com>
Subject RE: Reloading services.
Date Mon, 06 Nov 2000 15:40:55 GMT
Just a thought, but couldn't one just start a background thread at startup
that reloads the service definitions (if they are changed) on some
configurable interval?

> -----Original Message-----
> From: Doug Davis/Raleigh/IBM [mailto:dug@us.ibm.com]
> Sent: Monday, November 06, 2000 6:42 AM
> To: soap-dev@xml.apache.org
> Subject: RE: Reloading services.
> 
> 
> Actually, once our code changes go in (for the pluggable 
> provider stuff)
> you could
> pass in the servlet context to the service if you'd like.  
> The 'locate'
> method is
> passed the servlet and the session so you could save them and 
> pass them in
> to
> the 'invoke' method if you'd like.  We're hoping to get commit access
> soon(maybe
> today?) and then the code will go in.
> -Dug
> 
> 
> Chris Francis <chris.francis@static2358.com> on 11/06/2000 06:20:07 AM
> 
> Please respond to soap-dev@xml.apache.org
> 
> To:   "'soap-dev@xml.apache.org'" <soap-dev@xml.apache.org>
> cc:
> Subject:  RE: Reloading services.
> 
> 
> 
> 
> Yes, but there aren't many choices available. We can't have a service
> doing it because we can't get hold of the servlet context. We 
> could use the
> post method
> quite easily, and maybe assume a non-soap post or error 
> results in services
> being
> reloaded. Or something. Lot's of things possible. I just 
> chose the easiest
> one.
> 
> Chris.
> 
> 
> -----Original Message-----
> From: Steve Graham/Raleigh/IBM [mailto:sggraham@us.ibm.com]
> Sent: 03 November 2000 14:37
> To: soap-dev@xml.apache.org
> Subject: Re: Reloading services.
> 
> 
> I agree this is possible, however it strikes me that a get on 
> the RPCRouter
> resulting in reloading of services is an unexpected semantic.
> 
> ++++++++
> Steve Graham
> sggraham@us.ibm.com
> (919)254-0615 (T/L 444)
> <<Pithecanthropus Erectus>>
> Emerging Internet Technologies
> ++++++++
> 
> 
> Chris Francis <chris.francis@static2358.com> on 11/03/2000 09:14:46 AM
> 
> Please respond to soap-dev@xml.apache.org
> 
> To:   "'soap-dev@xml.apache.org'" <soap-dev@xml.apache.org>
> cc:
> Subject:  Reloading services.
> 
> 
> 
> 
> Can we use the doGet () method of RPCRouterServlet to enable 
> live reloading
> of
> services. Currently we have to shutdown and restart the 
> servlet engine or
> force
> the servlet to reload somehow.
> Is there a problem with this?
> 
> 
> public void doGet (HttpServletRequest req, 
> HttpServletResponse res) throws
> ServletException, IOException {
>     ServletConfig config = getServletConfig ();
>     ServletContext context = config.getServletContext ();
>     synchronized (context) {
>       RPCRouter rpcRouter = new RPCRouter ();
>       ServiceManager serviceManager = new ServiceManager ();
>       rpcRouter.setServiceManager(serviceManager);
>       context.setAttribute (RPC_ROUTER_ID, rpcRouter);
>       context.setAttribute (SERVICE_MANAGER_ID, serviceManager);
>     }
>   }
> 
> Chris Francis,
> Software Engineer,
> Static 2358, Ltd.
> +44 (0) 20 7250 1244
> 
> 

Mime
View raw message