Monica, thanks for changing your display name
As for the ports, is there any way other than running two instances of JBoss?
Good question! A little bit of digging led me to this wiki entry
VirtualHosts. In one of my
test setup with JBoss 4.0.5, i added the following to the existing server.xml:
Note the config marked in bold for port 9080. It wasnt present earlier, i just added to the file to figure out whether i am able to access the application deployed on JBoss now on both 8080 and 9080. I was able to.
In your question, you also mentioned that
and webApp1 cannot be accessed through 8180, and webApp2 not through 8180
I havent yet looked into this, whether this would be possible.
Alternately, instead of accessing the application on different ports, why not access the application using 2 different hosts (virtual hosts). Something like for app1
http://www.myapp1.com and for app2
http://www.myapp2.com. If this approach is OK for you, then look into the same virtual hosts wiki article that i posted above. This way your webapp1 wont be available on
www.myapp2.com and webapp2 wont be available on
www.myapp1.com. I havent personally tried any of these, so not sure if you are going to run into any issues. But this should atleast give you a start. Let us know if you run into any issues.
[ July 24, 2007: Message edited by: Jaikiran Pai ]