[
https://issues.jboss.org/browse/AS7-5707?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler commented on AS7-5707:
-------------------------------------
The most promising approach to support deferred sub deployments was this one
{code}
// Defer the {@link Phase.FIRST_MODULE_USE} phase
List<String> deferredModules =
DeploymentUtils.getDeferredModules(deploymentUnit);
if (deferredModules.size() > 0) {
if (nextPhase == Phase.FIRST_MODULE_USE) {
if (deferredModules.contains(name)) {
DEPLOYMENT_LOGGER.infoDeferredModulePhase(name);
phaseServiceBuilder.setInitialMode(Mode.NEVER);
} else {
DEPLOYMENT_LOGGER.infoDeferredModulePhase(name);
phaseServiceBuilder.setInitialMode(Mode.PASSIVE);
}
if (parent != null) {
ServiceName parentPhaseServiceName =
Services.deploymentUnitName(parent.getName(), nextPhase);
ServiceController<?> parentPhaseService =
container.getRequiredService(parentPhaseServiceName);
parentPhaseService.setMode(Mode.PASSIVE);
}
}
}
{code}
Add support for deferred module phase for sub deployments
---------------------------------------------------------
Key: AS7-5707
URL:
https://issues.jboss.org/browse/AS7-5707
Project: Application Server 7
Issue Type: Feature Request
Components: OSGi
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 7.2.0.CR1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira