1 Reply Latest reply on Oct 14, 2015 9:49 AM by krishna shyam samayamantula

    Same application is launched when multiple instance are created in Jboss

    Muhammed Saleeth Newbie

      I am using JBoss Application Server version 5.1.0.GA (Windows Server 2012 machine)


      I have created one more profile "node1" after copying the contents of  JBoss-5.1.0\server\default folder and renamed to node1.


      After copying I changed the contents of file "\JBoss-5.1.0\server\node1\bindingservice.beans\META-INF\bindings-jboss-beans.xml" as below


      <bean name="PortsDefaultBindings"  class="org.jboss.services.binding.impl.ServiceBindingSet">


               <!--  The name of the set -->


               <!-- Default host name -->


               <!-- The port offset -->


               <!-- Set of bindings to which the "offset by X" approach can't be applied -->





      Parameter I Set 100


      Also I edited the following file




      <attribute name="ServerPeerID">${jboss.messaging.ServerPeerID:1}</attribute>


      I set jboss.messaging.ServerPeerID:1


      I copied the myapplication1.ear(Develepment build) to JBoss-5.1.0\server\default\deploy path


      and also copied myapplication2.ear(Test build) to JBoss-5.1.0\server\node1\deploy path


      I started my two instances using the following command in two different command prompts


      run.bat -c default -b x.x.x.x

      run.bat -c node1 -b x.x.x.x.



      but when I launch my application using the following two URLS





      Both It is pointing to the same application myapplication1.ear( which is deployed in default instance).


      If I modify something in the Testing Data Base it is not reflected in http://x.x.x.x:8180/myapp, but it is reflected in   http://x.x.x.x:8080/myapp



      Can somebody help me regarding this?


      Is there anything i need to modify while creating multiple instance in same machine !