3 Replies Latest reply on Nov 9, 2012 11:54 AM by tushar.kapila

    Configure multiple instances of JBoss5.1 in one physical machine

    ramkrishnagoli

      HI,

       

      I downloaded JBoss5.1 Server as a zip mode.

       

      I want to run two JBoss5.1 servers in a single physical machine.

       

      For this, I copied these JBoss5.1 zipped folders in two drives.

      I changed all the ports from in second once like 1099 -> 2099 and 1090 -> 2090 like.

      I changed the ports in the following files.

                

               1. jboss-5\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml

               2. jboss-5\server\default\deploy\jbossweb.sar\server.xml

               3. jboss-5\server\default\conf\jndi.properties

                          In this I added one more property key,value java.naming.provider.url=jnp://0.0.0.0:2099

       

      Now from the command prompts i am running two servers from individual command prompts,

       

      The two servers are starting successfully from command prompt. I didn't get any error in console.

       

      So i am making the request from application now,

       

      Here i am facing problem, is,

       

      The first request with the specified port number in (1099)going to hitting the corresponding and proper JBoss server (I was able to see the connection in command prompt.)

      And now i am making the request from same application with second port no (2099), even now also request is hitting the first JBoss server..

       

       

      Can Help me regarding this..

      Thanking you all.