4 Replies Latest reply on Mar 24, 2006 12:58 PM by ilango gurusamy

    Can I have a separate Instance of JBoss on the same machine

    ilango gurusamy Novice

      Hi
      I wish to have another instance of JBoss portal running on my machine. On this other instance I would like to able to use the source of the Portal and build the portal each time I make changes to the code.
      I want to keep the present instance running to continuously test and run my portlets. I would like to play with the other instance so I can try to modify the Portal from source.

      Is this something that is possible.
      I would like to thank all the kind and hard-working souls here who help me out.


      thanks a lot

        • 1. Re: Can I have a separate Instance of JBoss on the same mach
          Jouni Rajala Newbie

          Yes you can, but you need unique set of ports of second instance. I decided that each server is going to have portblock like
          1xx00 where xx in server instance number. So my first server starts all ports
          in 10100 and my last server would start ports in 19900. I don't think that i can ever run more than 99 servers in single host anyway ;)

          In your ../deploy/jbossweb-tomcat55.sar/server.xml you need to define
          new ports for connectors. I modified HTTP/1.1 and AJP1.3 connectors. These i have
          10100 HTTP
          10101 AJP1.3

          Then you need to modify JBoss ports. in ../conf/jboss-service.xml you have lots of ports. Just search for word 'port' in that document and set ports from 10102+. I have:
          10102 WebService port
          10103 Naming port
          10104 RMI port
          10105 RMI Objectport
          10106 ServerBindPort
          0 ClientConnectPort (i don't know what this is)

          And as last thing you need to configure JMS service ports if you have it deployed. in ../deploy/jms/uil2-service.xml I jave set
          10107 ServerBindPort

          I have create NAT rule in my firewall that redirects HTTP traffic incoming to port 80 to port 10100 to make it work. Of course you can configure that port to one you are going to use in the first place.

          I hope i didn't miss any ports.



          • 2. Re: Can I have a separate Instance of JBoss on the same mach
            Thomas Heute Master

            To do that without having to edit multiple files, you can also simply use the Service Binding manager.

            Edit the default/conf/jboss-service.xml file and uncomment that service on one of the 2 instances.

            You can use the StoreURL that is already specified if you want or create your own.

            • 3. Re: Can I have a separate Instance of JBoss on the same mach
              ilango gurusamy Novice

               

              "keletappi" wrote:
              Yes you can, but you need unique set of ports of second instance. I decided that each server is going to have portblock like
              1xx00 where xx in server instance number. So my first server starts all ports
              in 10100 and my last server would start ports in 19900. I don't think that i can ever run more than 99 servers in single host anyway ;)

              In your ../deploy/jbossweb-tomcat55.sar/server.xml you need to define
              new ports for connectors. I modified HTTP/1.1 and AJP1.3 connectors. These i have
              10100 HTTP
              10101 AJP1.3

              Then you need to modify JBoss ports. in ../conf/jboss-service.xml you have lots of ports. Just search for word 'port' in that document and set ports from 10102+. I have:
              10102 WebService port
              10103 Naming port
              10104 RMI port
              10105 RMI Objectport
              10106 ServerBindPort
              0 ClientConnectPort (i don't know what this is)

              And as last thing you need to configure JMS service ports if you have it deployed. in ../deploy/jms/uil2-service.xml I jave set
              10107 ServerBindPort

              I have create NAT rule in my firewall that redirects HTTP traffic incoming to port 80 to port 10100 to make it work. Of course you can configure that port to one you are going to use in the first place.

              I hope i didn't miss any ports.






              Thanks a lot. I will try out your suggestions today. I really appreciate your help a lot




              • 4. Re: Can I have a separate Instance of JBoss on the same mach
                ilango gurusamy Novice

                 

                "thomas.heute@jboss.com" wrote:
                To do that without having to edit multiple files, you can also simply use the Service Binding manager.

                Edit the default/conf/jboss-service.xml file and uncomment that service on one of the 2 instances.

                You can use the StoreURL that is already specified if you want or create your own.


                Hi Thomas
                Thanks a lot. Next time I will not forget to use
                . I regret the error.