Hitachi

uCosminexus Service Coordinator Interactive Workflow AP開発ガイド


2.3.6 CIWServerオブジェクトに対するConnectionオブジェクトの関連づけの解除

CIWConnectionCoordinatorクラスのdetachDatabaseConnectionメソッドを使用して,CIWServerオブジェクトに対するConnectionオブジェクトの関連づけを解除します。CIWServerオブジェクトとConnectionオブジェクトの関連づけを解除する場合の業務プログラムのコーディング例を次に示します。なお,例中の「server」は,CIWServerオブジェクトを示します。

try {
    …
    CIWConnectionCoordinator coordinator = server.getConnectionCoordinator();
    coordinator.detachDatabaseConnection();
 
    // トランザクションの終了処理
    …
}
catch(CIWFatalException e) {
    // 例外処理を記述
}