-
1. Re: How to run same application in 2 different ports
peterj Jun 25, 2012 1:35 PM (in response to bluelabel)You should be able to run the exact same application in two ports by defining an additional port in server/xxx/deploy/jbossweb.sar/server.xml - just copy the Connection entry for port 8080 and change the port number (replace the ${jboss.web.http.port} property referenc with a hard port number). Example:
<Connector protocol="HTTP/1.1" port="9090" address="${jboss.bind.address}" redirectPort="${jboss.web.https.port}" /> However, this will not give you a "development" app and a "testing" app - they will both be the exact same app.
If you really want a "development" vs. "testing" environment, you will have to run two copies of JBoss AS.
-
2. Re: How to run same application in 2 different ports
bluelabel Jun 25, 2012 1:57 PM (in response to peterj)Thanks peter for quicke response, well my requirement is to run 2 copies of same app. Because my development work should not be affected to qa team to test the application.appriciate if you could guide me how to run 2 copies of Jboss AS in one machine, I can set up 2 mysql servers for both application, i am running the current Jboss in linux.I can get sys admin to map the ports in to 2 differnet urls.
EG: JBoss 1 runs in 8080 >>> http://dev.abc.com
JBoss 2 runs in 8180 >>> http://qa.abc.com
-
3. Re: How to run same application in 2 different ports
peterj Jun 26, 2012 10:36 AM (in response to bluelabel)You need to run two copies of JBoss AS. The link on the binding manager that you provided gives the recommend process. There are more ports than just port 8080 that you must ensure are unique, and the binding manager enables you to set all of the ports at once.