Слияние кода завершено, страница обновится автоматически
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
<bean id="HelloService" class="com.fengjing.framework.spring.remoting.HelloServiceImpl"/>
<!-- 使用Spring RMI远程方法调用 -->
<bean class="org.springframework.remoting.rmi.RmiServiceExporter"
p:serviceName="HelloService"
p:service-ref="HelloService"
p:serviceInterface="com.fengjing.framework.spring.remoting.HelloService">
</bean>
<!-- 使用Spring RMI方式客户端调用 -->
<bean id="rmiHelloService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean"
p:serviceUrl="rmi://localhost:1099/HelloService"
p:serviceInterface="com.fengjing.framework.spring.remoting.HelloService">
</bean>
<!-- 使用Spring Hessian远程方法调用
<bean class="org.springframework.remoting.caucho.HessianServiceExporter"
p:service-ref="HelloService"
p:serviceInterface="com.fengjing.framework.spring.remoting.HelloService">
</bean>
-->
<!-- 使用Spring Hessian方式客户端调用
<bean id="hessianHelloService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean"
p:serviceUrl="http://localhost:8080/maven-framework/remote/service"
p:serviceInterface="com.fengjing.framework.spring.remoting.HelloService"
>
</bean>
-->
<!-- 使用Spring Burlap远程方法调用
<bean class="org.springframework.remoting.caucho.BurlapServiceExporter"
p:service-ref="HelloService"
p:serviceInterface="com.fengjing.framework.spring.remoting.HelloService">
</bean>
-->
<!-- 使用Spring Burlap方式客户端调用
<bean id="burlapHelloService" class="org.springframework.remoting.caucho.BurlapProxyFactoryBean"
p:serviceUrl="http://localhost:8080/maven-framework/remote/service"
p:serviceInterface="com.fengjing.framework.spring.remoting.HelloService"
>
</bean>
-->
<!-- 使用Spring HttpInvoker远程方法调用 -->
<bean class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"
p:service-ref="HelloService"
p:serviceInterface="com.fengjing.framework.spring.remoting.HelloService">
</bean>
<!-- 使用Spring HttpInvoker方式客户端调用 -->
<bean id="httpInvokerHelloService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"
p:serviceUrl="http://localhost:8080/maven-framework/remote/service"
p:serviceInterface="com.fengjing.framework.spring.remoting.HelloService"
>
</bean>
<bean class="com.fengjing.framework.spring.remoting.HelloServiceClient" p:helloService-ref="rmiHelloService"/>
<!-- 使用SimpleJaxWsHelloService发布WebService -->
<bean id="simpleJaxWsHelloService" class="com.fengjing.framework.spring.remoting.jaxws.SimpleJaxWsHelloService"></bean>
<!-- 访问地址http://localhost:9999/SimpleJaxWsHelloService?wsdl -->
<bean class="org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter"
p:baseAddress="http://localhost:9999/"
/>
</beans>
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )