Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/server/src/main/java/org/jboss/as/server/operations/NativeManagementWriteAttributeHandler.java b/server/src/main/java/org/jboss/as/server/operations/NativeManagementWriteAttributeHandl
- index aec0bc2..9f999ab 100644
- --- a/server/src/main/java/org/jboss/as/server/operations/NativeManagementWriteAttributeHandler.java
- +++ b/server/src/main/java/org/jboss/as/server/operations/NativeManagementWriteAttributeHandler.java
- @@ -96,12 +96,12 @@ public class NativeManagementWriteAttributeHandler extends AbstractWriteAttribut
- private void installNativeManagementService(final OperationContext context, final ModelNode subModel, final ServiceVerificationHandler verificationHandler) throws OperationFailedException {
- // Remove the old connector
- - final ModelNode portNode = NativeManagementResourceDefinition.NATIVE_PORT.resolveModelAttribute(context, subModel);
- - int port = portNode.isDefined() ? portNode.asInt() : 0;
- + final ModelNode socketBinding = NativeManagementResourceDefinition.SOCKET_BINDING.resolveModelAttribute(context, subModel);
- + if(socketBinding == null || !socketBinding.isDefined()) {
- + final ModelNode portNode = NativeManagementResourceDefinition.NATIVE_PORT.resolveModelAttribute(context, subModel);
- + }
- ManagementRemotingServices.removeConnectorServices(context, ManagementRemotingServices.MANAGEMENT_CONNECTOR);
- -
- NativeManagementAddHandler.installNativeManagementConnector(context, subModel, ManagementRemotingServices.MANAGEMENT_ENDPOINT, context.getServiceTarget(), verificationHandler, null);
- -
- }
Add Comment
Please, Sign In to add comment