From 56b4262367abb5e10c67f17859c05fc9ccecfc1a Mon Sep 17 00:00:00 2001 From: Iwein Fuld Date: Wed, 15 Oct 2008 17:06:22 +0000 Subject: [PATCH] removed file and rmi references from adapters.xml\nadded title to file.xml --- spring-integration-reference/src/adapters.xml | 71 ------------------- spring-integration-reference/src/file.xml | 1 + 2 files changed, 1 insertion(+), 71 deletions(-) diff --git a/spring-integration-reference/src/adapters.xml b/spring-integration-reference/src/adapters.xml index eb44d315c6..1032bac0b0 100644 --- a/spring-integration-reference/src/adapters.xml +++ b/spring-integration-reference/src/adapters.xml @@ -82,77 +82,6 @@ Integration's namespace support. -
- RMI Adapters - - The RmiGateway is built upon Spring's RmiServiceExporter. - However, since it is adapting a MessageChannel, there is no need to specify - the serviceInterface. Likewise, the serviceName is automatically - generated based on the channel name. Therefore, creating the adapter is as simple as providing a reference - to its channel: RmiGateway rmiGateway = new RmiGateway(channel); - - - - The RmiHandler encapsulates the creation of a proxy that is capable of - communicating with an RmiGateway running in another process. Since the interface - is already known, the only required information is the URL. The URL should include the host, port (default is - '1099'), and 'serviceName'. The 'serviceName' must match that created by the - RmiGateway (the prefix is available as a constant). - String url = "http://somehost:1099/" + RmiGateway.SERVICE_NAME_PREFIX + "someChannel"; -RmiHandler rmiHandler = new RmiHandler(url); - - -
-
- HttpInvoker Adapters - - The adapters for HttpInvoker are very similar to the RMI adapters. For a source, only the - channel needs to be provided, and for a target, only the URL. If running in a Spring MVC environment, then - the HttpInvokerGateway simply needs to be defined and provided in a - HandlerMapping. For example, the following would be exposed at the path - "http://somehost/path-mapped-to-dispatcher-servlet/httpInvokerAdapter" when a simple - BeanNameUrlHandlerMapping strategy is enabled: - - -]]> - When not running in a Spring MVC application, simply define a servlet in 'web.xml' whose type is - HttpRequestHandlerServlet and whose name matches the bean name of the gateway - adapter. As with the RmiHandler, the - HttpInvokerHandler only requires the URL that matches an instance of - HttpInvokerGateway running in a web application. - -
-
- File Adapters - - The FileSource requires the directory as a constructor argument: - public FileSource(File directory) - It can then be connected to a MessageChannel when referenced from - a "channel-adapter" element. - - - The FileTarget constructor also requires the 'directory' argument. The target - adapter also accepts an implementation of the FileNameGenerator strategy that - defines the following method: String generateFileName(Message message) - -
-
- FTP Adapters - - To poll a directory with FTP, configure an instance of FtpSource and then connect - it to a channel by configuring a channel-adapter. The FtpSource - expects a number of properties for connecting to the FTP server as shown below. - - - - - - -]]> - -
Mail Adapters diff --git a/spring-integration-reference/src/file.xml b/spring-integration-reference/src/file.xml index d98f8c3269..5aea28f260 100644 --- a/spring-integration-reference/src/file.xml +++ b/spring-integration-reference/src/file.xml @@ -131,6 +131,7 @@
+ File Transformers To transform data read from the file system to objects and the other