[
https://issues.jboss.org/browse/AS7-5707?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler edited comment on AS7-5707 at 10/10/12 10:10 AM:
----------------------------------------------------------------
{code}
// Defer the {@link Phase.FIRST_MODULE_USE} phase
if (nextPhase == Phase.FIRST_MODULE_USE) {
// Always make the EAR LAZY if it could contain deferrable sub-deployments
if (subDeployments.size() > 0 && mayContainDeferrables) {
DEPLOYMENT_LOGGER.infoDeferModulePhase(name, Mode.LAZY);
phaseServiceBuilder.setInitialMode(Mode.LAZY);
}
List<String> deferredModules =
DeploymentUtils.getDeferredModules(deploymentUnit);
if (deferredModules.size() > 0) {
if (deferredModules.contains(name)) {
// Make the deferred module NEVER
DEPLOYMENT_LOGGER.infoDeferModulePhase(name, Mode.NEVER);
phaseServiceBuilder.setInitialMode(Mode.NEVER);
} else {
// Make the non-deferred sibling PASSIVE
DEPLOYMENT_LOGGER.infoDeferModulePhase(name, Mode.PASSIVE);
phaseServiceBuilder.setInitialMode(Mode.PASSIVE);
}
}
}
{code}
{code}
Running org.jboss.as.test.integration.osgi.deployment.DeferredResolveTestCase
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.987 sec
{code}
was (Author: thomas.diesler):
{code}
// Defer the {@link Phase.FIRST_MODULE_USE} phase
if (nextPhase == Phase.FIRST_MODULE_USE) {
// Always make the EAR LAZY if it could contain deferrable
sub-deployments
if (subDeployments.size() > 0 && mayContainDeferrables) {
DEPLOYMENT_LOGGER.infoDeferModulePhase(name, Mode.LAZY);
phaseServiceBuilder.setInitialMode(Mode.LAZY);
}
List<String> deferredModules =
DeploymentUtils.getDeferredModules(deploymentUnit);
if (deferredModules.size() > 0) {
if (deferredModules.contains(name)) {
// Make the deferred module NEVER
DEPLOYMENT_LOGGER.infoDeferModulePhase(name, Mode.NEVER);
phaseServiceBuilder.setInitialMode(Mode.NEVER);
} else {
// Make the non-deferred sibling PASSIVE
DEPLOYMENT_LOGGER.infoDeferModulePhase(name, Mode.PASSIVE);
phaseServiceBuilder.setInitialMode(Mode.PASSIVE);
}
}
}
{code}
{code}
Running org.jboss.as.test.integration.osgi.deployment.DeferredResolveTestCase
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.987 sec
{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.Alpha1
--
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