JBoss Community

Re: can I avoid a service to block as7 startup ?

created by Jason Greene in JBoss AS7 Development - View the full discussion

Dan Sirbu wrote:

 

 

     moduleSpecification.addSystemDependency(dep);

 

 

 

 

 

where myModule is the blocking service. Then if service still blocks at deployment, then all deployments would fail until the service is up, right ?

 

No. A module dependency is NOT a service dependency. A module dependency has to do with linking of of classloading, and assumes that the dependency exists in some location. A service dependency controls start order, lifecycle control, and injection.

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community