3 Replies Latest reply on Jan 9, 2007 1:45 AM by lamas

    Start up 2 JBoss in same machine

    lamas

      Is it possible to start up more than one JBoss in same machine and make them work perfectly?

      The situation is like that:
      I need one JBoss A that have high authority that can manipulate all files. The other JBoss B only have limited permission that only can manipulate files in a guest folder. of-course, that is application in JBoss to manipulate the things. the first JBoss would have Web app. Two JBoss would communicate with RMI calling.
      i am using window2003

      Things have done:
      with 2 windows account that having different permission. One for A and One for B.
      and 2 copy of JBoss that for these 2 account.

      I know i have to use different ports for these service in 2 Jboss, but I want to know what are them, especially when i want to use the EJB in both JBoss.
      Besides the ports, are there another things I have to take care to run 2 Jboss in same machine with full funcionality?

        • 1. Re: Start up 2 JBoss in same machine
          kalimero

          This ports are used in JBoss 4.0.5 GA (all we are using)

          default

          deploy/naming.sar/META-INF/jboss-service.xml <attribute name="Port">***NamingService.Port***</attribute>
          deploy/naming.sar/META-INF/jboss-service.xml <attribute name="RmiPort">***NamingService.RmiPort***</attribute>
          


          tomcat
          deploy/jbossweb-tomcat55.sar/server.xml: <Connector port="***StandardService.port***" address="${jboss.bind.address}"
          deploy/jbossweb-tomcat55.sar/server.xml: enableLookups="false" redirectPort="***StandardService.redirectPort***" acceptCount="100"
          
          if using AJP13 correct 8009 and 8443:
          <!--
          <Connector port="8009" address="${jboss.bind.address}"
           emptySessionPath="true" enableLookups="false" redirectPort="8443"
           protocol="AJP/1.3"/>
          -->
          


          Classloading, Naming, etc...
          deploy/dynclassloader-service.xml: <attribute name="Port">***dynclassloader.Port***</attribute>
          deploy/invokers-service.xml: <attribute name="RMIObjectPort">***JRMPInvoker.RMIObjectPort***</attribute>
          deploy/invokers-service.xml: <attribute name="ServerBindPort">***PooledInvoker.ServerBindPort***</attribute>
          


          Hibernate
          if using ejb3 (hibernate)
          deploy/ejb3.deployer/META-INF/jboss-service.xml: <attribute name="InvokerLocator">socket://${jboss.bind.address}:***ejb3deployer.port***</attribute>
          


          Default ports
          ***NamingService.Port*** - 1099
          ***NamingService.RmiPort*** - 1098
          ***StandardService.port*** - 8080
          ***StandardService.redirectPort*** - 8443
          ***dynclassloader.Port*** - 8083
          ***JRMPInvoker.RMIObjectPort*** - 4444
          ***PooledInvoker.ServerBindPort*** - 4445
          ***ejb3deployer.port*** - 8873
          


          lg
          Wolfgang

          • 2. Re: Start up 2 JBoss in same machine
            peterj

            Look at the ./docs/examples/binding-manager/sample-bindings.xml file. It simplifies setting ports for 2 servers.

            The other option for running two servers is to bind each to its own IP address. Of course, you need to either be able to assign multiple IP addresses to a NIC, or have multiple NICs. Then each server can use the same ports, just different addresses.

            • 3. Re: Start up 2 JBoss in same machine
              lamas

              Thanks very much!!! it works perfectly~~