Commit Graph

25 Commits

Author SHA1 Message Date
Gary Russell
a7bda6bbb2 INT-1770 Support Client Mode For TCP Endpoints
Add client mode for inbound endpoints, and for the
outbound adapter.

INT-1770 Allow Inbound Adapter to Open Connection

Normally, inbound adapters use server sockets and wait for incoming
connection. There are use cases where the adapter should establish
the connection and wait for inbound messages.

INT-1770 Open Connection on Start

Allow configuration of outbound adapter to permit
connection establishment when the adapter is started
rather than when the first message arrives.

INT-1770 Allow Inbound Gateway to Open Connection

Normally, inbound gateways listen for connections. There are
use cases where an inbound gateway might open the connection
and then wait for incoming requests.

INT-1770 Parsers

Update parsers and tests to support attributes for setting
endpoints in client-mode.

INT-1770 Docs

Update reference with client-mode information.

INT-1770 Add Control Bus for Client Mode

Enable control bus commands to check status and to attempt
connection establishment.
2011-10-14 18:10:06 -04:00
Gary Russell
7981855c78 INT-2050 Code Polishing
INT-1876 Add AutoStart and Phase to TCP Endpoints

There was no way for an application to control the startup
of TCP endpoints. This is particularly an issue for controlling
availability of inbound endpoints.

The TCP Endpoints are mostly static, with dynamic behavior
being contained in connection factories. The factories
implement SmartLifecycle but there is no way to
configure auto-startup.

Adds auto-startup and phase attributes to all TCP endpoints

Starting/stopping an endpoint will start/stop the underlying
connection factory. When a connection factory is stopped,
all open connections are closed, and no new connections will
be acceptedi (inbound) or allowex (outbound).

While the factories implement SmartLifecycle, they return
false to auto-startup. We rely on the fact that
the endpoints are dependent on factories and
the factories will be started because of this dependency.

Finally, with collaborating endpoints (where an inbound and
outbound adapter are bound to the same factory), starting/
stopping one endpoint will affect the collaborating
endpoint too.

INT-1876 Polish Schema Docs

Doc was incorrectly talking about connection factories instead
of endpoints.

INT-2162 Add apply-sequence to Connection Factory

When messages are generated as a result of incoming tcp messages, and this
attribute is true (default=false), the sequenceNumber and
correlationId headers will be set. This will facilitate
downstream resequencing if necessary.

The 'ip_connection_id' header is still required for internal correlation
of reply messages to the right socket (regardless of whether downstream
components have altered the correlationId), and will contain the same value
as the correlationId (if set). This will not use up more memory for the
header content because they will both point to the same heap object.

The 'ip_connection_seq' header is deprecated and may be removed
in a future release.

TcpConnection.getConnectionSeq() has been renamed to
incrementAndGetConnectionSequence() because it is not a simple
getter method, it increments the connection's sequence number.

INT-2162 Update Docs for apply-sequence

Add documentation for apply-sequence attribute on
TCP Connection Factories.
2011-10-03 15:20:57 -04:00
Mark Fisher
7c5603fe83 INT-2092 update schema imports to use 2.1 version 2011-08-31 05:26:02 -04:00
Oleg Zhurakousky
935cd01d07 INT-1512 changed the type of ID attribute to be xsd:string in all related 2.1 schema files 2011-08-08 23:34:12 -04:00
Mark Fisher
3e71b5a83b INT-2004 added 2.1 versions of all XML schemas and adjusted spring.schemas files accordingly 2011-08-05 11:07:20 -04:00
Gary Russell
16b0248791 INT-1848 Add order Attribute to tcp, udp, jdbc Outbound Endpoints 2011-03-25 15:49:00 -04:00
Gary Russell
9a5c26581b INT-1822 Add Attribute to Suppress Reverse DNS Lokup 2011-03-04 18:53:51 -05:00
Gary Russell
c5dba36865 INT-1552 Add error-channel to other endpoint docs; schema doc polishing 2010-11-18 18:21:14 -05:00
Gary Russell
cf5f51fdb5 INT-1624 Polish ip and jms schemas for error-channel 2010-11-17 16:49:13 -05:00
Gary Russell
bfeee039bb INT-1623 INT-1624 Add error-channel to ip inbound adapters and tcp inbound gateway - parsers, XSD and tests only - super classes already do the heavy lifting 2010-11-16 19:20:03 -05:00
Mark Fisher
d0ef062c2e INT-1487 updated some test config references to commons.serializer as well as tooling annotations in schemas 2010-10-22 21:50:09 -05:00
Gary Russell
b339157a34 INT-1486 polish; rename byte array 'serializers' and all test usage 2010-09-28 22:25:04 -04:00
Mark Fisher
68648dcb94 INT-1486 updated IP module for refactored Serialization code 2010-09-28 15:56:01 -04:00
Gary Russell
a54c7ed5f1 INT-1279 Namespace Updates For New Gateways; Remove Old Gateways/Adapters; Migrate All Tests to New Gateways/Adapters 2010-08-13 22:05:59 +00:00
Gary Russell
c25367cfd3 INT-1340 Add TCP Connection Interceptor Chain 2010-08-08 22:13:19 +00:00
Mark Fisher
f39dfae179 adjusted package for 'expected-type' in XSD tooling 2010-07-28 16:00:07 +00:00
Gary Russell
5246820bb6 INT-1269 Remove default="false" from using-direct-buffers - N/A for java.net 2010-07-27 00:47:53 +00:00
Gary Russell
f5d6e0480b INT-1269 Missing using-direct-buffers Attribute 2010-07-27 00:29:20 +00:00
Gary Russell
46bc422174 INT-1269 Refactor TCP Adapters to Separate Out Connection Factories - Docs to Follow 2010-07-26 20:54:51 +00:00
Gary Russell
3e9dd90f10 INT-1147 Allow socket handling Task Executors to be injected, allowing use of specific executors like WorkManagerTaskExecutor. 2010-07-12 19:01:18 +00:00
Gary Russell
1717984d80 Typo in schema comment for local-address 2010-05-31 14:19:58 +00:00
Gary Russell
9fef40f179 INT-1149 Support the specification of a network interface via local-address attribute on inbound endpoints and outbound UDP adapter. Docs to follow. 2010-05-30 18:54:50 +00:00
Gary Russell
4fa1483e42 INT-1150 Support java serialization over TCPNet* adapters and Simple TCP gateways. 2010-05-29 16:56:50 +00:00
Gary Russell
8119caa249 INT-1145 INT-1146 Add 'close' attribute to tcp gateways and inbound adapters 2010-05-28 21:55:36 +00:00
Chris Beams
c08a7a657e renamed modules org.springframework.integration.* -> spring-integration-*
@Ignore'd SimpleTcpNetOutboundGatewayTests#testOutboundClose() to avoid failure; this failure is correlated to the module name change, but hard to understand how it would be caused by it
2010-05-25 13:21:25 +00:00