You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/04/18 14:25:33 UTC

DO NOT REPLY [Bug 19147] New: - getmaintainSession with HttpSession does nothing

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19147>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19147

getmaintainSession with HttpSession does nothing

           Summary: getmaintainSession with HttpSession does nothing
           Product: Axis
           Version: 1.1rc2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: kevinj@develop.com


I deploy a server with no specific session handlers

In the server if i call getMaintainSession (and do nothing else) I don't get a
session
If I call getSession (with or without getMaintainSession) I don't get a session
If I touch the session (call session.get()) with or without getMaintainSession I
now get a session

Seems like getMaintainSession does nothing

WSDD

    <service name="Sessions" provider="java:RPC" style="wrapped">
        <namespace>urn:kevinj:Sessions</namespace>
        <parameter name="className" value="kevinj.UseSessions"/>
        <parameter name="allowedMethods" value="*"/>
    </service>

Code

        MessageContext mc = MessageContext.getCurrentContext();
        mc.setMaintainSession(true);
        Session session = mc.getSession();
        String name = (String)session.get("name");