aspose file tools
The moose likes Web Services and the fly likes can't use contextPath inside My webservice how to use it. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "can Watch "can New topic
Author

can't use contextPath inside My webservice how to use it.

kannagiri rosei
Ranch Hand

Joined: Nov 26, 2005
Posts: 31
Hi


i just want use context path in axis web app. in my service method. i am reading constant value from properties file.

String path = System.getProperty(user.dir);
i used above java api.but not reading properly.


my property file is path is

axis-web app

/web-inf
classes
/myservice-read property file path.
/config


am deploying WAS5.1

tool/WSADIE5.1

//user.dir
takes default WASDIE path in WAS.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Please check out our famous Ulf home grown web services FAQ


Spritle Software Blogs
kannagiri rosei
Ranch Hand

Joined: Nov 26, 2005
Posts: 31
FYI

if i use getContextPath() -- it will return remote Service provider path only is it?
please let me clear balaji sir?

HttpServletRequest req = (HttpServletRequest) context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Yes.

Kind request: Please avoid using sir, just balaji is fine.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: can't use contextPath inside My webservice how to use it.
 
Similar Threads
Referencing to image files
Better way to determine current directory...
Writing Files to The Current Directory
Readind property file in web app
Java property files best practices