I would like to add that this we are trying on Jboss 4.2.2. It seems that the solutions are there in later versions of jboss. Like create the jmx name in first.war file and pick up the jmx name from jmx-console and then use it in jboss-web.xml of second.war file.
IS there any solution for jboss 4.2.2
Jboss 4.2.2 has jmx also, so you can register a service name when war1 is deployed and only deploy war2 if the service registered by war1 is available.
this is done using depends config
Sachine: Thanks much for your response. I really appreciate that you guys are spending your own valuable time for helping others.
Sorry for very late response on this thread, I almost forgot this question of mine. The way we solved this issue is why deploying the dependant war file into last.deploy directory in side the webApp. You should be able to find enough stuff on internet on this.