How Web Service get container context???

T

TDOR

My webservice is a plain old java object, it dosent inherit from
GenericServlet class so i cant call
getServletConfig().getServletContext() etc.

It seems the filepath ".\" points to the root of the OC4J container,
so one solution is to assume that the right path to web-inf is
..\applications\<mywebapp>\<mywebapp>\web-inf.

This is prob not container-agnostic but at least i have a solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top