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 Tomc
ead
count even though 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, Beta
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 m
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/
>
rs,
Michael
>
> my bias 2 bits on this topic
>
> peter
>
> On 6/1/06, Remy Maucherat <[EMAIL PROTECTED]> wrote:
>
>>
>> On 6/1/06, Michael Echerer <[EMAIL PROTECTED]> wrote:
>> > Danny Lee wrote:
>> > > Hi guys!
>> > >
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
handle SSL is faster than the Java implementation that Tomcat can offer.
IMHO for HTTP traf
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 org.apache.catalina.loader.WebappClassLo
[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 installat
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 t
Dirk Moolman wrote:
> A quick question about CATALINA_HOME and JAVA_HOME - I do not have both
> set in my profile on my server. I only set the JAVA_HOME - will this
> cause a problem for me in future ?
No... catalina.bat or .sh (at least TC 5.x+) can guess CATALINA_HOME by
simply checking what dir
Hi,
somehow I don't get it. Why not simply assume that JAVA_HOME is properly
set on every environment you want to run Tomcat? You need a proper Java
installation anyway. Then there should not be any need to "configure"
JAVA_HOME yourself.
It looks different in case you want to get independend als
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
> 0
>
>
>
> in web.xml.
>
>
>
> Any help will be highly appreciated...
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:
T
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, bu
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" (Wr
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 do
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().
>
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
> takin
[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 element in server.xml and
> all works in the right way.
>
> In the new version this configu
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 o
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 instance&class variables,
> actually.
You may of course still have instance&class variables...
Dakota Jack wrote:
> Actually, any class with only local variables is always thread safe.
>
True for locals, but we were talking about instance&class variables,
actually.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
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
ommitted, when doing lookups, inserts, updates wildly mixed
in one 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 PROTEC
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
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
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 sync
28 matches
Mail list logo