请问如何用spring来进行远程调用

lakers530 2005-09-26 01:59:56
<bean id="hessianProxy" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
<property name="serviceUrl">
<value>http://192.168.1.137:1099</value>
</property>
<property name="serviceInterface">
<value>com.kmsoft.service.dao.service.IUserService</value>
</property>
</bean>
另外配置中serviceUrl的地址如何确定,欢迎大家来指教非常感谢
...全文
221 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lakers530 2005-10-26
  • 打赏
  • 举报
回复
为什么没有人回答啊.
lakers530 2005-09-30
  • 打赏
  • 举报
回复
大家是不是经常用spring的远程调用之类的啊.
为什么我通过rmi可以调用成功而用Hessian这种方式调用老是报错啊.
希望有人知道的指点一二不胜感激.....
lakers530 2005-09-27
  • 打赏
  • 举报
回复
怎么没有人回答啊。。
<bean id="myComponentService" class="com.kmsoft.ejb.interfaces.MyComponentImpl">
</bean>
<bean name="/httpServiceTest"
class="org.springframework.remoting.caucho.HessianServiceExporter">
<property name="service">
<ref local="myComponentService"></ref>
</property>
<property name="serviceInterface">
<value>com.kmsoft.ejb.interfaces.IMyComponent</value>
</property>
</bean>

<bean id="myComponentHttpService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
<property name="serviceUrl">
<value>http://localhost:8080/httpServiceTest</value>
</property>
<property name="serviceInterface">
<value>com.kmsoft.ejb.interfaces.IMyComponent</value>
</property>
</bean>
请问为什么我在测试的时候总是报错啊。。是不是因为端口及其他的有什么问题引起的啊。
org.springframework.remoting.RemoteAccessException: Cannot access Hessian service at [http://127.0.0.1:8080/httpServiceTest]; nested exception is com.caucho.hessian.io.HessianProtocolException:
com.caucho.hessian.io.HessianProtocolException:
zjmoya 2005-09-26
  • 打赏
  • 举报
回复
顶………………

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