我有一个命令行spring应用程序,它通过Spring的HttpInvoker使用远程via服务。连接URL在属性文件中配置:
<bean id="httpFooBarServiceProxy"
class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
<property name="serviceUrl" value="${serverURI}/
FooBarService-httpinvoker.rpc" />
<property name="serviceInterface">
<value>foo.bar.service.Interface</value>
</property>
<property name="httpInvokerRequestExecutor">
<bean
class="org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor" />
</property>
</bean>一切正常,但现在我们的合作伙伴希望通过HTTPS使用它来访问他的WebLogic10.3服务器上运行的服务。
据我所知,应用程序可以保持不变,他只需导入证书(?)放入密钥库(?)并改变属性文件中的url中的协议。你能确认这一点吗?
发布于 2011-05-31 19:10:14
可以,因为您已经在使用支持https的CommonsHttpInvokerRequestExecutor。
https://stackoverflow.com/questions/6185387
复制相似问题