ement the count.
This should eliminate the need to store anything in the session.
Hope this helps
Andy
-Original Message-
From: Christian Hauser [mailto:[EMAIL PROTECTED]
Sent: 04 September 2003 10:01
To: Tomcat Users List
Subject: Re: Counting active sessions if server restarts very
Shapira, Yoav wrote:
Howdy,
Is there an other way to implement this? Maybe by saving the variable
activeSessions to a session (which is restored when the server has
restarted)?
This is not a bad idea, and might be the easiest way. A DB write on
shutdown/read on startup is also an option.
To r
Hello list
I implemented a session counter to count all active sessions. Now I have
the problem that because the server is being restarted very often, my
static variable activeSessions is always set to 0.
Is there an other way to implement this? Maybe by saving the variable
activeSessions to a
Hello
I'd like to know how I can set system properties when starting Tomcat 4.1.
I mean those properties that I can get from within a JSP file as:
System.getProperty("CONFIG_HOME")
Thank you in advance for any hint.
Christian
---
Thank you very much, Ralph.
Regards, Christian
Ralph Einfeldt wrote:
You don't need the useBean.
A bean with session scope doesn't make sense at all,
if you want to access the methods through an object
you can make the object application global.
Or you can make sessionCreated/sessionDestroyed
bably only need it on compile time, and restart Tomcat.
Let me know if this worked for you.
Yiannis.
-Original Message-
From: Christian Hauser [mailto:[EMAIL PROTECTED]
Sent: 13 August 2003 09:36
To: Tomcat Users List
Subject: HttpServletRequest not found from within library
Hello all
I have a further question:
Is it correct that I don't have to use
and set the scope to "session"?
Because now I don't use "useBean". Should I?
Thank you in advance,
Christian
Christian Hauser wrote:
Hello J2EE programmers
I wrote a JSP some time ago that uses
Hello all
I'm using Tomcat 4.1.24 and have the following problem.
In a JSP file I have a bean called nav pointing to a class
some.package.Navigation. This class is located at a JAR file in the lib
directory of the web application.
...
<%
nav.handleRequest(request, ...);
...
In the Navigation
Angus Mezick wrote:
Can the developers have a tomcat instance running inside of eclipse on
their desktops? This will allow them do use the debugger.
--Angus
I haven't yet thought about that. I guess it should be possible, in fact
it would be great if that works. Do you know how simple that would
Thank you Ralph
So I should use the following:
public void sessionCreated(HttpSessionEvent event) {
synchronized (this) {
activeSessions++;
}
}
public void sessionDestroyed(HttpSessionEvent event) {
synchronized (this) {
if (activeSessions > 0) {
activeSessio
Hi Yoav
That could be the problem as well. So if the server is restarted my
session counter variable is set to 0, but there might still be 30 active
sessions.
I didn't think of that problem, because I thought that the sessions
would be invalidated when the server is restarted.
Has anyone a go
Hello J2EE programmers
I wrote a JSP some time ago that uses a class SessionCounter (which
implements HttpSessionListener) to count the active sessions of a web
application and to display them.
Unfortunately there seems to be a problem with my program, because the
web application says that the
Tim Funk wrote:
http://jakarta.apache.org/tomcat/faq/misc.html#properties
-Tim
Thank you Tim for pointing me to the right place.
But what do I have to do if I would like to set more than one system
property?
export JAVA_OPTS='-DpropName1=propValue1 -DpropName2=propValue2' ???
Regards,
Chri
Hello Tomcat cracks
I'm new to Tomcat administration and would like to switch from
ServletExec to Tomcat 4.1.
However, I have some difficulty understanding how to set up different
Tomcat instances. I'd like to have different Tomcat instances for each
developer (to test web applications) and fo
14 matches
Mail list logo