axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Moore <>
Subject RE: Session question
Date Wed, 23 Oct 2002 20:06:40 GMT

If your service is marked for session scope, you don't need to store your
data in the session itself. You can store it in your service class as a
member variable. This reduces your dependency on accessing the Session
object via an Axis-specific api (e.g. getCurrentContext())

Since your service object instance is reused on a per-session basis when
your service method is called for a given session client, the data member
state is still valid.


-----Original Message-----
From: Timofey Korolyov []
Sent: Wednesday, October 23, 2002 4:45 AM
Subject: Re: Session question

On Wed, 2002-10-23 at 15:09, Matthias Brunner wrote:
> On Tuesday 22 October 2002 22:03, Timofey Korolyov wrote:
> > On Mon, 2002-10-21 at 22:26, Matthias Brunner wrote:
> > > First of all, set scope to "session" in your deployment
> > > descriptor (WSDD file).
> >
> > I've done that, but still nothing happens.
> You have to call Call.setMaintainSession(true) on the client side.


> Sorry, it is only in the source distribution: test.session.*
> See also:

done 8-)

here is my code sample. is that ok?
Sorry for maybe simple question, but there is no code examples (expect
TestSession) in www (i've searched everything with

public Element getUpdatesList(String branch, String version, Element
pluginsList) {
		Session session =
		Integer count = (Integer)session.get("counter");
		if (count == null) {
			count = new Integer(0);
		count = new Integer(count.intValue() + 1);
		session.set("counter", count);
		return null;

Service sends me back:

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Connection: close
Date: Wed, 23 Oct 2002 11:37:50 GMT
Server: Apache Tomcat/4.0.2 (HTTP/1.1 Connector)
Set-Cookie: JSESSIONID=34367494FFF447AD50EA2C470E64C6F8;Path=/axis

<?xml version="1.0" encoding="UTF-8"?>

Nothing here about counter.
Where can my mistake possibly be?

Timofey Korolyov <>

View raw message