I try to access a local file from a RESTFul service. Is there any way to get the actual route of the ongoing service? (As we can in the sublet)
Server: Glassfish 3.0.1 IDE: Planet Helius
Thx
Which web application are you using the REST web service?
You can get the jersey in the following ways as follows:
@Context ServletContext References / / You specified your method argument string in realpath = context.getRealPath ("/") can do;
Think it will help you.
Comments
Post a Comment