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 / General / April 2007

Tip: Looking for answers? Try searching our database.

Selecting different ports on Tomcat

Thread view: 
ruds - 13 Apr 2007 06:24 GMT
Hi,
I'm using Tomcat4.1 version for running my applications.
I have three different applications which i need to deploy on tomcat.
The port i'm using is the default port i.e 8080.
Can i have different ports for different applications?
How do i do this?
Philipp Leitner - 13 Apr 2007 09:29 GMT
> Can i have different ports for different applications?
> How do i do this?

I am not sure if this is possible using Tomcat configuration only, but
what you could do is add a number of different connectors (i.e. a
connector at 8080 for app1, one at 8081 for app2 ...) and check in
your code if the application has been accessed via the right port.

Note that this workaround has at least one major drawback: you cannot
map a single URL to more than one application, ie. you cannot have

http://myserver.com:[8080|8081|...]/

map to more than one application.

/philipp
Lew - 14 Apr 2007 00:51 GMT
ruds wrote:
>> Can i have different ports for different applications?
>> How do i do this?

> I am not sure if this is possible using Tomcat configuration only, but

Use a web server like Apache Web Server, and let it handle port assignments.

Why do you want to use different ports for different applications?  Is there a
problem with using only one port?

Signature

Lew

ruds - 17 Apr 2007 05:14 GMT
> Why do you want to use different ports for different applications?  Is there a
> problem with using only one port?
>
> --
> Lew

My applications have a lot of transactions carried on them so i want
different ports for different applications.
Thankx all for ur suggestions..
I used Conectors for different applications.
Lew - 17 Apr 2007 12:35 GMT
Lew <l...@nospam.lewscanon.com> wrote:
>> Why do you want to use different ports for different applications?  Is there a
>> problem with using only one port?

> My applications have a lot of transactions carried on them so i want
> different ports for different applications.

How does using different ports affect how many transactions you can carry out?

Signature

Lew



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



©2009 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.