Tips on when to use different Spring RPC remoting models
Spring 2.5 supports 4 remoting models, namely:
- Remote Method Invocation (RMI)
- Hessian or Burlap
- HTTP Invoker
- JAX-RPC/SOAP
So a question arises which method is best suited and when. Here is a very basic "Spring Remoting Model X useful when..." list
Remote Method Invocation (RMI)
RMI is useful when:
- Accessing/exposing Java based services over a network and network constraints are not a factor (for example: firewalls)
- Objects being transferred over the network are very complex.
RMI is NOT useful when:
- When client or server side is not using Java programming language.
Hessian or Burlap
Hessian/Burlap is useful when:
- Accessing/exposing Java based services over a network/internet with firewalls
- Your service must communicate with other programming languages such as: PHP, Python, C++, etc.
- You need a light weight container (consider handheld devices)
- You need small message sizes.
Hessian/Burlap is NOT useful when:
- When you are using complex objects. They might not be serialized correctly since Hessian/Burlap is using proprietary serialization mechanism.
HTTP Invoker
HTTP Invoker is useful when:
- Accessing/exposing Java based services over a network/internet with firewalls
- Objects being transferred over the network are very complex
HTTP Invoker is NOT useful when:
- When client or server side is not using Java programming language and Spring Framework
- When you don't want to couple you code to Spring Framework.
JAX-RPC/SOAP
JAX-RPC/SOAP is useful when:
- Accessing/exposing services over a network/internet with firewalls
- You want to communicate with any programming language.
分享到:
相关推荐
spring-remoting.jar spring-remoting.jar
org.apache.cxf.spring.remoting.Jsr181HandlerMapping.jar
自己弄的三层框架Spring.net,Remoting 本系统共分3部分: 1, DataAccess 数据访问层, 使用Ado.Net和Sql2005交互..数据访问层基本的Model, 单表基本操作存储过程, Dao代码可以由"动软代码生成工具修改版"生成 2, ...
由于spring2和spring3的rmi方式调用方式不同引起的,通过查阅相关文档后发现,spring3不在需要生成skeleton和stub了,所以把这个类从spring-context中删除了,解决办法就是想办法将它再加进来
NULL 博文链接:https://zcmerjade.iteye.com/blog/1476218
刘冬编写Spring.NET学习笔记20——整合Remoting(应用篇)的例子 原文:http://www.cnblogs.com/GoodHelper/archive/2009/11/19/SpringNet_Remoting.html
c#自带remote,入门级demo,看看即可。。。个人看法:分布式中,用rpc真不如异步消息队列。。。
项目工程结构如下图所示,除了包含spring定义远程服务org.springframework.remoting.httpinvoker.*部分节点代码(红框框部分,具体设计代码部分参考相关代码示例说明文章),还包含springmvc等其他示例部分可以忽略...
org.springframework.remoting.caucho.BurlapClientInterceptor.class org.springframework.remoting.caucho.BurlapProxyFactoryBean.class org.springframework.remoting.caucho.BurlapServiceExporter.class org....
.Net中非常重要的知识点 也是面试中必考的
Other recipes include Spring enterprise solutions for topics such as Spring Java EE integration, Spring Integration, Spring Batch, Spring Remoting, messaging, transactions, and working with big data ...
(9) spring-remoting.jar 这个jar文件包含支持EJB、JMS、远程调用Remoting(RMI、Hessian、Burlap、Http Invoker、JAX-RPC)方面的类。 (10) spring-support.jar 这个jar文件包含支持缓存Cache(ehcache)、JCA、...
* Spring enterprise: Spring Java EE integration, Spring Integration, Spring Batch, jBPM with Spring, Spring Remoting, messaging, transactions, scaling using Terracotta and GridGrain, and more. ...
NULL 博文链接:https://xiaoz5919.iteye.com/blog/1730552
Then, you will learn how to use proxy patterns in aspect-oriented programming and remoting. Moving on, you will understand the JDBC template patterns and their use in abstracting database access. ...
自己做的一个简单的例子,适合初学者!喜欢的就下去看看吧,内有说明,有注释!
核心远程处理具有经典.NET Remoting风格的RPC库(.NET Standard 2.0) NuGet软件包: : 这是为了什么? 帮助将使用.NET Remoting的应用程序迁移到.NET Core / .NET 5。 提供易于使用的RPC功能在分布式应用程序中...
11) spring -remoting.jar需spring-core.jar,spring-beans.jar,spring-aop.jar,spring- dao.jar,spring-context.jar,spring-web.jar,spring-webmvc.jar 12) spring-support.jar需spring-core.jar,spring-...
Exam topics covered include tasks and scheduling, remoting, the Spring Web Services framework, RESTful services with Spring MVC, the Spring JMS module, JMS and JTA transactions with Spring, batch ...