5 Mayıs 2017 Cuma

CachingClientConnectionFactory Sınıfı

Giriş
Bu sınıf Spring Integration projesine dahil.

Tanımlama
Şöyle yaparız.
<!-- Pooled Connection factory -->
<int-ip:tcp-connection-factory id="client"
  type="client"
  host="${gateway.url}"
  port="${gateway.port}"
  single-use="true"
  so-timeout="${gateway.socket.timeout}"
  serializer="appSerializerDeserializer"
  deserializer="appSerializerDeserializer" />


<bean id="cachedClient"
  class="org.springframework.integration.ip.tcp.connection.
         CachingClientConnectionFactory">
    <constructor-arg ref="client" />
    <constructor-arg value="${gateway.pool.size}" />
</bean>

Hiç yorum yok:

Yorum Gönder