Hitachi

OpenTP1 Version 7 分散トランザクション処理機能 TP1/Client for .NET Framework 使用の手引


定義例

〈このページの構成〉

ネームサービスを使用する場合

<configuration>
  <configSections>
    <section
      name="hitachi.opentp1.client"
      type="Hitachi.OpenTP1.Common.Util.ProfileSectionHandler,
            Hitachi.OpenTP1.Client,Version=7.0.0.0,
            Culture=neutral,PublicKeyToken=2440cf5f0d80c91c,
            Custom=null"/>
  </configSections>
 
  <hitachi.opentp1.client>
    <common>
      <tp1Server host="10.210.208.13"/>
      <rpc use="nam" watchTime="0"/>
      <nameService port="10000"/>
    </common>
    <profile id="traceMode">
      <errTrace use="true" path="c:\temp\clientn"
                fileSize="100000"/>
      <methodTrace use="true" path="c:\temp\clientn"
                   fileSize="100000"/>
      <uapTrace use="true" path="c:\temp\clientn"
                fileSize="100000"/>
      <dataTrace use="true" path="c:\temp\clientn"
                 fileSize="100000"/>
    </profile>
  </hitachi.opentp1.client>
 
</configuration>

スケジューラダイレクト機能を使用する場合

<configuration>
  <configSections>
    <section
      name="hitachi.opentp1.client"
      type="Hitachi.OpenTP1.Common.Util.ProfileSectionHandler,
            Hitachi.OpenTP1.Client,Version=7.0.0.0,
            Culture=neutral,PublicKeyToken=2440cf5f0d80c91c,
            Custom=null"/>
  </configSections>
 
  <hitachi.opentp1.client>
    <common>
      <tp1Server host="10.210.208.13"/>
      <rpc use="scd" watchTime="0"/>
      <scheduleService port="10010"/>
    </common>
    <profile id="traceMode">
      <errTrace use="true" path="c:\temp\clientn"
                fileSize="100000"/>
      <methodTrace use="true" path="c:\temp\clientn"
                   fileSize="100000"/>
      <uapTrace use="true" path="c:\temp\clientn"
                fileSize="100000"/>
      <dataTrace use="true" path="c:\temp\clientn"
                 fileSize="100000"/>
    </profile>
  </hitachi.opentp1.client>
 
</configuration>

rapサービスを使用する場合

<configuration>
  <configSections>
    <section
      name="hitachi.opentp1.client"
      type="Hitachi.OpenTP1.Common.Util.ProfileSectionHandler,
            Hitachi.OpenTP1.Client,Version=7.0.0.0,
            Culture=neutral,PublicKeyToken=2440cf5f0d80c91c,
            Custom=null"/>
  </configSections>
 
  <hitachi.opentp1.client>
    <common>
      <tp1Server host="10.210.208.13"/>
      <rpc use="rap" watchTime="0"/>
      <rapService port="10020"/>
    </common>
    <profile id="traceMode">
      <errTrace use="true" path="c:\temp\clientn"
                fileSize="100000"/>
      <methodTrace use="true" path="c:\temp\clientn"
                   fileSize="100000"/>
      <uapTrace use="true" path="c:\temp\clientn"
                fileSize="100000"/>
      <dataTrace use="true" path="c:\temp\clientn"
                 fileSize="100000"/>
    </profile>
  </hitachi.opentp1.client>
 
</configuration>

サーバおよび通信方式別にプロファイルを宣言する場合

<configuration>
  <configSections>
    <section
      name="hitachi.opentp1.client"
      type="Hitachi.OpenTP1.Common.Util.ProfileSectionHandler,
            Hitachi.OpenTP1.Client,Version=7.0.0.0,
            Culture=neutral,PublicKeyToken=2440cf5f0d80c91c,
            Custom=null"/>
  </configSections>
 
  <hitachi.opentp1.client>
    <common>
      <tp1Server host="10.210.208.1"/>
      <rpc use="rap" watchTime="0"/>
      <rapService port="10020"/>
      <errTrace use="true" path="c:\temp\clientn"
                fileSize="100000"/>
      <dataTrace use="true" path="c:\temp\clientn"
                 fileSize="100000"/>
    </common>
    <profile id="nam">
      <tp1Server host="10.210.208.1"/>
      <rpc use="nam" watchTime="0"/>
      <nameService port="10000"/>
    </profile>
    <profile id="server2Rap">
      <tp1Server host="10.210.208.2"/>
      <rpc use="rap" watchTime="0"/>
      <rapService port="10020"/>
    </profile>
    <profile id="server2Nam">
      <tp1Server host="10.210.208.2"/>
      <rpc use="nam" watchTime="0"/>
      <nameService port="10000"/>
    </profile>
  </hitachi.opentp1.client>
 
</configuration>