users@glassfish.java.net

ServletContext from the webservice

From: Ronaldo Rigoni ... <rrigoni_at_gmail.com>
Date: Fri, 25 Sep 2009 14:04:38 -0400

Hi all,
Can I access the servletContext from the webService?
I was tried to get so:

WebServiceContext wsContext;

wsContext.getMessageContext().get(MessageContext.SERVLET_CONTEXT);

But, i get a NullPointerException. Any sugestion?


-- 
[]'s,
Ronaldo Rigoni
http://www.ronaldorigoni.com.br
Desenvolvedor JEE
Ministério da Educação -  CESPE