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">
<constructor>
<!-- The name of the set -->
<parameter>ports-default</parameter>
<!-- Default host name -->
<parameter>${jboss.bind.address}</parameter>
<!-- The port offset -->
<parameter>100</parameter>
<!-- Set of bindings to which the "offset by X" approach can't be applied -->
<parameter><null/></parameter>
</constructor>
</bean>
Parameter I Set 100
Also I edited the following file
JBoss-5.1.0\server\node1\deploy\messaging\messaging-service.xml
<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 !
Hi,
Please let me know, if any resolution for above problem. Thanks. Currently I am also facing this error.
Thank you,
Regards,
S.K Shyam.