I thought this would be a JBoss FAQ, but I can’t find it.
I’d like to run JBoss 4 and JBoss 5 at the same time. I manually changed all the ports on the JBoss 5 server/default instance by changing the port’s leading digit to a 9, and it seems to work. I can start JBoss 4 and JBoss 5 with no port conflicts.
One of my colleagues said that he thought he had heard that there was a way to ‘rebase’ JBoss 5 to move all the port numbers by a specified amount. That would be a cleaner solution than manually editing the port settings.
Is there a simple way to change the port settings in JBoss 5 so it can run simultaneously with JBoss 4?
Two good answers. The IP alias is clever.
I also asked this question on the JBoss forums and it turns out that there are alternate port bindings that you can invoke (the ‘rebase’ option). Start JBoss like this:
Here’s the link to the thread on the JBoss forums (cross-referenced to this thread):