Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 11384 invoked by uid 500); 20 Feb 2003 21:45:40 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 11362 invoked from network); 20 Feb 2003 21:45:40 -0000 Message-ID: From: "Almeida, Timothy" To: "'axis-user@ws.apache.org'" Subject: RE: Session Scope Date: Thu, 20 Feb 2003 15:45:42 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks Barry. For anyone else who's interested: There's a method called setMaintainSession(boolean) on both Stub & Service. You'd need to call it on the Service object if using dynamic invocation; if using toolkit generated stubs, you would want to call it on the Stub returned by the 'Service Locator'. -----Original Message----- From: Barry Levinson [mailto:barry@levinson.us] Sent: Thursday, February 20, 2003 3:14 PM To: axis-user@ws.apache.org Subject: Re: Session Scope Yes, you need to allow cookies to be stored. See archives of this list for a more in depth answer. --Barry Almeida, Timothy wrote: >I'm attempting to deploy a simple 'hello world type' service to run in >"session scope", but it doesn't appear to be working. ('request' & >'application' scope settings work as I would expect them to.) >If make two consecutive calls to the same method of a service for which the >scope is specified to be 'session', it results in the 'service object' being >instantiated twice -- once for each call invocation. >* Is this a known bug by any chance? (I'm using Axis Release 1.0) >* Am I possibly omitting to do something? (Allowing cookies to be stored for >example.) >* Or am I just misunderstanding how this should work? > >Here's the relevant section of the server-config.wsdd file: > > > > > > > >I badly need session state to be maintained for another less frivolous >service I'm working on. >Any advice/insights would be much appreciated... >Thanks, >Tim > > >