> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: jeudi 17 f�vrier 2005 13:31 > To: [email protected] > Cc: [EMAIL PROTECTED] > Subject: RE: Session Limit Exceeded > > Hi Vincent, > > Is it possible to invalidate the cactus session anyway ? > I tried session.invalidate in the end() method but it failed as well.
I don't know why. I guess you'll need to read your container doc to understand why it doesn't free a session immediately when you call invalidate(). I don't see what I can do to help you. As an alternative I guess you could: - buy some license to have more sessions - use a free and open source container to test on - use unit testing in isolation (without the container), possibly using Mocks Thanks -Vincent > > Thanks a lot for your help. > > Cheers, > Andre > > -----Original Message----- > From: Vincent Massol [mailto:[EMAIL PROTECTED] > Sent: 17 February 2005 12:25 > To: [email protected] > Subject: RE: Session Limit Exceeded > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: jeudi 17 f�vrier 2005 13:10 > > To: [email protected] > > Cc: [EMAIL PROTECTED] > > Subject: RE: Session Limit Exceeded > > > > Hi Vincent, > > > > I set WebRequest.setAutomaticSession(false) but already 2 Sessions are > > used by one testcase. What do you mean by "Using > > setAutomaticSession(false) might help but only if you do not have code > > that creates a session on the server side." ? I think the code is in > > cactus isn't it ? > > Cactus is only a thin infrastructure that calls your test code and your > code under test. So the majority of the code executed is your code... :-) > > What I meant was: Do your tests or your code under test create HTTP > sessions? > > I don't think Cactus does if you set setAutomaticSession(false) (but I may > be wrong - I just don't remember it being the case). So I was asking you > to check your code so verify it doesn't either. > > > I can't set the session timeout to 1 min. It is not allowed by my > > developer license. > > Thanks > -Vincent > > > > > Cheers, > > Andre > > > > > > -----Original Message----- > > From: Vincent Massol [mailto:[EMAIL PROTECTED] > > Sent: 16 February 2005 19:45 > > To: 'Cactus Users List' > > Subject: RE: Session Limit Exceeded > > > > > > Hi Andre, > > > > You have several options. Using setAutomaticSession(false) might help > > but only if you do not have code that creates a session on the server > > side. > > > > A better solution might be to configure your container to quickly > > release sessions by having a short session timeout (say 1 minute or > > less). > > > > To my knowledge Cactus does not create sessions if you set > > WebRequest.setAutomaticSession(false). > > > > -Vincent > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] > > > Sent: mercredi 16 f�vrier 2005 19:22 > > > To: [email protected] > > > Subject: Session Limit Exceeded > > > > > > Hi all, > > > > > > I can have 20 Sessions on the Server. I get a Session Limit > > > Exceeded Error. By running my 30 cactus tests. 20 Session should be > > > enough. I tried to controll the number of session by setting the > > > automaticSession Variable without Success. > > > Can anybody tell me to controll the number of sessions ? > > > > > > Thanks a lot > > > Andre > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
