1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/yacht-maven-framework-project

В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
spring-rmi.xml 3.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
sxyx2008 Отправлено 22.04.2013 07:56 de9b808
<?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 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/yacht-maven-framework-project.git
git@api.gitlife.ru:oschina-mirror/yacht-maven-framework-project.git
oschina-mirror
yacht-maven-framework-project
yacht-maven-framework-project
master