I have created two EARs a1.ear and a2.ear. These two EARs are deployed on WildFly server S1 and S2.
S1 and S2 servers are on different machines having different IP addresses.
Wildfly server S1 => a1.ear, a2.ear
Wildfly server S2 => a1.ear, a2.ear
In S1: a1.ear has exposed certain objects and a2.ear looks up that remote object of a1.ear and it successfully gets the object. It always gets the object from a1.ear deployed on S1 server. I need remote object deployed on S2 server. Please let me know how to get it.