Manipulate Tomcat Session with Cargo API

View: New views
3 Messages — Rating Filter:   Alert me  

Manipulate Tomcat Session with Cargo API

by vicki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I need to expire the tomcat's session (which duration is normally specified in the web.xml) programmatically. I need this for my test - the test is making http posts to the tested server, and the server is launched by Cargo api in the setUp() clause of the test.
Thanks!
Vicki

Re: Manipulate Tomcat Session with Cargo API

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Tue, 2008-06-24 at 10:06 -0700, vicki wrote:
> Hi,
> I need to expire the tomcat's session (which duration is normally specified
> in the web.xml) programmatically. I need this for my test - the test is
> making http posts to the tested server, and the server is launched by Cargo
> api in the setUp() clause of the test.

Ok, so do you need cargo to specify the time out in the web.xml? or some
session kill switch that you can call?

Specifying the time out in the web.xml shouldn't be too much of a
problem. Adding a whole new mechanism just to expire a tomcat session
seems like it might be a pain to implement.

How would you do this with a regular tomcat server?



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Manipulate Tomcat Session with Cargo API

by vicki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you for answering. Yes, I would like to use cargo api to configure a session span. I definitely can use  an api to expire a tomcat session when I need that in my test, but, as I understand, cargo doesn't have this capability. I may look into tomcat admin api - if an admin user can expire a tomcat's session through tomcat's admin portal - there should be a java api for this too.

Matt Wringe wrote:
On Tue, 2008-06-24 at 10:06 -0700, vicki wrote:
> Hi,
> I need to expire the tomcat's session (which duration is normally specified
> in the web.xml) programmatically. I need this for my test - the test is
> making http posts to the tested server, and the server is launched by Cargo
> api in the setUp() clause of the test.

Ok, so do you need cargo to specify the time out in the web.xml? or some
session kill switch that you can call?

Specifying the time out in the web.xml shouldn't be too much of a
problem. Adding a whole new mechanism just to expire a tomcat session
seems like it might be a pain to implement.

How would you do this with a regular tomcat server?



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email