3 Replies Latest reply on Apr 24, 2007 6:42 AM by Pritam Ghosh

    Multiple Servers

    Robert Pike Newbie

      Where in the heck does one find the sample-bindings.xml file? I've been trying to set up multiple servers each on the same machine but using different ports and a few places I noticed reference to this file but can't find it anywhere. I had tried to copy my default directory (under server directory) to a new directory called serv1 and to change the port numbers to something different for serv1. Since most people in the docs refer to starting and stopping manually I wasn't sure what I should do since I have JBoss set up as a service. Order of what I'm looking for that will hopefully get this running :
      1) stop the service?
      2) then should I copy the default directory into a new directory and change whatever port numbers I need in there? Which files? In this doc it says
      "Modify conf/jboss-service.xml (or deploy/binding-service.xml in Version 4.0.3 and later) uncomment "Service Binding" section and select "ServerName?" value from sample-bindings.xml (for example, ports-01 or ports-02). This "ServerName" must be configured in the jboss-bindings.xml file and must be unique for each server instance: "
      3) how should I set up running the servers as services since there are multiple ones now?

      I would REALLY appreciate some help on this.


        • 1. Re: Multiple Servers
          Peter Johnson Master

          The example binding service file is located at docs/examples/binding-manager/sample-bindings.xml. (Hmm, did you install using the JEMS installer? If so, I'm not sure if you even get the docs directory. If you don't have docs, try downloading and unzipping the zip file instead, I know it is there.)

          Since you run the app server as a service, you will have to install two services, with two different service names (e.g., "jboss" and "jboss2"), each starting a different configuration.

          And you got the part about copying 'server/default' as 'server/serv1' correct, you would use "-c serv1" as part of the command to start up this configuration. And you should do this when it is not running.

          Hopefully this is enough to get you started. Give a holler if it doesn't.

          • 2. Re: Multiple Servers
            Robert Pike Newbie

            Thanks for all the helpful (and accurate) advice/information Peter. I was hoping you wouldn't say that about having 2 separate JBoss directories in order to have 2 separate services but you gotta do what you gotta do. Thanks again for all the help.


            • 3. Re: Multiple Servers
              Pritam Ghosh Newbie

              Hey. Does it mean we have to set this multiple instances during installation? Cant we add one more instance after the normal single instance installation?
              Thanks !!