Re: disabling session management

2010-10-14 Thread Michael Echerer
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

Re: Running schduled jobs

2009-07-11 Thread Michael Echerer
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

mod_jk: Expected behaviour for ajp-pool currentThreadCount

2008-12-12 Thread Michael Echerer
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

Re: Performance monitoring for web applications

2006-09-10 Thread Michael Echerer
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

Re: Tomcat 5.5 Load Balancing Rule Classes

2006-07-10 Thread Michael Echerer
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/ -

Re: Tomcat as a standalone webserver. Why not?

2006-06-02 Thread Michael Echerer
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

Re: servlet api problem

2006-05-28 Thread Michael Echerer
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

Re: Advice me

2006-05-27 Thread Michael Echerer
[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.

Re: problem in GC tuning

2006-05-26 Thread Michael Echerer
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

Re: how to persist a session

2006-05-25 Thread Michael Echerer
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.

Re: META-INF/context.xml and custom Manager

2006-05-06 Thread Michael Echerer
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

Re: Servlet inter-communication

2006-05-06 Thread Michael Echerer
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

Re: Tomcat: The Definitive Guide Question

2006-05-05 Thread Michael Echerer
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

Re: Multiple instances of Tomcat on same machine

2006-05-01 Thread Michael Echerer
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

Re: Classloading questions

2006-05-01 Thread Michael Echerer
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().

Re: Class loading from within a servlet: interface definition not found

2006-05-01 Thread Michael Echerer
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

Re: Tomcat 5.5 Deply Multi-Servlet

2006-02-19 Thread Michael Echerer
[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

Re: Single Thread is deprecated?

2006-01-09 Thread Michael Echerer
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).

Re: Single Thread is deprecated?

2006-01-07 Thread Michael Echerer
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

Re: Single Thread is deprecated?

2006-01-07 Thread Michael Echerer
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

Re: Single Thread is deprecated?

2006-01-07 Thread Michael Echerer
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

Re: Single Thread is deprecated?

2006-01-06 Thread Michael Echerer
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

Re: Single Thread is deprecated?

2006-01-06 Thread Michael Echerer
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

Re: Please help, i have to be missing something very simple

2006-01-06 Thread Michael Echerer
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:

Re: Single Thread is deprecated?

2006-01-06 Thread Michael Echerer
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