Tomcat with non-HTTP proprietary TCP

2007-05-16 Thread raine king
Hi,I would like to replace a particular legacy component in our system with a 
re-written Java component running on tomcat.  The old component communicates 
with other components over TCP via a proprietary 3-step protocol.  As other 
components in the system are replaced, I would like to move the to a 
combination of SOAP and HTTP Posts of XML files for implementing this 
communication.  In the mean time, however, I would like my application to 
continue to support the old protocol.1) It seems that the default behaviour of 
tomcat is to work with HTTP requests.  Is there a way to get it to accept a 
proprietary protocol over TCP (i.e. no HTTP Headers)?2) Additionally, i know 
how to build a stateless servlet in Tomcat.  This, however, will need to be a 
statefull one.  What's the best way to keep track of the data for all the 
active sessions?Thanks in advance,kingraine
_
Create the ultimate e-mail address book. Import your contacts to Windows Live 
Hotmail.
www.windowslive-hotmail.com/learnmore/managemail2.html?locale=en-usocid=TXT_TAGLM_HMWL_reten_impcont_0507

Re: Tomcat mysteriously shuts down

2007-02-19 Thread raine king

OK I figured it out:

Me and a couple testers were all running versions of Tomcat and once in a 
while we would use the same machine, and we hadn't changed the shutdown 
port/message(server.xml) so we were occasionally shutting down one another's 
Tomcats with shutdown.sh!


Thanks everyone for you're help.


From: raine king [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: users@tomcat.apache.org
Subject: Re: Tomcat mysteriously shuts down
Date: Thu, 15 Feb 2007 13:55:19 +

Hmm this may actually be working--I changed the port and so far it hasn't 
shutdown--I'll leave it over the weekend and see what happens...


How do I check if another app is sending Tomcat messages?  Does tomcat log 
somewhere who it got SHUTDOWN commands from?


As for the second bit--I installed tomcat myself.


From: David Delbecq [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat mysteriously shuts down
Date: Thu, 15 Feb 2007 14:08:33 +0100

Normally, tomcat shutsdown  is a localhost running application sends a
shutdown command to the localhost server command port (8005). You can
try to change this port, in case another app is doing this. (replace
server element in server.xml by server port=8555 for example.
You can also try to change to change the shutdown command
server shutdown=TEST_SHUTDOWN_TEST
Also, did you install tomcat manually or using redhat distribution. It
may be that some redhat tools are configured to remove from memory
inactive servers (i have never heard of this, but it wouldn't be the
first oddity of tomcat/redhat :p)


En l'instant précis du 02/15/07 13:33, Nadav Steindler s'exprimait en
ces termes:

 That's just it--there's nothing wierd in the catalina.out it just has:

 1) The lines for starting up tomcat
 2) The log messages for my servlet
 3) The bit I showed you where the servlet shuts down when I stopped
 sending it messages for a few minutes

 There's no errors or anything in the log.



 By the way, this is repeatable--I just let Tomcat sit without sending
 it anything for 7-15 minutes and it shuts down.

 ALSO I just noticed it only happens on our Linux Redhat 4 machine--not
 on the Redhat 3 machine which we have used until now. (We are trying
 to move the product to Redhat 4 with the Java5 JVM--so far this has
 just meant configuring tomcat to use the Java5 jvm)

 The environment where Tomcat shuts down unexpectedly is:
 Machine - RH 4
 Java - /usr/java/jdk1.5.0_06
 Tomacat - jakarta-tomcat-5.0.28

 The one where it works normally is:
 Machine - RH 3
 Java - /usr/lib/jvm/java-1.4.2-ibm-1.4.2.0
 Tomacat - jakarta-tomcat-5.0.28

 I'm running the exact same copy of the servlet and Tomcat, just on a
 different machine running off a shared hard disk--  I just change a
 line in the catalina.out to use the Java5 JVM on the RedHat 4 machine.






 From: Andre Prasetya [EMAIL PROTECTED]
 Reply-To: Tomcat Users List users@tomcat.apache.org
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Tomcat mysteriously shuts down
 Date: Thu, 15 Feb 2007 17:56:22 +0700

 why dont you post the catalina.out entry before pausing coyote ? the 
one

 that you post is the regular log for shutting down tomcat

 On 2/15/07, Nadav Steindler [EMAIL PROTECTED] wrote:

 When my servlet isn't sent any requests for about 15 minutes, tomcat
 shuts
 down.  In particular:

 1) The Tomcat process no longer appears when I do ps
 2) The catalina.out ends with:

 Feb 14, 2007 2:12:38 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-9007
 Feb 14, 2007 2:12:39 PM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 Feb 14, 2007 2:12:39 PM
 org.apache.catalina.core.StandardHostDeployerremove
 INFO: Removing web application at context path /myservlet
 Feb 14, 2007 2:12:39 PM
 org.apache.catalina.core.StandardHostDeployerremove
 INFO: Removing web application at context path /myservlet2
 Feb 14, 2007 2:12:39 PM
 org.apache.catalina.core.StandardHostDeployerremove
 INFO: Removing web application at context path /admin
 Feb 14, 2007 2:12:39 PM org.apache.catalina.logger.LoggerBase stop
 INFO: unregistering logger
 Catalina:type=Logger,path=/admin,host=localhost
 Feb 14, 2007 2:12:39 PM
 org.apache.catalina.core.StandardHostDeployerremove
 INFO: Removing web application at context path /webdav
 Feb 14, 2007 2:12:39 PM
 org.apache.catalina.core.StandardHostDeployerremove
 INFO: Removing web application at context path /servlets-examples
 Feb 14, 2007 2:12:39 PM
 org.apache.catalina.core.StandardHostDeployerremove
 INFO: Removing web application at context path /jsp-examples
 Feb 14, 2007 2:12:39 PM
 org.apache.catalina.core.StandardHostDeployerremove
 INFO: Removing web application at context path /balancer
 Feb 14, 2007 2:12:39 PM
 org.apache.catalina.core.StandardHostDeployerremove
 INFO: Removing web application at context path /myservlet3
 Feb 14, 2007 2