Seasar DI Container with AOP

S2RMI カスタム RMI ソケットファクトリの設定

本ドキュメントはS2RMI-1.0.1について記述しています.旧バージョンについては該当バージョンの配布ファイルに含まれているドキュメントを参照してください.

目次

カスタム RMI ソケットファクトリの設定

RMIAdaptorDeployerにはRMIClientSocketFactory、RMIServerSocketFactoryの実装クラスを設定することができます。

RMIAdaptorDeployerの詳細定義

  <component class="org.seasar.remoting.rmi.deployer.RMIAdaptorDeployer">
    <property name="adaptor">rmiAdapptor</property>
    <property name="registryPort">1108</property>
    <property name="servicePort">1109</property>
    <initMethod name="deploy"/>
    <initMethod name="addCustomSocketFactory">
      <arg>
        <component class="server.rmisocfac.XorClientSocketFactory">
          <arg>0xAC</arg>
        </component>
      </arg>
      <arg>
        <component class="server.rmisocfac.XorServerSocketFactory">
          <arg>0xAC</arg>
        </component>
      </arg>
    </initMethod>
  </component>