Waiting for sessions to be deallocated

2005-08-26 Thread kar
I have been running tomcat on a test environment for the past 2 months.I have lately noticed that,when i keep using it for a while,the server hangs up and locks up my dbcp thread that connects to oracle.This is very sporadic.When i shutdown the server,i get this message Waiting for 2 Sessions

Re: persistence with sessions distributable attribute

2005-08-22 Thread Nishant Deshpande
is very high that other sessions are not serializable, either. So if you want to change this behaviour, you will probably have to implement your own PersistanceManager. On 8/18/05, Christoph Kutzinski [EMAIL PROTECTED] wrote: Question: why do you want to catch errors during serialization

Re: persistence with sessions distributable attribute

2005-08-20 Thread Christoph Kutzinski
it is implemented this way, because if one session isn't serializable the probability is very high that other sessions are not serializable, either. So if you want to change this behaviour, you will probably have to implement your own PersistanceManager. On 8/18/05, Christoph Kutzinski [EMAIL

Re: persistence with sessions distributable attribute

2005-08-19 Thread Nishant Deshpande
replication, right ? CMIIW. On 8/17/05, Christoph Kutzinski [EMAIL PROTECTED] wrote: Hi Nishant, where did you read that distributable will *enforce* serializability? AFAIK distributable only means that your sessions can be distributed to different tomcat nodes (i.e. a cluster

Re: persistence with sessions distributable attribute

2005-08-18 Thread Nishant Deshpande
, Christoph Kutzinski [EMAIL PROTECTED] wrote: Hi Nishant, where did you read that distributable will *enforce* serializability? AFAIK distributable only means that your sessions can be distributed to different tomcat nodes (i.e. a cluster). It doesn't enforce anything, you have to make sure

Re: persistence with sessions distributable attribute

2005-08-18 Thread Christoph Kutzinski
] wrote: Hi Nishant, where did you read that distributable will *enforce* serializability? AFAIK distributable only means that your sessions can be distributed to different tomcat nodes (i.e. a cluster). It doesn't enforce anything, you have to make sure that your session attributes are serializable

Re: persistence with sessions distributable attribute

2005-08-17 Thread Christoph Kutzinski
Hi Nishant, where did you read that distributable will *enforce* serializability? AFAIK distributable only means that your sessions can be distributed to different tomcat nodes (i.e. a cluster). It doesn't enforce anything, you have to make sure that your session attributes are serializable

Re: persistence with sessions distributable attribute

2005-08-17 Thread Lintang JP
that distributable will *enforce* serializability? AFAIK distributable only means that your sessions can be distributed to different tomcat nodes (i.e. a cluster). It doesn't enforce anything, you have to make sure that your session attributes are serializable by yourself. I've done this for my testing

Re: persistence with sessions distributable attribute

2005-08-17 Thread Christoph Kutzinski
Kutzinski [EMAIL PROTECTED] wrote: Hi Nishant, where did you read that distributable will *enforce* serializability? AFAIK distributable only means that your sessions can be distributed to different tomcat nodes (i.e. a cluster). It doesn't enforce anything, you have to make sure that your session

persistence with sessions distributable attribute

2005-08-16 Thread Nishant Deshpande
Hoping for some help from the tomcat experts on this list. I want to ensure all objects stored in sessions are serializable. I read that I can put the distributable/ tag in my web.xml file to 'enforce' this. But I don't see any enforcing happening. I assumed it would throw exceptions at runtime

Re: persistence with sessions distributable attribute

2005-08-16 Thread Nishant Deshpande
Apologies - I omitted the tomcat version: 5.0.28 On 8/16/05, Nishant Deshpande [EMAIL PROTECTED] wrote: Hoping for some help from the tomcat experts on this list. I want to ensure all objects stored in sessions are serializable. I read that I can put the distributable/ tag in my web.xml

Re: persistence with sessions distributable attribute

2005-08-16 Thread Lintang JP
the tomcat experts on this list. I want to ensure all objects stored in sessions are serializable. I read that I can put the distributable/ tag in my web.xml file to 'enforce' this. But I don't see any enforcing happening. I assumed it would throw exceptions at runtime when I did

Re: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules

2005-08-10 Thread Mark Thomas
Seale, Deryl wrote: Thanks for the information, Jon. I finally realized this when I examined the two different cookies Tomcat was setting: the first was marked secure, and the second was not. I followed the threads you provided, and one of the respondents hinted that this behavior may

Re: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules

2005-08-09 Thread Jon Wingfield
tomcat is getting confused with user sessions due to (I think) some mod_rewrite rules that switch a user in and out of SSL. The general requirement I have is to only use SSL in certain parts of our application (login, user administration, etc), and we use mod_rewrite rules to enforce

RE: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules

2005-08-09 Thread Seale, Deryl
still enforce this rule? thanks. -d. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 5:23 AM To: Tomcat Users List Subject: Re: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules I'm pretty sure Tomcat doesn't allow a session

sessions dropping with mod_ssl, mod_jk, mod_rewrite rules

2005-08-08 Thread Seale, Deryl
Hi, there. I have a problem whereby tomcat is getting confused with user sessions due to (I think) some mod_rewrite rules that switch a user in and out of SSL. The general requirement I have is to only use SSL in certain parts of our application (login, user administration, etc), and we use

RE: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules

2005-08-08 Thread Seale, Deryl
Forgot to add, we're using Tomcat 5.0.28, mod_jk 1.2.14, and apache 1.3.33. thanks. -d. -Original Message- From: Seale, Deryl Sent: Monday, August 08, 2005 11:48 AM To: tomcat-user@jakarta.apache.org Subject: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules Hi, there. I have

RE: How to turn off perssitent sessions in Tomcat 4.1?

2005-08-06 Thread Richard Mixon (qwest)
05, 2005 3:26 AM To: tomcat-user@jakarta.apache.org Subject: RE: How to turn off perssitent sessions in Tomcat 4.1? Can any one help me out in this issue? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 11:27 AM To: tomcat-user

RE: How to turn off perssitent sessions in Tomcat 4.1?

2005-08-05 Thread ajith.skumar
Can any one help me out in this issue? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 11:27 AM To: tomcat-user@jakarta.apache.org Subject: RE: How to turn off perssitent sessions in Tomcat 4.1? I am waiting for a good response. Can

Re: How to turn off perssitent sessions in Tomcat 4.1?

2005-08-05 Thread Christoph Kutzinski
Subject: RE: How to turn off perssitent sessions in Tomcat 4.1? I am waiting for a good response. Can any body help me out in this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 03, 2005 6:01 PM To: tomcat-user@jakarta.apache.org Subject: RE

RE: How to turn off perssitent sessions in Tomcat 4.1?

2005-08-04 Thread ajith.skumar
I am waiting for a good response. Can any body help me out in this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 03, 2005 6:01 PM To: tomcat-user@jakarta.apache.org Subject: RE: How to turn off perssitent sessions in Tomcat 4.1? Hi Edgar

How to turn off perssitent sessions in Tomcat 4.1?

2005-08-03 Thread ajith.skumar
Hi, I am using Apache+Tomcat 4.1.29 for running my application. When I am restarting Tomcat I am getting persistent session loading exception like this: 2004-03-11 13:52:18 StandardManager[] IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted

Re: How to turn off perssitent sessions in Tomcat 4.1?

2005-08-03 Thread Edgar Alves
persistent session loading exception like this: 2004-03-11 13:52:18 StandardManager[] IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.coyote.tomcat4.CoyoteRequestFacade java.io.WriteAbortedException

RE: How to turn off perssitent sessions in Tomcat 4.1?

