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 az...@apache.org on 2007/02/23 11:46:46 UTC

svn commit: r510898 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context: AbstractContext.java SessionContext.java

Author: azeez
Date: Fri Feb 23 02:46:42 2007
New Revision: 510898

URL: http://svn.apache.org/viewvc?view=rev&rev=510898
Log:
Adding a default constructor to SessionContext.

This is needed for the following reason;
When HTTP transport based sessions are used in Axis2 Web services, a SessionContext object is used.
This SessionContext is added to the HTTP session as an attribute.
When Axis2 is deployed on Tomcat, it persists the session information in the work directory. When Tomcat is restarted, it tries to reconstruct the
SessionContext object. If no default constructor is available, an exception is thrown.


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/AbstractContext.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/SessionContext.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/AbstractContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/AbstractContext.java?view=diff&rev=510898&r1=510897&r2=510898
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/AbstractContext.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/AbstractContext.java Fri Feb 23 02:46:42 2007
@@ -40,6 +40,9 @@
         this.parent = parent;
     }
 
+    protected AbstractContext(){
+    }
+
     /**
      * @return Returns AbstractContext.
      */

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/SessionContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/SessionContext.java?view=diff&rev=510898&r1=510897&r2=510898
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/SessionContext.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/SessionContext.java Fri Feb 23 02:46:42 2007
@@ -83,6 +83,9 @@
         super(parent);
     }
 
+    public SessionContext() {
+    }
+
     public void init(AxisConfiguration axisConfiguration) throws AxisFault {
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org