Skip to content

Commit

Permalink
[WFCORE-4551] Configure JDBC Realm services to LAZY initial mode when…
Browse files Browse the repository at this point in the history
… in admin only mode
  • Loading branch information
ashley-abdelsayed98 committed Aug 2, 2019
1 parent b7b7810 commit 8060460
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.jboss.as.controller.OperationStepHandler;
import org.jboss.as.controller.PathElement;
import org.jboss.as.controller.ResourceDefinition;
import org.jboss.as.controller.RunningMode;
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.as.controller.SimpleAttributeDefinitionBuilder;
import org.jboss.as.controller.SimpleResourceDefinition;
Expand Down Expand Up @@ -630,7 +631,7 @@ public void uninject() {
}

commonDependencies(serviceBuilder)
.setInitialMode(ServiceController.Mode.ACTIVE)
.setInitialMode(context.getRunningMode() == RunningMode.ADMIN_ONLY ? ServiceController.Mode.LAZY : ServiceController.Mode.ACTIVE)
.install();
}

Expand Down

0 comments on commit 8060460

Please sign in to comment.