-
Accessing servlet context path in a web service method (1 messages)
- Posted by: Prash Prash
- Posted on: July 31 2008 10:37 EDT
Hi, I want to get the servlet context path in a web service method. This will be useful for me to access a config file on the server. Is it possible to get the servlet context in a webservice method OR is there any other way of getting the context path? I am using oracle.j2ee.ws.StatelessJavaRpcWebService. Will it make a difference if I use oracle.j2ee.ws.JavaRpcWebService. Any help will be appreciated. Thanks and Regards PrashantThreaded Messages (1)
- Re: Accessing servlet context path in a web service method by Vinod Singh on September 28 2008 17:44 EDT
-
Re: Accessing servlet context path in a web service method[ Go to top ]
- Posted by: Vinod Singh
- Posted on: September 28 2008 17:44 EDT
- in response to Prash Prash
Not sure about Oracle implementation, but you can get it from javax.xml.ws.handler.MessageContext in JAX-WS. Thanks, Vinod http://blog.vinodsingh.com/