for (String path : new String[] { CommonAttributes.IN_VM_ACCEPTOR, CommonAttributes.IN_VM_CONNECTOR }) {
ResourceTransformationDescriptionBuilder transport = hornetqServer.addChildResource(pathElement(path));
rejectAttributesWithExpression(transport, InVMTransportDefinition.SERVER_ID);
OperationTransformationOverrideBuilder transportAddOp = transport.addOperationTransformationOverride(ADD).inheritResourceAttributeDefinitions();
rejectAttributesWithExpression(transportAddOp, CommonAttributes.PARAM);
ResourceTransformationDescriptionBuilder transportParam = transport.addChildResource(TransportParamDefinition.PATH);
rejectAttributesWithExpression(transportParam, TransportParamDefinition.VALUE);
}
for (String path : new String[] { CommonAttributes.REMOTE_ACCEPTOR, CommonAttributes.REMOTE_CONNECTOR, CommonAttributes.ACCEPTOR, CommonAttributes.CONNECTOR }) {
ResourceTransformationDescriptionBuilder transport = hornetqServer.addChildResource(pathElement(path));
OperationTransformationOverrideBuilder transportAddOp = transport.addOperationTransformationOverride(ADD).inheritResourceAttributeDefinitions();
rejectAttributesWithExpression(transportAddOp, CommonAttributes.PARAM);
ResourceTransformationDescriptionBuilder transportParam = transport.addChildResource(TransportParamDefinition.PATH);
rejectAttributesWithExpression(transportParam, TransportParamDefinition.VALUE);
}