8 Replies Latest reply on Sep 22, 2004 8:43 AM by achayan

    Running 2 server configurations

    syam

      Hai
      Is it possible to start two jboss server configurations at the same time
      using run -c all & run -c default ? I want to deploy 2 applications in each of them and run..Is it possible..If yes what r the configuration files we need to change?Please help me
      Syam

        • 1. Re: Running 2 server configurations
          darranl

          Have a look around for information on the BindingService, this allows you to specify the ports to be used for multiple JBoss configurations so that they can be started concurrently.

          • 2. Re: Running 2 server configurations
            achayan

            Hi,

            I am also facing a similar problem. I need to run 2 instances of JBoss in 1 machine. Also I want to deploy the same appplication (ear) in these two servers with the only difference that the two applications point to two different databases.

            Is it possible to have 2 instance running on a single machine? Is it possible to deploy the same application in that with the above mentioned manner?

            Is it a right method? Can anybody suggest a better approach?

            Thanks in anticipation...
            achayan

            • 3. Re: Running 2 server configurations
              darranl

              Is it possible to run two instances of JBoss on one machine?

              Yes, look for information on the binding service.

              Can you run the same application on both instanced?

              Yes the two instances are not related to each other.

              • 4. Re: Running 2 server configurations
                syam

                Hi
                Thanks for ur response..Where we can find this binding sevice?Can u make it clear?
                Syam

                • 5. Re: Running 2 server configurations
                  frito

                  Read the conf/jboss-service.xml. It comes with an example.

                  • 6. Re: Running 2 server configurations

                    how would you shut down the second instance?

                    • 7. Re: Running 2 server configurations
                      syam

                      Hai
                      I tried it by giving different bindings..and now i am able to run 2 instances ..But accessing the 2nd application after running the first, it gives me a error like
                      javax.servlet.ServletException
                      at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:541)

                      • 8. Re: Running 2 server configurations
                        achayan

                        Hi darranl,

                        Thanks for the information. Does it mean that we have to change all the binding ports in the jboss-service.xml?

                        If we change the JNDI port, then the look up needs to be changed, right? If it is like that, can you give a sample code for that?

                        thanks,
                        achayan