users@jax-rpc.java.net

(unknown charset) Re: com.sun.xml.rpc.server.http.JAXRPCServlet context

From: (unknown charset) Pedro Salazar <pedro-b-salazar_at_PTINOVACAO.PT>
Date: Thu, 22 May 2003 14:35:16 +0100

Hi,

wouldn't be enough for you that your service implements the interface
javax.xml.rpc.server.ServiceLifeCycle? If so, you can access the
ServletContext by doing this:

public void init(Object object) {

        ServletEndpointContext sec=(ServletEndpointContext)object;
        ServletContext sc=sec.getServletContext();

}

PS

On Thu, 2003-05-15 at 12:19, Claudia Brito L. N. da Silva wrote:
> Hi,
>
> I wanna know how I can pass the context from
> com.sun.xml.rpc.server.http.JAXRPCServlet to the class that implements the
> service.
>
> Thanks,
> Claudia.
--
PS
pedro-b-salazar_at_ptinovacao.pt
PGP:0E129E31D803BC61