-
1. Re: Possible to use two port numbers on one Tomcat?
afedoren Mar 31, 2006 2:49 AM (in response to gus888)network or sysadmin could do it, for example using port forwarding
-
2. Re: Possible to use two port numbers on one Tomcat?
cpaul_it May 31, 2006 4:12 PM (in response to gus888)In the server.xml config file, you can specify additional connectors so that Tomcat listens on more than one port. For our dev servers, we have both secure and non-secure connectors listen on different ports. Works great!
-
3. Re: Possible to use two port numbers on one Tomcat?
new4jboss Jun 6, 2006 9:43 AM (in response to gus888)Hello cpaul_it,
That's exactly what I'm looking for!!! Can you share some config info ? Most importantly, can you give me some pointers about how to tell jboss that a certain webapp should be published in a certain connector ?
Thank you very much -
4. Re: Possible to use two port numbers on one Tomcat?
visolvejboss Jun 8, 2006 2:26 AM (in response to gus888)Hello,
To make two ports point to the same server we need to edit the server.xml file in the
path: /deploy/jbossweb-tomcat55.sar
We have to add additionally one more connector with the required port number.
Already server.xml file has,<Connector port="5050" address="${jboss.bind.address}" maxThreads="250" strategy="ms" maxHttpHeaderSize="8192" emptySessionPath="true" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true"/>
Just need to add the following lines,<Connector port="5051" address="${jboss.bind.address}" maxThreads="250" strategy="ms" maxHttpHeaderSize="8192" emptySessionPath="true" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true"/>
Now, the server has point to two ports 5050 and 5051.
Regards,
Visolve JBoss Team. -
5. Re: Possible to use two port numbers on one Tomcat?
new4jboss Jun 8, 2006 4:39 AM (in response to gus888)Hello,
Thank you so much for the config info. Do you have any idea of how to setup two webapps to be published via these two different connectors ? That would make webapp A available thru connector X and webapp B available thru connector Y. My webapps are webservices but for now I just want to keep things simple, so that people can find it a litle less dificult to help me. I know people's time is a scarce resource but must really depend on outside help for this. I'm completely stuck and have a deadline approaching:(
Thank you very much. -
6. Re: Possible to use two port numbers on one Tomcat?
new4jboss Jun 8, 2006 7:32 AM (in response to gus888)I seem to have solved this but keep needing help.
check
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949816#3949816 -
7. Re: Possible to use two port numbers on one Tomcat?
javidjamae Jun 19, 2006 12:53 PM (in response to gus888)Do you have to maintain the two different port numbers? Can you not just assign them different host names?
For example, set them up as app1.myhost.com and app2.myhost.com and then set up two virtual hosts in the server.xml file and point each app to a virtual host configuration in the jboss-web.xml file.