spring httpinvoker的httpClient性能比较

hanqunfeng 2009-07-08 11:49:33
spring invoker提供了两种类型的客户端代理,
SimpleHttpInvokerRequestExecutor和CommonsHttpInvokerRequestExecutor,请问哪个性能更好一些,我用jmeter做压力测试发现,SimpleHttpInvokerRequestExecutor好于CommonsHttpInvokerRequestExecutor,不知是否我的配置有问题,请高手指点。以下是我的配置:
<bean id="httpService"
class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
<property name="serviceUrl">
<value>http://vm.local.com:8080/ucs/service/httpService</value>
</property>
<property name="serviceInterface" value="com.netqin.baike.service.UcService">
</property>
<property name="httpInvokerRequestExecutor">
<bean
class="org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor" />
</property>
</bean>

...全文
571 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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