RE: Servlet inter-communication

2006-05-03 Thread Thomas Bolding
Indeed. If it is within the same context this is trivial - look into singleton design pattern. If the servlets are from different contexts you will have to enable crosscontext in your server.xml I assume. In any case be aware of race conditions/dead locks - Java5.0 has new semaphore types which mi

RE: Re: How can I configure Tomcat to call init() of Servlet?

2006-04-02 Thread Thomas Bolding
True, but if you need a general initialization mechanism look into servlet context listeners Regards Thomas -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Konrad Billewicz Sent: 2. april 2006 01:07 To: users@tomcat.apache.org Subject: Re: How can I configure Tomcat t

RE: IIS Integrated Authentification and Tomcat

2006-03-27 Thread Thomas Bolding
You may use request.getRemoteUser() to have domain and userid returned as a String object. Just add tomcatAuthentication="false" to the Connector element in your server.xml file. By the way - Tomcat is NOT a full J2EE server but a Servlet container (is does not support EJBs for instance) Rega

RE: running two instances of tomcat

2006-03-24 Thread Thomas Bolding
There might definetely be an easier way but I did just that: i) installed the exe ii) unzipped a number of Tomcat into other folders iii) copied exe and dll into those folders iv) modified ports for the zipped versions of server.xml and ran "service install ..." The original exe you can either re

RE: Run Tomcat in W2k3 as service

2006-03-24 Thread Thomas Bolding
k -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -XX:+DisableExplicitGC -Djava.awt.headless=true call "%CATALINA_HOME%\bin\catalina.bat" run -security -Original Message----- From: Thomas Bolding [mailto:[EMAIL PROTECTED] Sent: 24. mart

RE: Run Tomcat in W2k3 as service

2006-03-24 Thread Thomas Bolding
Yes indeed and its quite easy! If you're running it as a service (either installed the exe or ran the "service install ..." from the zip version) you will have a [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters] in your registry (where Tomcat5 is the name give