Spring使用POJO发布RMI

来源:互联网 发布:北京国税开票软件 编辑:程序博客网 时间:2024/06/09 15:42

Spring可以把我们的POJO作为RMI服务进行发布

我们的业务类接口

public interface PayMentService

我们的业务类实现

public class PayMentServiceImpl

我们为了把PayMentService中的方法作为RMI输出,可以这样进行配置

<bean class="org.springfarmework.remoting.rmi.RmiServiceExporter">
  
<property name="service">
     
<ref bean="paymentService"> 
  
</property>
   
<property name="serviceName">
     
<value>PayMentService</value> 
  
</property>
  
<property name="serviceInterface">
     
<value>com.springinaction.service.PayMentService</value> 
  
</property>
</bean>

<bean id="paymentService" class="com.springinaction.service.PayMentServiceImpl">
</bean>

 

 

原创粉丝点击