2005-08-03 Thread ajith.skumar
is not serializable? Please clarify my doubts. Advance thanks to all of u !!! -Original Message- From: Edgar Alves [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 03, 2005 5:00 PM To: Tomcat Users List Subject: Re: How to turn off perssitent sessions in Tomcat 4.1? Hi, On Tomcat 5.5 you can turn

j_security_check sessions

2005-08-01 Thread Chris Holden
Hi, I am using the built in security constraints to password protect some directories in my app. It works fine, but I was wondering when someone uses the login form to get to the passworded directory or page, is it possible to get the username and/or password that the user submits in the

Re: j_security_check sessions

2005-08-01 Thread Frank W. Zammetti
AFAIK, no, there is no way to do it. Here at work we've built a whole security framework that works hand-in-hand with J2EE security, specifically to deal with shortcomings just like this. In our framework, we have a filter who has a couple of functions, and one of them is exactly what you

forcing non-cookie sessions?

2005-07-24 Thread Marten Lehmann
Hello, is there a way to force tomcat (or a web-container in general) not to use cookies to keep track of sessions, but to use url-rewriting with the ;jsessionid=sessID suffix instead? Regards Marten - To unsubscribe, e

SSL Sessions in Tomcat 5.5.4

2005-07-19 Thread Oliver Schoenwald
Hello, how do I track sessions without using cookies or URL-writing? Following the Servlet API 2.3, the third way to track sessions is by using the SSL-Layer to hold the ID. I have tried that out with my installation (Apache 2.0.47, mod_jk2, Tomcat 5.5.4) and followed the configuration hints

RE: Apache2/Tomcat55/mod_jk and Sticky Sessions

2005-07-19 Thread Dave Morrow
:[EMAIL PROTECTED] -Original Message- From: Robert F Hall [mailto:[EMAIL PROTECTED] Sent: Saturday, July 16, 2005 7:26 PM To: Tomcat Users List Subject: Re: Apache2/Tomcat55/mod_jk and Sticky Sessions Dave, Try a Google search for: Apache httpd sticky sessions. One result that looks

Apache2/Tomcat55/mod_jk and Sticky Sessions

2005-07-16 Thread Dave Morrow
Hi all. I am attempting to setup a loadbalanced set of Tomcat5.5 servers behind an Apache2 server using mod_jk. The application developers have told me that the app will require sticky sessions. I have it all configured and working with the exception of the sticky sessions. I think my

Re: Apache2/Tomcat55/mod_jk and Sticky Sessions

2005-07-16 Thread Robert F Hall
Dave, Try a Google search for: Apache httpd sticky sessions. One result that looks particularly useful: http://raibledesigns.com/tomcat/ -Robert Dave Morrow wrote: Hi all. I am attempting to setup a loadbalanced set of Tomcat5.5 servers behind an Apache2 server using mod_jk

Sharing sessions through different domains (in one tomcat)

2005-07-15 Thread Albrecht Berger
Hello, I'm developing a webapp that is reachable via a couple of domains, but there is only one webapp in one tomcat. I need to share the session of a user over these different domains. What is the best way to guarantee that no session is lost, when the user switches between two domains ? Do

Re: JDBC Persisted Sessions

2005-06-23 Thread Peter Johnson
config for JDBC persisted sessions that I could look at as the information in the docs seems a little disjointed. Also, for those that have it working, what has been their experience with it? Thanks, Peter Johnson - To unsubscribe

JDBC Persisted Sessions

2005-06-22 Thread Peter Johnson
Hi All, Does anyone have a working config for JDBC persisted sessions that I could look at as the information in the docs seems a little disjointed. Also, for those that have it working, what has been their experience with it? Thanks, Peter Johnson

Tomcat Manager and number of sessions per app

2005-06-05 Thread Darek
Hello, We have a server running Tomcat 4.1.27, mod_jk2, Apache2 hosting 6 applications. Tomcat Manager shows number of active sessions for each application. At one time one of the applications had over 300 active sessions, but applications user monitor would show only 60 authenticated users. I

Re: Sessions and keep-alives

2005-05-14 Thread Tim Diggins
Well, unless I misunderstood, the requirement is to keep the session for webappA alive as long as the session for webappB is alive, so if webappB is to be alive, then it must have new pages from the server (no need for a refresh there. Then the webappB's pages (views) could include a reference

AW: Sessions and keep-alives

2005-05-13 Thread Pfingstl Gernot
Users List Betreff: Re: Sessions and keep-alives I've considered iframes, but unfortunately not an option for us. From what I understand AJAX can make async calls to the HTTP server from the webapplication only, not on behalf of another. So if the popup application is webapp B, and the parent

Re: Sessions and keep-alives

2005-05-13 Thread Tim Diggins
Hi Patrick - If not an iframe, why not a gif... There's nothing (in principle I think*) stopping you having a jsp page that returns a (tiny, invisible) gif (with the right mimetype) and with appropriate expires/cache-control headers to make sure that it gets got each time. That's the way some

Re: Sessions and keep-alives

2005-05-13 Thread Patrick Lacson
Interesting solution Tim.. so webapp B would invoke this invisible gif from webapp A on an interval basis? -P On 5/13/05, Tim Diggins [EMAIL PROTECTED] wrote: Hi Patrick - If not an iframe, why not a gif... There's nothing (in principle I think*) stopping you having a jsp page that returns

Re: Sessions and keep-alives

2005-05-13 Thread Tim Diggins
I'd just include this invisible gif on every page (request) of webapp B. (bone-headed solution, but why get more tricksy until you need it). -- Tim Patrick Lacson wrote: Interesting solution Tim.. so webapp B would invoke this invisible gif from webapp A on an interval basis? -P On 5/13/05, Tim

Re: Sessions and keep-alives

2005-05-13 Thread Frank W. Zammetti
I'm curious how this would work? If I open a page with an invisible GIF, there's no way (without scripting and such) to have the GIF refresh, right? Or is there something I'm missing? You can set a meta refresh on the page, but not the GIF itself, as far as I know anyway. -- Frank W. Zammetti

Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Mladen Turk
Hi, What is your session timeout on tomcat? It might be that the session simply times out, so the next tomcat is elected from the load balancer. Regards, Mladen. Edlira Kumbarÿe7e wrote: Hello, It doesn't seem to work. Each time I refresh the page, it get served from the same

Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Kumbarÿffffffffffffffffe7e
Thank you for your reply. I don't think it's the session timeout on tomcat because, as I said in my previous message,I don't see a pattern in the time pages are served from the same tomcat. In other words, a page gets served from tomcat1 maybe 4 times (each page refresh), then 2 times from

Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Mladen Turk
Edlira Kumbarÿe7e wrote: I don't think it's the session timeout on tomcat because, as I said in my previous message,I don't see a pattern in the time pages are served from the same tomcat. In other words, a page gets served from tomcat1 maybe 4 times (each page refresh), then 2

Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Kumbarÿffffffffffffffffe7e
I'm using the binary version of mod_jk. Apache v2.0.54 Tomcat v5.5 JK v1.2.12 Thank you, Edlira --- Mladen Turk [EMAIL PROTECTED] wrote: Edlira Kumbarÿe7e wrote: I don't think it's the session timeout on tomcat because, as I said in my previous message,I don't see a

Sessions and keep-alives

2005-05-12 Thread Patrick Lacson
hi All! I'm involved in a project that integrates two disparate web applications: webapp A is using WebSphere and webapp B is using Tomcat. The integration involves Single Sign On, with webapp A being the primary webapp from which webapp B is launched. webapp B is launched as a popup-window.

Re: Sessions and keep-alives

2005-05-12 Thread Tim Funk
The simplest kludge is an iframe that is hidden and uses a META refresh. Or look at using ajax. -Tim Patrick Lacson wrote: hi All! I'm involved in a project that integrates two disparate web applications: webapp A is using WebSphere and webapp B is using Tomcat. The integration involves Single

Re: Sessions and keep-alives

2005-05-12 Thread Patrick Lacson
I've considered iframes, but unfortunately not an option for us. From what I understand AJAX can make async calls to the HTTP server from the webapplication only, not on behalf of another. So if the popup application is webapp B, and the parent webapp A, how can I call the webapp A server from

Re: Sessions and keep-alives

2005-05-12 Thread Frank W. Zammetti
. Does that all make sense? (I'm not sure I described it well) Frank W. Zammetti -Original Message- From: Patrick Lacson[EMAIL PROTECTED] Sent: 5/13/05 12:56:43 AM To: Tomcat Users Listtomcat-user@jakarta.apache.org Subject: Re: Sessions and keep-alives I've

Re: Sessions and keep-alives

2005-05-12 Thread Frank W. Zammetti
. Does that all make sense? (I'm not sure I described it well) Frank W. Zammetti -Original Message- From: Patrick Lacson[EMAIL PROTECTED] Sent: 5/13/05 12:56:43 AM To: Tomcat Users Listtomcat-user@jakarta.apache.org Subject: Re: Sessions and keep-alives I've

Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-11 Thread Kumbarÿffffffffffffffffe7e
in the apache conf. This file specifies workers timcat1 and tomcat2, as well as worker loadbalancer, which is supposed to balance the load between the two tomcats. Everything works fine, except for the sticky sessions, or session affinity. When a page is requested, I need it to be served from one

Tomcat Clustering - Replicated Sessions

2005-05-02 Thread Laura Haverkamp
According to the Tomcat (5.5.9) documentation after a sessions has reached a certian period of inactivity it expires. However my question is when is this expired session marked by the JVM for garbage collection. The reason I ask is that our application has an interesting problem. If we start up

Re: Tomcat Clustering - Replicated Sessions

2005-05-02 Thread Peter Rossbach
Hey, you have install my cluster patch for 5.5.9? http://issues.apache.org/bugzilla/show_bug.cgi?id=34389 I used very heavy the new fastasyncqueue mode without memory problems Every minute the sessions controlled for timeout. Look with an JMX Console that the manager active session count

RES: RES: Nervous about Sessions ...

2005-04-29 Thread Paulo Alvim
de 2005 17:34 Para: Will Hartung; Tomcat Users List; [EMAIL PROTECTED] Cc: Tomcat Users List Assunto: RES: RES: Nervous about Sessions ... Thank you very much, Frank... I had to create the following class

Nervous about Sessions ...

2005-04-27 Thread David Whitehurst
Long ago a multi-client, multi-Oracle application was written using Struts. Recently, we had a 4 in 22,000 record data integrity issue. I found one client implementation that used prepared statements but the primary key was being used e.g. update mytable set a= ?, b=? where pri_key = + pkey

Re: Nervous about Sessions ...

2005-04-27 Thread Viorel Dragomir
Whitehurst To: tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 11:31 Subject: Nervous about Sessions ... Long ago a multi-client, multi-Oracle application was written using Struts. Recently, we had a 4 in 22,000 record data integrity issue. I found one client implementation

Re: Tomcat creating new sessions between Servlet-JSP request dispatch under load

2005-04-27 Thread Andre Van Klaveren
to it. That will prevent multiple requests from stepping on each other while trying to add their DTOs to the Session. I haven't looked at Tomcat's code to see how they implemented the hashCode method of the Session object but it's not the best way to determine if two Sessions are equal in your

Re: Nervous about Sessions ...

2005-04-27 Thread David Whitehurst
in the package serializable. Viorel Dragomir . .. --- - Original Message - From: David Whitehurst To: tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 11:31 Subject: Nervous about Sessions ... Long ago

Re: Nervous about Sessions ...

2005-04-27 Thread Jay Hulslander
all objects in the package serializable. Viorel Dragomir . .. --- - Original Message - From: David Whitehurst To: tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 11:31 Subject: Nervous about Sessions ... Long

Re: Nervous about Sessions ...

2005-04-27 Thread Frank W. Zammetti
To: tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 11:31 Subject: Nervous about Sessions ... Long ago a multi-client, multi-Oracle application was written using Struts. Recently, we had a 4 in 22,000 record data integrity issue. I found one client implementation that used prepared

RES: Nervous about Sessions ...

2005-04-27 Thread Paulo Alvim
, javax.servlet.jsp.jstl.core.Config.FMT_LOCALIZATION_CONTEXT,lc); (...) Do you know about any changes related to that in TC 5.5.x? Thank you! Paulo -Mensagem original- De: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 27 de abril de 2005 12:59 Para: Tomcat Users List Assunto: Re: Nervous about Sessions

RES: Nervous about Sessions ...

2005-04-27 Thread Paulo Alvim
:[EMAIL PROTECTED] Enviada em: quarta-feira, 27 de abril de 2005 12:51 Para: Tomcat Users List Assunto: Re: Nervous about Sessions ... To store a Java Object in session (HTTPRequest or HTTPResponse), just make any Object (POJO or something more complicated) implement serializable. Keep in mind, you

Re: RES: Nervous about Sessions ...

2005-04-27 Thread Frank W. Zammetti
:59 Para: Tomcat Users List Assunto: Re: Nervous about Sessions ... There *technically* isn't any requirement that things you store in session be serializable. However, since some app servers use databases or file systems to persist session information, and that many times is implemented using

Re: RES: Nervous about Sessions ...

2005-04-27 Thread Will Hartung
sessions. Tomcat has different session managers. A simple one that happily consumes heap until you run out, a more sophisticated version that funnels old sessions to disk and reloads them on demand, and then the failover aware sessions. But, even the generic base version would try to persist session

Re: RES: Nervous about Sessions ...

2005-04-27 Thread David Whitehurst
... I myself might learn something here! :) Does anyone reading this know a definitive answer? Conceptually, I guess someone could have changed the session to require serialization. Perhaps they did this to handle the new cluster/failover aware sessions. Tomcat has different session managers

Re: RES: Nervous about Sessions ...

2005-04-27 Thread Will Hartung
java.io.serializable everytime? It doesn't. It fails for that case. The real question is whether you care. If you're using the RAM based session manager that tries and saves sessions on Tomcat restart, then you ask yourself if you really care to save sessions over a restart? (I don't, you may though.) If you

Re: RES: Nervous about Sessions ...

2005-04-27 Thread David Whitehurst
serialize the objects in session if the client application isn't placing objects implementing java.io.serializable everytime? It doesn't. It fails for that case. The real question is whether you care. If you're using the RAM based session manager that tries and saves sessions on Tomcat restart

RES: RES: Nervous about Sessions ...

2005-04-27 Thread Paulo Alvim
Alvim Cc: Tomcat Users List Assunto: Re: RES: Nervous about Sessions ... From: Frank W. Zammetti [EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 10:59 AM Hi Paul, No, I don't know of any changes... I'm actually wondering if this is a restriction the latest servlet spec places on objects

Re: RES: Nervous about Sessions ...

2005-04-27 Thread Will Hartung
(users). I found that I was using a HashMap (not threadsafe, changed that) and I now ..I am wondering whether the use of java simple types (e.g. client, and user strings) in the session is a good idea. Well, let's look at the problem. Sessions are based on a JSESSIONID (typically) which

Tomcat creating new sessions between Servlet-JSP request dispatch under load

2005-04-26 Thread Riyad Kalla
the way to 40 concurrent) the number of failed clients hovers around 1/2, sometimes more, sometimes less. It is seemingly random which ones fail and how many, but there are definately pages failing. The strangest part of all this is that I thought something might be occuring with the Sessions, because

Re: Tomcat creating new sessions between Servlet-JSP request dispatch under load

2005-04-26 Thread Andre Van Klaveren
their DTOs to the Session. I haven't looked at Tomcat's code to see how they implemented the hashCode method of the Session object but it's not the best way to determine if two Sessions are equal in your case. The hash code may depend on the contents of the Session object. I would print out

force purge of All http sessions

2005-04-22 Thread Jimmy Ray
Is there a way to purge all the sessions on a Tomcat instance? Tomcat 5.0.28 JVM 1.4.2.. Regards, Jimmy Ray __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-11 Thread August Detlefsen
:[EMAIL PROTECTED] In TC 5.5.7, the tomcat start/stop script for Linux/Solaris (/etc/init.d/tomcat) stops tomcat by simply killing the process: stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; Do user sessions ever get a chance to be serialized

Re: Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-11 Thread August Detlefsen
/init.d/tomcat) stops tomcat by simply killing the process: stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; Do user sessions ever get a chance to be serialized if tomcat is stopped in such a manner? They do if you're not using

Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-08 Thread August Detlefsen
In TC 5.5.7, the tomcat start/stop script for Linux/Solaris (/etc/init.d/tomcat) stops tomcat by simply killing the process: stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; Do user sessions ever get a chance to be serialized if tomcat is stopped

Re: Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-08 Thread Bill Barker
;; Do user sessions ever get a chance to be serialized if tomcat is stopped in such a manner? They do if you're not using the broken version of jsvc that ships with Tomcat. The non-buggy jsvc program catches SIGTERM and performs a clean shutdown of Tomcat. I have noticed that users are forced

Re: Getting other Sessions

2005-03-23 Thread Joseph Shraibman
Michael Greer wrote: List servers = MBeanServerFactory.findMBeanServer(null); MBeanServer server = (MBeanServer)servers.get(0); ObjectName objName = new ObjectName(Catalina:type=Manager,path=/contextPath,host=localhost); String sessionIds =

Re: Load balancing SSL sessions

2005-02-23 Thread Kelly Vista
SSL sessions Date: Tue, 22 Feb 2005 16:01:10 -0600 you can also use DNS round robin, www.mysite.com resolves to two or more IP addresses. Filip Andrew Miehs wrote: We use F5 BigIPs, but they are probably overkill for your application - The cisco probably will be as well. A 'Cheap' software solution

Re: Load balancing SSL sessions

2005-02-23 Thread Kelly Vista
BTW, I believe there is another issue with DNS round robin -- no support for sticky sessions. There is no assurance that a series of requests (i.e., a session) for a particular client IP or client with a particular session ID will be routed to the same server. Also, SSL sticky sessions

AW: Getting other Sessions

2005-02-23 Thread Bernhard Slominski
Nachricht- Von: Joseph Shraibman [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 23. Februar 2005 05:18 An: tomcat-user@jakarta.apache.org Betreff: Getting other Sessions I want to make an admin page in my application. I needs to be able to get access to all the current Session objects to access

RE: Getting other Sessions

2005-02-23 Thread Dale, Matt
Hi, That doesn't answer Joseph's question. It tells him how to access the objects in his own session but not how to access other peoples sessions. I would be interested to see how this is done as well. Ta Matt -Original Message- From: Bernhard Slominski [mailto:[EMAIL PROTECTED] Sent

AW: Getting other Sessions

2005-02-23 Thread Bernhard Slominski
: Mittwoch, 23. Februar 2005 10:25 An: Tomcat Users List Betreff: RE: Getting other Sessions Hi, That doesn't answer Joseph's question. It tells him how to access the objects in his own session but not how to access other peoples sessions. I would be interested to see how this is done as well. Ta

Re: Load balancing SSL sessions

2005-02-23 Thread andrew
Hi Kelly, To do a software solution you could use the following method. www.mysite.com - Both servers can answer this request, (for example round robin dns) or some form of hsrp (im sure there is a patch for linux to do this)... and based upon load and a simple script (perl, java, etc) they

RE: AW: Getting other Sessions

2005-02-23 Thread Mark Benussi
#sessionDestroyed(javax.servlet.http.HttpSessionEvent) */ public void sessionDestroyed(HttpSessionEvent sessionEvent) { } } Then you can access the sessions via this session helpers Hashtable. Finally you need to add the following to your web.xml. web-app id=WebApp display-nameblah/display-name

Re: Getting other Sessions

2005-02-23 Thread Christoph Kutzinski
Hi, looks to me that this was included in a previous version of the API, but was removed for security reasons: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionContext.html Therefore the only way to get all sessions is probably a SessionListener. HTH Christoph Dale, Matt wrote

RE: Load balancing SSL sessions

2005-02-23 Thread James Richardson
On Feb 22, 2005, at 10:24 PM, Kelly Vista wrote: Hi - We are looking to deploy our app, running on Tomcat 5, soon and are exploring load balancing options. We are looking at H/W and S/W solutions, and I was wondering if anyone had any past experience/advice they would like to

Re: Getting other Sessions

2005-02-23 Thread Michael Greer
List servers = MBeanServerFactory.findMBeanServer(null); MBeanServer server = (MBeanServer)servers.get(0); ObjectName objName = new ObjectName(Catalina:type=Manager,path=/contextPath,host=localhost); String sessionIds = (String)server.invoke(objName,listSessionIds,null, null);

Cluster: keeptracking a map of all sessions across nodes

2005-02-23 Thread LAM
Hi, I know that the SessionContext has been deprecated and have already used my own static Map object for storing userID-session mapping when session is created. But such static Map object that holds all the sessions is only accessible from within one cluster node (i.e. the one who processed

Load balancing SSL sessions

2005-02-22 Thread Kelly Vista
requirement is that the LB solution support sticky SSL sessions. I know that H/W LB (like Coyote Point Equalizer and Cisco LocalDirector) can do the LB + SSL acceleration, which I believe would do the job. However, I would be interested to know if there is a S/W LB solution that people would recommend

Re: Load balancing SSL sessions

2005-02-22 Thread Andrew Miehs
We use F5 BigIPs, but they are probably overkill for your application - The cisco probably will be as well. A 'Cheap' software solution might be to work with redirects, and 2 separate IP addresses. ie: ssl1.mysite.com and ssl2.mysite.com - You will need 2 ssl keys though for this to work.

Re: Load balancing SSL sessions

2005-02-22 Thread Filip Hanik - Dev Lists
you can also use DNS round robin, www.mysite.com resolves to two or more IP addresses. Filip Andrew Miehs wrote: We use F5 BigIPs, but they are probably overkill for your application - The cisco probably will be as well. A 'Cheap' software solution might be to work with redirects, and 2

Re: Load balancing SSL sessions

2005-02-22 Thread Andrew Miehs
Problem with round robin dns is that you can not guarantee that the web browser/ client will not make a second request to the dns server during the session - although very very unlikely. Andrew On Feb 22, 2005, at 11:01 PM, Filip Hanik - Dev Lists wrote: you can also use DNS round robin,

Re: Load balancing SSL sessions

2005-02-22 Thread Kelly Vista
@jakarta.apache.org Subject: Re: Load balancing SSL sessions Date: Tue, 22 Feb 2005 22:40:14 +0100 We use F5 BigIPs, but they are probably overkill for your application - The cisco probably will be as well. A 'Cheap' software solution might be to work with redirects, and 2 separate IP addresses. ie: ssl1

Getting other Sessions

2005-02-22 Thread Joseph Shraibman
I want to make an admin page in my application. I needs to be able to get access to all the current Session objects to access their attributes. Is this possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Getting other Sessions

2005-02-22 Thread Antony Paul
You can put all the sessions in List or Map when they login or use HttpSessionListener to listen to session events. rgds Antony Paul On Tue, 22 Feb 2005 23:17:56 -0500, Joseph Shraibman jks@selectacast.net wrote: I want to make an admin page in my application. I needs to be able to get

Re: Getting other Sessions

2005-02-22 Thread Joseph Shraibman
Antony Paul wrote: You can put all the sessions in List or Map when they login or use HttpSessionListener to listen to session events. That was my fallback plan, if there wasn't an easier way. - To unsubscribe, e-mail: [EMAIL

Re: bug in tomcat 5.5 and sticky sessions because of problem with jvmRoute parameter?

2005-01-21 Thread Christian Schuhegger
Mladen Turk wrote: Take a look at: http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html It clearly states that (big warning in red color) The name of the worker can contain only the alphanumeric characters [a-z][A-Z][0-9] and is case insensitive. So tc1.tc1 is illegal name for the

bug in tomcat 5.5 and sticky sessions because of problem with jvmRoute parameter?

2005-01-20 Thread Christian Schuhegger
hello, i've just tried to set-up tomcat 5.5 with apache2 and mod_jk version 1.2.8 in a load balancing set-up with sticky sessions. when i give as jvmRoute parameter the string tc1 my sessionids look like: BF20EF21CC52EA0659B1E079015D7B56.tc1.tc1 and i see in the mod_jk.log file that no worker

Re: bug in tomcat 5.5 and sticky sessions because of problem with jvmRoute parameter?

2005-01-20 Thread Remy Maucherat
On Thu, 20 Jan 2005 13:15:58 +0100, Christian Schuhegger [EMAIL PROTECTED] wrote: hello, i've just tried to set-up tomcat 5.5 with apache2 and mod_jk version 1.2.8 in a load balancing set-up with sticky sessions. when i give as jvmRoute parameter the string tc1 my sessionids look like

Re: bug in tomcat 5.5 and sticky sessions because of problem with jvmRoute parameter?

2005-01-20 Thread Christian Schuhegger
Remy Maucherat wrote: - Added jvmRoute=tc1 on Engine - Accessed http://127.0.0.1:8080/servlets-examples/servlet/SessionExample - Session ID displayed is 8DBBCECBCAD078E18C07401A076734B0.tc1 i've just tried this example myself and you're right. i see only .tc1. i have a very little webapp which

  1   2   3   4   5   6   7   8   9   10   >