私はspring-wsクライアントを使用して双方向SSLモードでWebサービスを呼び出しています。毎回新しい接続を作成しないようにする必要があります。代わりに接続を再利用します。 私はいくつかの再検索を行い、デフォルトでHTTP 1.1が常に永続的なhttp(s)接続を作成することを発見しました。本当?spring-wsクライアントを使用して永続的な接続を作成する
は、私は接続が永続的であることを確認するために私のクライアントのコードのどの部分が必要ですか?接続が永続的かどうか、または新しい接続が作成されているかどうかを確認するにはどうすればいいですか?
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oxm="http://www.springframework.org/schema/oxm"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/oxm http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd">
<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"/>
<bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
<constructor-arg ref="messageFactory"/>
<property name="marshaller" ref="jaxb2Marshaller" />
<property name="unmarshaller" ref="jaxb2Marshaller" />
<property name="messageSender" ref="httpSender" />
</bean>
<bean id="httpSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
</bean>
<oxm:jaxb2-marshaller id="jaxb2Marshaller" contextPath="com.nordstrom.direct.oms.webservices.addressval" />
<bean id="Client" class="test.ClientStub">
<property name="webServiceTemplate" ref="webServiceTemplate" />
</bean>
</beans>