I have 2 ear with 2 different servlets inside.
In the second I have a static fonction getContext()
I want to call it from the first servlet...
When the 2 servlets were in the same ear it works good but now it doesn't work.
How can i do?
You want to access one servlet's context from another's? The cleanest (and maybe most spec-friendly) way may be to do an http call between them.