This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing servlet context path in a web service method

 
Prashant Venkata
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Prashant
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Getting at servlet information would be a platform-specific thing to do; e.g. the way to do it for Axis is described here. The Oracle documentation and/or forums might have more information on this.
 
Prashant Venkata
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

Thanks for the reply! Sorry for multiple posts.

Is there any way to access the Session or Request and Response objects inside the web service method.

Thanks and Regards
Prashant
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic