Source:
public void changeAll() throws Exception { if (onlineClient.version().lessThanOrEqualTo(ServerVersion.VERSION_3_0_0)) { return; } ChangeJdbcTransactionAttributes cmd = TransactionManager.jdbc() .useJdbcStore(true) .storeDatasource("datasource") .actionStoreDropTable(true) .actionStoreTablePrefix("action") .communicationStoreDropTable(true) .communicationStoreTablePrefix("communication") .stateStoreDropTable(true) .stateStoreTablePrefix("state") .build(); onlineClient.apply(cmd); ModelNodeResult result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "use-jdbc-store"); result.assertSuccess(); assertTrue("jdbc store should be used", result.booleanValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-store-datasource"); result.assertSuccess(); assertEquals("jdbc store datasource should be changed", "datasource", result.stringValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-action-store-drop-table"); result.assertSuccess(); assertTrue("jdbc action store drop table should be enabled", result.booleanValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-action-store-table-prefix"); result.assertSuccess(); assertEquals("jdbc store datasource should be changed", "action", result.stringValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-communication-store-drop-table"); result.assertSuccess(); assertTrue("jdbc communication store drop table should be enabled", result.booleanValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-communication-store-table-prefix"); result.assertSuccess(); assertEquals("jdbc store datasource should be changed", "communication", result.stringValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-state-store-drop-table"); result.assertSuccess(); assertTrue("jdbc state store drop table should be enabled", result.booleanValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-state-store-table-prefix"); result.assertSuccess(); assertEquals("jdbc store datasource should be changed", "state", result.stringValue()); }

Target:
public void changeAll() throws Exception { Assume.assumeTrue(onlineClient.version().greaterThanOrEqualTo(ServerVersion.VERSION_2_0_0)); ChangeJdbcTransactionAttributes cmd = TransactionManager.jdbc() .useJdbcStore(true) .storeDatasource("datasource") .actionStoreDropTable(true) .actionStoreTablePrefix("action") .communicationStoreDropTable(true) .communicationStoreTablePrefix("communication") .stateStoreDropTable(true) .stateStoreTablePrefix("state") .build(); onlineClient.apply(cmd); ModelNodeResult result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "use-jdbc-store"); result.assertSuccess(); assertTrue("jdbc store should be used", result.booleanValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-store-datasource"); result.assertSuccess(); assertEquals("jdbc store datasource should be changed", "datasource", result.stringValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-action-store-drop-table"); result.assertSuccess(); assertTrue("jdbc action store drop table should be enabled", result.booleanValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-action-store-table-prefix"); result.assertSuccess(); assertEquals("jdbc store datasource should be changed", "action", result.stringValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-communication-store-drop-table"); result.assertSuccess(); assertTrue("jdbc communication store drop table should be enabled", result.booleanValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-communication-store-table-prefix"); result.assertSuccess(); assertEquals("jdbc store datasource should be changed", "communication", result.stringValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-state-store-drop-table"); result.assertSuccess(); assertTrue("jdbc state store drop table should be enabled", result.booleanValue()); result = ops.readAttribute(TEST_TRANSACTIONS_ADDRESS, "jdbc-state-store-table-prefix"); result.assertSuccess(); assertEquals("jdbc store datasource should be changed", "state", result.stringValue()); }