Re: [SOLVED]: Need to disable session interceptor

2009-09-02 Thread Dave Newton

Rajeev Sharma wrote:

I am not using session or cookies at all in my application right now. So
I guess adding cookie listener doesn't make any sense to be added to
JMeter test case. I shall use cookies later and shall add cookie
listener to test my application. I don't want to store any data in web
server so will not use sessions, rather shall store userid in cookie and
fetch users data from memcache from cache machine based on the cookie.


So you might as well have JMeter have a cookie listener so it simulates 
the browser.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [SOLVED]: Need to disable session interceptor

2009-09-01 Thread Rajeev Sharma
I am not using session or cookies at all in my application right now. So
I guess adding cookie listener doesn't make any sense to be added to
JMeter test case. I shall use cookies later and shall add cookie
listener to test my application. I don't want to store any data in web
server so will not use sessions, rather shall store userid in cookie and
fetch users data from memcache from cache machine based on the cookie.

--
Rajeev Sharma
Sr. Software Engineer
Yahoo! Inc

-Original Message-
From: Dave Newton 
Reply-to: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: [SOLVED]: Need to disable session interceptor
Date: Tue, 01 Sep 2009 16:10:28 -0400

Peter Phillips wrote:
>>From Rajeev's earlier emails:
> 
> "I am developing an application which does not need to use sessions at all."
> "I opened some pages on my application and found there was one session
> created for my browser and others for other clients, So I guess this
> has nothing to do with JMeter. Sessions are being created for every
> client."
> 
> Therefore I think adding page session="false" is the correct solution
> in his case and he has no need for the cookie listener in JMeter as no
> cookies will be created!

While I did misunderstand the original post, my statement still 
stands--if you want the JMeter tests to run as a real client would, the 
tests need to emulate the client. Unless every user has cookies disabled 
then the tests won't (necessarily) run the same way.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [SOLVED]: Need to disable session interceptor

2009-09-01 Thread Dave Newton

Peter Phillips wrote:

From Rajeev's earlier emails:


"I am developing an application which does not need to use sessions at all."
"I opened some pages on my application and found there was one session
created for my browser and others for other clients, So I guess this
has nothing to do with JMeter. Sessions are being created for every
client."

Therefore I think adding page session="false" is the correct solution
in his case and he has no need for the cookie listener in JMeter as no
cookies will be created!


While I did misunderstand the original post, my statement still 
stands--if you want the JMeter tests to run as a real client would, the 
tests need to emulate the client. Unless every user has cookies disabled 
then the tests won't (necessarily) run the same way.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [SOLVED]: Need to disable session interceptor

2009-09-01 Thread Peter Phillips
>From Rajeev's earlier emails:

"I am developing an application which does not need to use sessions at all."
"I opened some pages on my application and found there was one session
created for my browser and others for other clients, So I guess this
has nothing to do with JMeter. Sessions are being created for every
client."

Therefore I think adding page session="false" is the correct solution
in his case and he has no need for the cookie listener in JMeter as no
cookies will be created!

Peter.


2009/9/1 Dave Newton :
> Rajeev Sharma wrote:
>>
>> I did not have <%@ page session="false"> in the jsps which were included
>> in other jsps using . I put <%@ page session="false"> in all
>> the jsp pages and there are no more sessions created.
>>
>> Thank you guys for the quick help.
>
> That's not the correct solution: if you expect the JMeter tests to run as
> they would if they were a real client you need to add the cookie listener in
> JMeter.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [SOLVED]: Need to disable session interceptor

2009-09-01 Thread Dave Newton

Rajeev Sharma wrote:

I did not have <%@ page session="false"> in the jsps which were included
in other jsps using . I put <%@ page session="false"> in all
the jsp pages and there are no more sessions created.

Thank you guys for the quick help.


That's not the correct solution: if you expect the JMeter tests to run 
as they would if they were a real client you need to add the cookie 
listener in JMeter.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[SOLVED]: Need to disable session interceptor

