1 of 1 people found this helpful
What you mean with "when library.jar will be fully initialized"? Does library.jar contain EJBs or something else?
Then do not put it into lib folder but just into the root folder or some else folder and declare it as a module like you did.
JBoss / WildFly will handle the dependencies usually without any further declarations.
lib folder of ear should only contain simple jars needed by your application, meaning the modules of the ear.
I'm tried now. <initialize-in-order>true</initialize-in-order> not worked. In first java module I have spring context with JMX parameters. They should be fully initialized. In second war module I have another spring context, which using mbeans. But I have InstanceNotFoundException in deployment. How to fix it?
Anybody can help me?