You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rodrigo Del Canto <de...@pla.net.py> on 2003/10/12 06:57:20 UTC
HttpSession war wsr
hi,
I've tried this...
my.ear
| /
| --------------my.wsr
| /
| -----------------myService.class.getSessionId()
---------------------my.war
/
-----------------myServlet.class.getSessionId()
************************************
myService.class
getSessionId(){
org.apache.axis.MessageContext mctx =
org.apache.axis.MessageContext.getCurrentContext();
AxisHttpSession ses = ( AxisHttpSession ) mctx.getSession();
HttpSession httpSession = ses.getRep();
return httpSession.getId()
}
**********************************
myServlet.class
doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException{
try{
HttpSession session = request.getSession();
response.......return............session.getId();
}
why I've diferents sessionId ?
how i can get the same sessionId?
and do something like...
*myservice.getHttpSession.setAtributte("myVar", "hello");
*myservlet.getHttpSession.getAtributte("myVar");
myVar.toString().equals("hello");
thanks,
Sory, mi ingles es pobre...
delKant