I have a legacy server application that opens a port (41991) and waits
for requests. I'm moving this to a servlet that will run under Tomcat
(hopefully)
Is it possible to ask Tomcat to watch port 41991 for requests as well
as the normal 8080?
SMC - 15 Feb 2005 00:10 GMT
> I have a legacy server application that opens a port (41991) and waits
> for requests. I'm moving this to a servlet that will run under Tomcat
> (hopefully)
>
> Is it possible to ask Tomcat to watch port 41991 for requests as well as
> the normal 8080?
Yes. You can have multiple "Connectors" listening on different ports. See
the connectors section of
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html
We have 3 in fact, listening on 8080, 8081, and 8082. You list the
Connector definitions one after the other in your server.xml
configuration file.

Signature
Sean
One has to look out for engineers - they begin with sewing machines and
end up with the atomic bomb. --Marcel Pagnol
Juha Laiho - 16 Feb 2005 20:44 GMT
"willirl" <willirl@usa.net> said:
>I have a legacy server application that opens a port (41991) and waits
>for requests. I'm moving this to a servlet that will run under Tomcat
>(hopefully)
>
>Is it possible to ask Tomcat to watch port 41991 for requests as well
>as the normal 8080?
You an change the port number, but Tomcat will still expect HTTP requests
on the port - whichever the number. Is the legacy app using HTTP for
communication, or is the protocol proprietary to the application?

Signature
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)