Hi All,
Just replying back to my own question hoping that this helps someone in search of similar stuff...
Add an entry <initialize-in-order>true</initialize-in-order> in the deployment descriptor like application.xml
Then place each module to be loaded in the order in which we want to have them loaded.
This resolves the issue.
BEWARE: This is applicable since
J2EE version 6 and above
Thanks!