@Override
    protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException {
        PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
        final String jndiName = address.getLastElement().getValue();
        final String tableName = CMResourceResourceDefinition.CM_TABLE_NAME.resolveModelAttribute(context, model).asString();
        final int batchSize =  CMResourceResourceDefinition.CM_TABLE_BATCH_SIZE.resolveModelAttribute(context, model).asInt();
        final boolean immediateCleanup = CMResourceResourceDefinition.CM_TABLE_IMMEDIATE_CLEANUP.resolveModelAttribute(context, model).asBoolean();
        ROOT_LOGGER.debugf("adding commit-markable-resource: jndi-name=%s, table-name=%s, batch-size=%d, immediate-cleanup=%b", jndiName, tableName, batchSize, immediateCleanup);

        CMResourceService service = new CMResourceService(jndiName, tableName, immediateCleanup, batchSize);
        context.getServiceTarget().addService(TxnServices.JBOSS_TXN_CMR.append(jndiName), service)
                .addDependency(TxnServices.JBOSS_TXN_JTA_ENVIRONMENT, JTAEnvironmentBean.class, service.getJTAEnvironmentBeanInjector())
                .setInitialMode(ServiceController.Mode.ACTIVE)
                .install();

        if (!context.isBooting()) {
            context.reloadRequired();
        }
    }
@Override
    protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException {
        PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
        final String jndiName = address.getLastElement().getValue();
        final String tableName = CMResourceResourceDefinition.CM_TABLE_NAME.resolveModelAttribute(context, model).asString();
        final int batchSize =  CMResourceResourceDefinition.CM_TABLE_BATCH_SIZE.resolveModelAttribute(context, model).asInt();
        final boolean immediateCleanup = CMResourceResourceDefinition.CM_TABLE_IMMEDIATE_CLEANUP.resolveModelAttribute(context, model).asBoolean();
        ROOT_LOGGER.debugf("adding commit-markable-resource: jndi-name=%s, table-name=%s, batch-size=%d, immediate-cleanup=%b", jndiName, tableName, batchSize, immediateCleanup);

        CMResourceService service = new CMResourceService(jndiName, tableName, immediateCleanup, batchSize);
        context.getServiceTarget().addService(TxnServices.JBOSS_TXN_CMR.append(jndiName), service)
                .addDependency(TxnServices.JBOSS_TXN_JTA_ENVIRONMENT, JTAEnvironmentBean.class, service.getJTAEnvironmentBeanInjector())
                .setInitialMode(ServiceController.Mode.ACTIVE)
                .install();

        if (!context.isBooting()) {
            context.reloadRequired();
        }
    }
@ Override protected void performRuntime ( final OperationContext context , final ModelNode operation , final ModelNode model ) throws OperationFailedException { PathAddress address = PathAddress . pathAddress ( operation . get ( OP_ADDR ) ) ; final String jndiName = address . getLastElement ( ) . getValue ( ) ; final String tableName = CMResourceResourceDefinition . CM_TABLE_NAME . resolveModelAttribute ( context , model ) . asString ( ) ; final int batchSize = CMResourceResourceDefinition . CM_TABLE_BATCH_SIZE . resolveModelAttribute ( context , model ) . asInt ( ) ; final boolean immediateCleanup = CMResourceResourceDefinition . CM_TABLE_IMMEDIATE_CLEANUP . resolveModelAttribute ( context , model ) . asBoolean ( ) ; ROOT_LOGGER . debugf ( "adding commit-markable-resource: jndi-name=%s, table-name=%s, batch-size=%d, immediate-cleanup=%b" , jndiName , tableName , batchSize , immediateCleanup ) ; CMResourceService service = new CMResourceService ( jndiName , tableName , immediateCleanup , batchSize ) ; context . getServiceTarget ( ) . addService ( TxnServices . JBOSS_TXN_CMR . append ( jndiName ) , service ) . addDependency ( TxnServices . JBOSS_TXN_JTA_ENVIRONMENT , JTAEnvironmentBean . class , service . getJTAEnvironmentBeanInjector ( ) ) . setInitialMode ( ServiceController . Mode . ACTIVE ) . install ( ) ; if ( ! context . isBooting ( ) ) { context . reloadRequired ( ) ; } }
{@inheritDoc}
{