I'm going to have to explain in JRun terms the first part and then ask how close this can be accomplished in JBoss. JRun allows multiple servers to be set up whereby the directories look like this JRun/servers/server1/default-ejb/default-war/..., JRun/servers/server2/....
How can I accomplish the same thing here? Whereby one server might be accessed like mycomputer:8011/ and the other like mycomputer:8022/. Can this be done using (saw in one doc) nodes or is there another way that should/can be taken? Any helpful advice/info/links to other docs on how to set it up this way would be appreciated. Thanks in advance.
in the $JBOSS-INSTALL-DIR\server\ directory is where you put your server configurations. So you can copy the default directory and give it another name. so instead of just calling the run.bat you call "run -c myNewDirName"
The big thing with these "nodes" is making sure the port numbers are not being "shared" you can use the Service Binding Manager to handle that for you. For that you need to go to jboss.org to read up on how to set this up. It is not that difficult.
Hi Mark, Thanks for the response. If I copy the default directory into one (let's say serv1) I then have to change the port numbers within the new server directory. Do you happen to have a listing of where the port number needs to be changed? I've searched JBoss' site and keep finding a lot of (I think might be) unrelated information for the Service Binding Manager. Do I need to install this separately? I couldn't find anything telling me that it needed to be installed. If you happen to have additional info related to this or some good links could you pass them by me. Thanks so much for the response and help.
posted 12 years ago
Hi Mark/All, I thought the Service Binding Manager was a separate application first off. I've uncommented the binding manager section in both the default server and the one I created (in the C:\JBoss\server\xxx\conf\jboss-server.xml). In the default server, I set the binding manager to <attribute name="ServerName">ports-default</attribute> and the one I copied to <attribute name="ServerName">ports-01</attribute>. I had JBoss set up to run as a service using JavaService before attempting any of this. I stopped the JBoss service after making these changes. Before I used to be able to access JBoss' welcome page using localhost:8080/. I re-started the JBoss service and now I get nothing by typing it in. What other steps do I need to perform? I appreciate the help and post this in the case I can't find anything searching or in hopes someone has a response quicker. Thanks again in advance.
Well, You have found the right thing. ServiceBinding Manager is the way to go. Actually, you can have just the second server uncomment the binding manager, and keep the other commented out. So the one commented out would use the default ports anyway.