2009-09-01 Thread Rajeev Sharma
I did not have <%@ page session="false"> in the jsps which were included
in other jsps using . I put <%@ page session="false"> in all
the jsp pages and there are no more sessions created.

Thank you guys for the quick help.

Peter,

I am using 2.1.6 and don't have sessions created any more. Are you sure
i18n interceptor in 2.1.7 creates the session for every client? Should
2.1.6 and 2.1.7 have differences like this? it should be a minor release
with no major changes. That's just my guess and interested to know your
opinion.

--
Rajeev Sharma
Sr. Software Engineer
Yahoo! Inc

-Original Message-
From: Peter Phillips 
Reply-to: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: Need to disable session interceptor
Date: Tue, 1 Sep 2009 19:20:17 +0100

When I upgraded from 2.0.x to 2.1.7 I found that the i18n interceptor
now always creates a session too.

The way I normally track down rogue session creations is to debug
tomcat in Eclipse and add breakpoints to the
javax.servlet.http.HttpServletRequest.getSession() and
javax.servlet.http.HttpServletRequest.getSession(boolean) methods.
That way you will find out exactly what the culprit is.

Peter.


2009/9/1  :
>
>  JSP create sessions by default. It is servlets that don't create a session 
> unless you
> call getSession(). Do you have something like
>
> <%@ page session="false">
>
> at the top of your JSPs?
>
>
>
>
>
>
>
> Chris
>
>
>
>
>
>
> -Original Message-----
> From: Rajeev Sharma 
> To: Struts Users Mailing List 
> Sent: Tue, Sep 1, 2009 9:49 am
> Subject: RE: Need to disable session interceptor
>
>
>
>
>
>
>
>
>
>
> I googled this and the struts2 performance tuning page says this "Struts
> 2 does not create sessions unless asked to (for example, by having the
> createSession interceptor in your interceptor stack). Note that when you
> use SiteMesh however, a session will always be created"
>
> I am never creating the session in my code directly and AFAIK I am not
> using SiteMesh (I don't even know what exactly is this). I have written
> code using JSP/Servlet and my knowledge says that unless the session is
> created explicitly it wont be created. Is there any interceptor in the
> defaultStack which creates it? (is the createSession part or
> defaultStack?) or I am doing something wrong.
>
> I opened some pages on my application and found there was one session
> created for my browser and others for other clients, So I guess this has
> nothing to do with JMeter. Sessions are being created for every client.
> I am trying to find out why is the session created when I did not create
> the session in my code.
>
> --
> Rajeev
>
> -Original Message-
> From: Martin Gainty 
> Reply-to: "
> Struts Users Mailing List" 
> To: Struts Users Mailing List 
> Subject: RE: Need to disable session interceptor
> Date: Tue, 1 Sep 2009 09:23:58 -0400
>
> Nils-
>
> doc suggests implementing a HttpCookieManager to handle the session
> any suggestions on which HttpCookieManager to implement and possible
> configurations?
>
> (i think JMeter is O/T so please ping offline)
>
> thanks
> Martin Gainty
> __
> Note de déni et de confidentialité
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
> interdite. Ce message sert à l'information seulement et n'aura pas n'importe
> quel effet légalement obligatoire. Étant donné que les email peuvent 
> facilement
> être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
> pour le contenu fourni.
>
>
>
>
>> Date: Tue, 1 Sep 2009 13:19:22 +0200
>> Subject: Re: Need to disable session interceptor
>> From: nil...@gmail.com
>> To: user@struts.apache.org
>>
>> From the JMeter FAQ: "How do I ensure each http request for jsp is
>> within one jsessionid ?"
>>
>> http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb
>>
>> Nils-H
>>
>> On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote:
>> > Rajeev Sharma wrote:
>> >>
>> >> I am new to struts
> 2 (I mean struts). I am developing an application which
>> >> does not need to use sessions at all. When I tested my application with
>> >> jmeter, I got 18000 sessions created (tomcat showed me this). Looks like
> for
>> >> ever

Re: Need to disable session interceptor

2009-09-01 Thread Dave Newton
In any case, Nils' thing about JMeter needing a cookie doodad so it 
keeps the same session per simulated client.


Dave

Peter Phillips wrote:

When I upgraded from 2.0.x to 2.1.7 I found that the i18n interceptor
now always creates a session too.

The way I normally track down rogue session creations is to debug
tomcat in Eclipse and add breakpoints to the
javax.servlet.http.HttpServletRequest.getSession() and
javax.servlet.http.HttpServletRequest.getSession(boolean) methods.
That way you will find out exactly what the culprit is.

Peter.


2009/9/1  :

 JSP create sessions by default. It is servlets that don't create a session 
unless you
call getSession(). Do you have something like

<%@ page session="false">

at the top of your JSPs?







Chris






-Original Message-
From: Rajeev Sharma 
To: Struts Users Mailing List 
Sent: Tue, Sep 1, 2009 9:49 am
Subject: RE: Need to disable session interceptor










I googled this and the struts2 performance tuning page says this "Struts
2 does not create sessions unless asked to (for example, by having the
createSession interceptor in your interceptor stack). Note that when you
use SiteMesh however, a session will always be created"

I am never creating the session in my code directly and AFAIK I am not
using SiteMesh (I don't even know what exactly is this). I have written
code using JSP/Servlet and my knowledge says that unless the session is
created explicitly it wont be created. Is there any interceptor in the
defaultStack which creates it? (is the createSession part or
defaultStack?) or I am doing something wrong.

I opened some pages on my application and found there was one session
created for my browser and others for other clients, So I guess this has
nothing to do with JMeter. Sessions are being created for every client.
I am trying to find out why is the session created when I did not create
the session in my code.

--
Rajeev

-Original Message-
From: Martin Gainty 
Reply-to: "
Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: RE: Need to disable session interceptor
Date: Tue, 1 Sep 2009 09:23:58 -0400

Nils-

doc suggests implementing a HttpCookieManager to handle the session
any suggestions on which HttpCookieManager to implement and possible
configurations?

(i think JMeter is O/T so please ping offline)

thanks
Martin Gainty
__
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.





Date: Tue, 1 Sep 2009 13:19:22 +0200
Subject: Re: Need to disable session interceptor
From: nil...@gmail.com
To: user@struts.apache.org

From the JMeter FAQ: "How do I ensure each http request for jsp is
within one jsessionid ?"

http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb

Nils-H

On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote:

Rajeev Sharma wrote:

I am new to struts

2 (I mean struts). I am developing an application which

does not need to use sessions at all. When I tested my application with
jmeter, I got 18000 sessions created (tomcat showed me this). Looks like

for

every individual request there is one session created. How can I remove the
session interceptor at all (and other components related to sessions), so
that there are no sessions created in my application.

There isn't a session created for each request, there's a session per client
conversation. Also, AFAIK, Struts 2 doesn't do anything in particular
regarding session creation--that is handled by the container.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


_
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org









--

Re: Need to disable session interceptor

2009-09-01 Thread Peter Phillips
When I upgraded from 2.0.x to 2.1.7 I found that the i18n interceptor
now always creates a session too.

The way I normally track down rogue session creations is to debug
tomcat in Eclipse and add breakpoints to the
javax.servlet.http.HttpServletRequest.getSession() and
javax.servlet.http.HttpServletRequest.getSession(boolean) methods.
That way you will find out exactly what the culprit is.

Peter.


2009/9/1  :
>
>  JSP create sessions by default. It is servlets that don't create a session 
> unless you
> call getSession(). Do you have something like
>
> <%@ page session="false">
>
> at the top of your JSPs?
>
>
>
>
>
>
>
> Chris
>
>
>
>
>
>
> -Original Message-
> From: Rajeev Sharma 
> To: Struts Users Mailing List 
> Sent: Tue, Sep 1, 2009 9:49 am
> Subject: RE: Need to disable session interceptor
>
>
>
>
>
>
>
>
>
>
> I googled this and the struts2 performance tuning page says this "Struts
> 2 does not create sessions unless asked to (for example, by having the
> createSession interceptor in your interceptor stack). Note that when you
> use SiteMesh however, a session will always be created"
>
> I am never creating the session in my code directly and AFAIK I am not
> using SiteMesh (I don't even know what exactly is this). I have written
> code using JSP/Servlet and my knowledge says that unless the session is
> created explicitly it wont be created. Is there any interceptor in the
> defaultStack which creates it? (is the createSession part or
> defaultStack?) or I am doing something wrong.
>
> I opened some pages on my application and found there was one session
> created for my browser and others for other clients, So I guess this has
> nothing to do with JMeter. Sessions are being created for every client.
> I am trying to find out why is the session created when I did not create
> the session in my code.
>
> --
> Rajeev
>
> -Original Message-
> From: Martin Gainty 
> Reply-to: "
> Struts Users Mailing List" 
> To: Struts Users Mailing List 
> Subject: RE: Need to disable session interceptor
> Date: Tue, 1 Sep 2009 09:23:58 -0400
>
> Nils-
>
> doc suggests implementing a HttpCookieManager to handle the session
> any suggestions on which HttpCookieManager to implement and possible
> configurations?
>
> (i think JMeter is O/T so please ping offline)
>
> thanks
> Martin Gainty
> __
> Note de déni et de confidentialité
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
> interdite. Ce message sert à l'information seulement et n'aura pas n'importe
> quel effet légalement obligatoire. Étant donné que les email peuvent 
> facilement
> être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
> pour le contenu fourni.
>
>
>
>
>> Date: Tue, 1 Sep 2009 13:19:22 +0200
>> Subject: Re: Need to disable session interceptor
>> From: nil...@gmail.com
>> To: user@struts.apache.org
>>
>> From the JMeter FAQ: "How do I ensure each http request for jsp is
>> within one jsessionid ?"
>>
>> http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb
>>
>> Nils-H
>>
>> On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote:
>> > Rajeev Sharma wrote:
>> >>
>> >> I am new to struts
> 2 (I mean struts). I am developing an application which
>> >> does not need to use sessions at all. When I tested my application with
>> >> jmeter, I got 18000 sessions created (tomcat showed me this). Looks like
> for
>> >> every individual request there is one session created. How can I remove 
>> >> the
>> >> session interceptor at all (and other components related to sessions), so
>> >> that there are no sessions created in my application.
>> >
>> > There isn't a session created for each request, there's a session per 
>> > client
>> > conversation. Also, AFAIK, Struts 2 doesn't do anything in particular
>> > regarding session creation--that is handled by the container.
>> >
>> > Dave
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@str

Re: Need to disable session interceptor

2009-09-01 Thread musomesa

 JSP create sessions by default. It is servlets that don't create a session 
unless you 
call getSession(). Do you have something like

<%@ page session="false">

at the top of your JSPs?




 


Chris

 


 

-Original Message-
From: Rajeev Sharma 
To: Struts Users Mailing List 
Sent: Tue, Sep 1, 2009 9:49 am
Subject: RE: Need to disable session interceptor










I googled this and the struts2 performance tuning page says this "Struts
2 does not create sessions unless asked to (for example, by having the
createSession interceptor in your interceptor stack). Note that when you
use SiteMesh however, a session will always be created"

I am never creating the session in my code directly and AFAIK I am not
using SiteMesh (I don't even know what exactly is this). I have written
code using JSP/Servlet and my knowledge says that unless the session is
created explicitly it wont be created. Is there any interceptor in the
defaultStack which creates it? (is the createSession part or
defaultStack?) or I am doing something wrong.

I opened some pages on my application and found there was one session
created for my browser and others for other clients, So I guess this has
nothing to do with JMeter. Sessions are being created for every client.
I am trying to find out why is the session created when I did not create
the session in my code.

--
Rajeev

-Original Message-
From: Martin Gainty 
Reply-to: "
Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: RE: Need to disable session interceptor
Date: Tue, 1 Sep 2009 09:23:58 -0400

Nils-

doc suggests implementing a HttpCookieManager to handle the session
any suggestions on which HttpCookieManager to implement and possible 
configurations?

(i think JMeter is O/T so please ping offline)

thanks
Martin Gainty 
__ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Tue, 1 Sep 2009 13:19:22 +0200
> Subject: Re: Need to disable session interceptor
> From: nil...@gmail.com
> To: user@struts.apache.org
> 
> From the JMeter FAQ: "How do I ensure each http request for jsp is
> within one jsessionid ?"
> 
> http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb
> 
> Nils-H
> 
> On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote:
> > Rajeev Sharma wrote:
> >>
> >> I am new to struts
2 (I mean struts). I am developing an application which
> >> does not need to use sessions at all. When I tested my application with
> >> jmeter, I got 18000 sessions created (tomcat showed me this). Looks like 
for
> >> every individual request there is one session created. How can I remove the
> >> session interceptor at all (and other components related to sessions), so
> >> that there are no sessions created in my application.
> >
> > There isn't a session created for each request, there's a session per client
> > conversation. Also, AFAIK, Struts 2 doesn't do anything in particular
> > regarding session creation--that is handled by the container.
> >
> > Dave
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




 



Re: Need to disable session interceptor

2009-09-01 Thread Nils-Helge Garli Hegvik
> I am trying to find out why is the session created when I did not create
> the session in my code.
>
> --
> Rajeev
>

Well, I believe Struts 2 internally does request.getSession(false) to
prevent creating sessions when there isn't one... Which interceptor
stack are you using? You could also try adding <% @page session=false
%> in your JSPs and see if that helps.

Nils-H

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: [OT] Re: Need to disable session interceptor

2009-09-01 Thread Martin Gainty

there is a mention of cookies being grouped by ThreadGroup
can i assume ThreadGroup is defined by the container?

thx,
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Tue, 1 Sep 2009 15:40:42 +0200
> Subject: [OT] Re: Need to disable session interceptor
> From: nil...@gmail.com
> To: user@struts.apache.org
> 
> Hm... I don't know... Maybe read the documentation?
> 
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Cookie_Manager
> 
> Sorry for pinging you online. Hope that's not too much trouble...
> 
> Nils-H
> 
> On Tue, Sep 1, 2009 at 3:23 PM, Martin Gainty wrote:
> >
> > Nils-
> >
> > doc suggests implementing a HttpCookieManager to handle the session
> > any suggestions on which HttpCookieManager to implement and possible 
> > configurations?
> >
> > (i think JMeter is O/T so please ping offline)
> >
> > thanks
> > Martin Gainty
> > __
> > Note de déni et de confidentialité
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> > destinataire prévu, nous te demandons avec bonté que pour satisfaire 
> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie 
> > de ceci est interdite. Ce message sert à l'information seulement et n'aura 
> > pas n'importe quel effet légalement obligatoire. Étant donné que les email 
> > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> > aucune responsabilité pour le contenu fourni.
> >
> >
> >
> >
> >> Date: Tue, 1 Sep 2009 13:19:22 +0200
> >> Subject: Re: Need to disable session interceptor
> >> From: nil...@gmail.com
> >> To: user@struts.apache.org
> >>
> >> From the JMeter FAQ: "How do I ensure each http request for jsp is
> >> within one jsessionid ?"
> >>
> >> http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb
> >>
> >> Nils-H
> >>
> >> On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote:
> >> > Rajeev Sharma wrote:
> >> >>
> >> >> I am new to struts2 (I mean struts). I am developing an application 
> >> >> which
> >> >> does not need to use sessions at all. When I tested my application with
> >> >> jmeter, I got 18000 sessions created (tomcat showed me this). Looks 
> >> >> like for
> >> >> every individual request there is one session created. How can I remove 
> >> >> the
> >> >> session interceptor at all (and other components related to sessions), 
> >> >> so
> >> >> that there are no sessions created in my application.
> >> >
> >> > There isn't a session created for each request, there's a session per 
> >> > client
> >> > conversation. Also, AFAIK, Struts 2 doesn't do anything in particular
> >> > regarding session creation--that is handled by the container.
> >> >
> >> > Dave
> >> >
> >> >
> >> > -
> >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> > For additional commands, e-mail: user-h...@struts.apache.org
> >> >
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >
> > _
> > Get back to school stuff for them and cashback for you.
> > http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Windows Live: Keep your friends up to date with what you do online.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009

RE: Need to disable session interceptor

2009-09-01 Thread Rajeev Sharma
I googled this and the struts2 performance tuning page says this "Struts
2 does not create sessions unless asked to (for example, by having the
createSession interceptor in your interceptor stack). Note that when you
use SiteMesh however, a session will always be created"

I am never creating the session in my code directly and AFAIK I am not
using SiteMesh (I don't even know what exactly is this). I have written
code using JSP/Servlet and my knowledge says that unless the session is
created explicitly it wont be created. Is there any interceptor in the
defaultStack which creates it? (is the createSession part or
defaultStack?) or I am doing something wrong.

I opened some pages on my application and found there was one session
created for my browser and others for other clients, So I guess this has
nothing to do with JMeter. Sessions are being created for every client.
I am trying to find out why is the session created when I did not create
the session in my code.

--
Rajeev

-Original Message-
From: Martin Gainty 
Reply-to: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: RE: Need to disable session interceptor
Date: Tue, 1 Sep 2009 09:23:58 -0400

Nils-

doc suggests implementing a HttpCookieManager to handle the session
any suggestions on which HttpCookieManager to implement and possible 
configurations?

(i think JMeter is O/T so please ping offline)

thanks
Martin Gainty 
__ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Tue, 1 Sep 2009 13:19:22 +0200
> Subject: Re: Need to disable session interceptor
> From: nil...@gmail.com
> To: user@struts.apache.org
> 
> From the JMeter FAQ: "How do I ensure each http request for jsp is
> within one jsessionid ?"
> 
> http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb
> 
> Nils-H
> 
> On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote:
> > Rajeev Sharma wrote:
> >>
> >> I am new to struts2 (I mean struts). I am developing an application which
> >> does not need to use sessions at all. When I tested my application with
> >> jmeter, I got 18000 sessions created (tomcat showed me this). Looks like 
> >> for
> >> every individual request there is one session created. How can I remove the
> >> session interceptor at all (and other components related to sessions), so
> >> that there are no sessions created in my application.
> >
> > There isn't a session created for each request, there's a session per client
> > conversation. Also, AFAIK, Struts 2 doesn't do anything in particular
> > regarding session creation--that is handled by the container.
> >
> > Dave
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[OT] Re: Need to disable session interceptor

2009-09-01 Thread Nils-Helge Garli Hegvik
Hm... I don't know... Maybe read the documentation?

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Cookie_Manager

Sorry for pinging you online. Hope that's not too much trouble...

Nils-H

On Tue, Sep 1, 2009 at 3:23 PM, Martin Gainty wrote:
>
> Nils-
>
> doc suggests implementing a HttpCookieManager to handle the session
> any suggestions on which HttpCookieManager to implement and possible 
> configurations?
>
> (i think JMeter is O/T so please ping offline)
>
> thanks
> Martin Gainty
> __
> Note de déni et de confidentialité
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Tue, 1 Sep 2009 13:19:22 +0200
>> Subject: Re: Need to disable session interceptor
>> From: nil...@gmail.com
>> To: user@struts.apache.org
>>
>> From the JMeter FAQ: "How do I ensure each http request for jsp is
>> within one jsessionid ?"
>>
>> http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb
>>
>> Nils-H
>>
>> On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote:
>> > Rajeev Sharma wrote:
>> >>
>> >> I am new to struts2 (I mean struts). I am developing an application which
>> >> does not need to use sessions at all. When I tested my application with
>> >> jmeter, I got 18000 sessions created (tomcat showed me this). Looks like 
>> >> for
>> >> every individual request there is one session created. How can I remove 
>> >> the
>> >> session interceptor at all (and other components related to sessions), so
>> >> that there are no sessions created in my application.
>> >
>> > There isn't a session created for each request, there's a session per 
>> > client
>> > conversation. Also, AFAIK, Struts 2 doesn't do anything in particular
>> > regarding session creation--that is handled by the container.
>> >
>> > Dave
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>
> _
> Get back to school stuff for them and cashback for you.
> http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Need to disable session interceptor

2009-09-01 Thread Martin Gainty

Nils-

doc suggests implementing a HttpCookieManager to handle the session
any suggestions on which HttpCookieManager to implement and possible 
configurations?

(i think JMeter is O/T so please ping offline)

thanks
Martin Gainty 
__ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Tue, 1 Sep 2009 13:19:22 +0200
> Subject: Re: Need to disable session interceptor
> From: nil...@gmail.com
> To: user@struts.apache.org
> 
> From the JMeter FAQ: "How do I ensure each http request for jsp is
> within one jsessionid ?"
> 
> http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb
> 
> Nils-H
> 
> On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote:
> > Rajeev Sharma wrote:
> >>
> >> I am new to struts2 (I mean struts). I am developing an application which
> >> does not need to use sessions at all. When I tested my application with
> >> jmeter, I got 18000 sessions created (tomcat showed me this). Looks like 
> >> for
> >> every individual request there is one session created. How can I remove the
> >> session interceptor at all (and other components related to sessions), so
> >> that there are no sessions created in my application.
> >
> > There isn't a session created for each request, there's a session per client
> > conversation. Also, AFAIK, Struts 2 doesn't do anything in particular
> > regarding session creation--that is handled by the container.
> >
> > Dave
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

Re: Need to disable session interceptor

2009-09-01 Thread Nils-Helge Garli Hegvik
>From the JMeter FAQ: "How do I ensure each http request for jsp is
within one jsessionid ?"

http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55b7ae5955eda46b1e2cecb

Nils-H

On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote:
> Rajeev Sharma wrote:
>>
>> I am new to struts2 (I mean struts). I am developing an application which
>> does not need to use sessions at all. When I tested my application with
>> jmeter, I got 18000 sessions created (tomcat showed me this). Looks like for
>> every individual request there is one session created. How can I remove the
>> session interceptor at all (and other components related to sessions), so
>> that there are no sessions created in my application.
>
> There isn't a session created for each request, there's a session per client
> conversation. Also, AFAIK, Struts 2 doesn't do anything in particular
> regarding session creation--that is handled by the container.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Need to disable session interceptor

2009-09-01 Thread Dave Newton

Rajeev Sharma wrote:
I am new to struts2 (I mean struts). I am developing an application 
which does not need to use sessions at all. When I tested my application 
with jmeter, I got 18000 sessions created (tomcat showed me this). Looks 
like for every individual request there is one session created. How can 
I remove the session interceptor at all (and other components related to 
sessions), so that there are no sessions created in my application.


There isn't a session created for each request, there's a session per 
client conversation. Also, AFAIK, Struts 2 doesn't do anything in 
particular regarding session creation--that is handled by the container.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Need to disable session interceptor

2009-09-01 Thread Rajeev Sharma

Hi,

I am new to struts2 (I mean struts). I am developing an application  
which does not need to use sessions at all. When I tested my  
application with jmeter, I got 18000 sessions created (tomcat showed  
me this). Looks like for every individual request there is one session  
created. How can I remove the session interceptor at all (and other  
components related to sessions), so that there are no sessions created  
in my application.


--
Rajeev

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org