Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / February 2005

Tip: Looking for answers? Try searching our database.

Sticky Tomcat Problem

Thread view: 
willirl - 14 Feb 2005 13:26 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?
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)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.