はいちょうど(読み:非Webアプリケーション)「通常」にSpringアプリケーションのコンテキストをインスタンス化し、そこにあるアプリケーションをし、あなたのサービスおよびそれのための輸出を定義します。あなたのサービスがされる
<bean id="myService" class="my.example.MyServiceImpl">
<!-- properties -->
</bean>
<bean class="org.springframework.remoting.rmi.RmiServiceExporter">
<!-- does not necessarily have to be the same name as the bean to be exported -->
<property name="serviceName" value="myRMIService"/>
<property name="service" ref="myService"/>
<property name="serviceInterface" value="my.example.MyService"/>
<!-- defaults to 1099 -->
<property name="registryPort" value="1199"/>
</bean
この方法rmi://HOST:1199/myRMIService
から入手できます。
RMI hereの全ドキュメントをお読みください。 Springのコンテキストをインスタンス化する方法に慣れていない場合は、hereを読んでください。