Hi,
you could also use a SessionListener an invalidate sessions immediately
after being created or you could write your own implementation of
|org.apache.catalina.Manager
|http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html and
configure it to be used instead of the default manager.
Can't
Ravi Sharma wrote:
Hi All,
I need to run some threads at particular time during the day, does Tomcat
provide any such facility? If not then whats the other best way to go for
it.
Well for scheduled jobs Quartz is a common tool, if java.util.Timer is
not sufficient. Certainly not
the AJP thread pool has a maxSpareThread setting (i.e.
doesn't this have an effect without pool timeout?)?
What could be the reason for SYN requests of the Apache that never get
answered by Tomcat?
Thanks,
Michael Echerer
--
TNG Technology Consulting GmbH, Betastr. 13a, D-85774 Unterföhring
Shimol Shah wrote:
Hi,
Hi,
I am trying to look for a way to programmtically find CPU resources used
and
memory used for indivudual web applications. I have given it many tries on
Google but only thing I could find was some third party tool vendors that
give solutions to performance
Madhur K Tanwani wrote:
I am trying to build a
load balancer which enforces the following :-
- chooses from the available alive workers from the cluster,
in a Round-Robin / Least-Load-First manner
- implements session affinity
See: http://tomcat.apache.org/connectors-doc/
-
Maucherat [EMAIL PROTECTED] wrote:
On 6/1/06, Michael Echerer [EMAIL PROTECTED] wrote:
Danny Lee wrote:
Hi guys!
I wondering if it's really so good to use Tomcat behind a real web
server like Apache or IIS.
In case you have a lot of HTTPS traffic, you'll find that having Apache
Remove the servlet-api.jar from your web apps. This jar is provided by
Tomcat already. You might need it to build your app, but don't deploy it.
Cheers,
Michael
Asaf Lahav wrote:
*When starting tomcat, I get the following log:***
28/05/2006 21:03:39
[EMAIL PROTECTED] wrote:
Hello all,
How can i make the Tomcat opens to my servlet once i call it, using this
call http://localhost:8080; ???
Basically this works, if you put a webapp context called ROOT into the
webapps directory.
You should have a look at the Tomcat default installation.
Prashant kumar wrote:
Hi All,
1) Is there any means by which GC takes less CPU, I mean that it
can take longer time to complete its one cycle (as memory is not a
constraint) ?
You've set quite a lot of heap 3400m. Do you really need that much
memory? The more you set, the more the
Vikas Jain wrote:
Hi,
I am using java server faces. My web server is Tomcat5.0.
I want to persist my session that is the session should continue until user
logs out. I don't want to do this task through session-config
session-timeout0/session-timeout
/session-config
in web.xml.
John D'Emic wrote:
Hey all,
Hi,
I have a custom Manager class I'm trying to use for a single webapp. It
seems the way to do this is to have a context.xml file in the exploded
webapp's META-INF directory. I have the following:
Well, META-INF/context.xml is the right place, but for a
Samuli Elomaa wrote:
Hi,
Is there any otherway for two servlets in same tomcat to communicate
together except by http requests? Eg. could two servlets use somekind
of shared memory? or send signals to each other?
Hi,
whatever others suggested, just use the Servlet Spec 2.3+ standard:
The
Marc Farrow wrote:
Tomcat 4 and Tomcat 5 changed a bit in the way they handle and load
contexts. I wouldn't suggest getting a Tomcat 4 book for a Tomcat 5
server. SAMS has a Tomcat 5 Unleashed which is pretty good, but I don't
think it covers Tomcat 5.5.
I read Professional Tomcat 5 (Wrox
keith wrote:
Hi all,
I'm wondering if anyone knows what are the advantages of running the
same web application in multiple instances of Tomcat on the same machine
(with a dual duo-core Intel processor).
Do having multiple instances affect performance positively or negatively
taking in to
Christopher Piggott wrote:
As an experiment, I placed a file in the webapp dir of a servlet (not in
WEB-INF but in the directory above it) and attempted to read it using
getResource(). What I found was that I could not locate the resource unless
I used getServletContext().getResource().
David Smith wrote:
most likely the shared classloader instead. If possible, move the
handler.jar from shared/lib to WEB-INF/lib of your webapp and the
problem should go away.
It took me a few minutes to realize that this was not a ClassNotFound
exception, but something else. Reading docs I
[EMAIL PROTECTED] wrote:
Hi,
Hi,
i upgrade recently my tomcat from 4.1 to 5.5.
I have some problem on deploy.
My application is made of about 200 servlet.
In the old tomcat version i specify a context element in server.xml and
all works in the right way.
In the new version this
George Sexton wrote:
-Original Message-
From: Duan, Nick [mailto:[EMAIL PROTECTED]
HttpSession should be implemented (it's just an interface). In fact,
the session attributes were implemented as a Hashtable in
tomcat, not a
Hashmap (just double checked the latest 5.5.15 src of tomcat).
GB Developer wrote:
Sessions are (never?) thread-safe. Which is perhaps one reason why
SingleThreadModel was deprecated. People thought by using that interface
that they would never have to worry about synch issues again.
The servlet spec 2.5 draft says in SRV 2.2.1. (should be similar in
Dakota Jack wrote:
Actually, any class with only local variables is always thread safe.
True for locals, but we were talking about instanceclass variables,
actually.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Michael Echerer wrote:
Dakota Jack wrote:
Actually, any class with only local variables is always thread safe.
True for locals, but we were talking about instanceclass variables,
actually.
You may of course still have instanceclass variables... ThreadLocals
(usually static) work fine
Christian Stalp wrote:
Hello out there,
I want to build a servelt which access a database. To avoid
race-conditions and to realize synchronous access, I decited to make a
Singe Thread Servlet. But Eclipse told me that this is no longer a
usable code.
Usually the best solution is to
Remy Maucherat wrote:
On 1/6/06, Michael Echerer [EMAIL PROTECTED] wrote:
In worst case you won't even achieve what you want using single thread
mode because according to the servlet specification servlet containers
are free to pool servlets, if it implements SingleThreadModel. Hence you
could
Randy Paries wrote:
I created a little test program(see below), and i get the following error
java com.unitnet.utils.testcolor
Just Before
Exception in thread main java.lang.UnsatisfiedLinkError:
/usr/java/j2sdk1.4.2_04/jre/lib/i386/libawt.so: libXp.so.6: cannot
open shared object file:
transaction. Could easily happen that someone else booked your
trip then, eventhough you got the confirmation... ;-)
Cheers,
Michael
ND
-Original Message-
From: Michael Echerer [mailto:[EMAIL PROTECTED]
Sent: Friday, January 06, 2006 11:52 AM
To: Tomcat Users List
Subject: Re: Single
25 matches
Mail list logo