Commit Graph

3184 Commits

Author SHA1 Message Date
Mark Fisher
7ccc8f28d5 The <poller/> element no longer defines trigger properties (interval, initial-delay, cron, etc). Instead it expects a sub-element - either <interval-trigger/> or <cron-trigger/> (INT-423). 2008-10-14 12:25:56 +00:00
Iwein Fuld
47ec57c5cd Polishing file documentation 2008-10-14 09:42:13 +00:00
Marius Bogoevici
3e669903a4 Fixes configuration, so that the poller can be used. 2008-10-14 02:46:57 +00:00
Mark Fisher
b1d647298a Added 'max-messages-per-poll' value (INT-412). 2008-10-13 23:28:55 +00:00
Mark Fisher
5e8a3562e1 Added support for 'header-enricher' in the 'jms' namespace. Enables adding the 'reply-to' and/or 'correlation-id' values (INT-414). 2008-10-13 22:47:23 +00:00
Mark Fisher
847a532257 SimpleHeaderEnricherParser now accepts a String array of attribute names to be treated as bean references instead of literal values. 2008-10-13 22:41:43 +00:00
Mark Fisher
bc4343ce3e AbstractMessagingGateway now implements MessageEndpoint. The DefaultMessageBus no longer has any code relate do gateways (only endpoints). 2008-10-13 21:20:26 +00:00
Mark Fisher
3565609d1e Added the MessageProducer interface and refactored AbstractMessageBarrierConsumer to no longer extend AbstractReplyProducingMessageConsumer. 2008-10-13 20:59:40 +00:00
Jonas Partner
4de01bc09b 2008-10-13 19:55:33 +00:00
Mark Fisher
c86b7faef4 Renamed ReplyHolder to ReplyMessageHolder. Modified signature of AbstractReplyMessageProducingConsumer's abstract method to be named 'onMessage'. 2008-10-13 19:50:04 +00:00
Mark Fisher
6f7bd01c2a Added ReplyHolder and modified signature of AbstractReplyProducingMessageConsumer to return void and accept this additional parameter instead. 2008-10-13 19:30:23 +00:00
Mark Fisher
78ae171dd7 Renamed TransformerEndpoint to MessageTransformingConsumer. 2008-10-13 14:45:05 +00:00
Mark Fisher
fc2a30d8fd Renamed ApplicationEventOutboundChannelAdapter to ApplicationEventPublishingMessageConsumer, since a consumer only plays the role of a "Channel Adapter" when connected to a channel within either a PublishingConsumerEndpoint or SubscribingConsumerEndpoint. 2008-10-13 14:20:49 +00:00
Mark Fisher
6b6db1b59a Formatting. 2008-10-13 14:00:27 +00:00
Mark Fisher
f99911cf89 Removed ChannelRegistry. It has been replaced by the ChannelResolver strategy. 2008-10-13 02:40:15 +00:00
Mark Fisher
8419b48dcd Publisher annotation interceptor now delegates to a ChannelResolver instance rather than a ChannelRegistry. 2008-10-13 02:03:31 +00:00
Mark Fisher
b0c809cac7 Updated template.mf to include org.springframework.beans.* 2008-10-13 01:50:16 +00:00
Mark Fisher
82ce1373ac HelloWorldDemo now uses a BeanFactoryChannelResolver (instead of ChannelRegistry). 2008-10-13 01:41:48 +00:00
Mark Fisher
a8d25f6171 Removed ChannelRegistryAware. The AbstractReplyProducingMessageConsumer now uses a BeanFactoryChannelResolver and is therefore now BeanFactoryAware. The annotation post-processors set the BeanFactoryChannelResolver when creating such a consumer (since it is not created within the ApplicationContext in that case). 2008-10-13 00:40:19 +00:00
Mark Fisher
d4271811f3 Added MapBasedChannelResolver. Routers that want to provide an extra level of indirection may be configured with a map of channel names to channel instances rather than relying on the default BeanFactoryChannelResolver that matches the name against bean names directly. 2008-10-12 18:35:09 +00:00
Mark Fisher
8301d9b3a4 Moved ChannelResolver and BeanFactoryChannelResolver into the 'org.springframework.integration.channel' package. 2008-10-12 18:17:08 +00:00
Mark Fisher
b34e416093 The router hierarchy abstract method names are now 'determineTargetChannel', 'determineTargetChannelNames', etc (instead of "resolve..."). This clarifies the distinction between the target channel decision and the resolution of a channel *name* to a channel instance. The latter is now the responsibility of a ChannelResolver strategy, and all subclasses of AbstractChannelNameResolvingMessageRouter now delegate to a ChannelResolver after 'determineTargetChannelNames' has returned the channel name(s). In most cases, it will be a BeanFactoryChannelResolver. 2008-10-12 17:58:36 +00:00
Mark Fisher
0754889c5c ChannelMapping is now ChannelResolver, the BeanNameChannelResolver implementation is now BeanFactoryChannelResolver, and the AbstractChannelMappingMessageRouter base class is now AbstractChannelNameResolvingMessageRouter. The naming is primarily intended to be consistent with DestinationResolver in Spring's JMS support with the ChannelResolver's method name being 'resolveChannelName()' and its return value being a MessageChannel instance. Also, added a ChannelResolutionException. 2008-10-12 17:15:29 +00:00
Iwein Fuld
5c5b414cc4 OPEN - issue INT-412: Not possible to run parallell aggregators
http://jira.springframework.org/browse/INT-412
Added testcases (food for INT-413)
2008-10-12 06:40:50 +00:00
Mark Fisher
b4c86f838e Added support for the <poller/> sub-element within jms:outbound-channel-adapter, and added the "channel" attribute for the inbound console channel adapter. 2008-10-12 03:34:17 +00:00
Mark Fisher
118dc27b7c Refactored the 'jms-target' element to an 'outbound-channel-adapter' element within the 'jms' namespace. 2008-10-12 03:23:48 +00:00
Mark Fisher
6873274353 Added the 'integration' schemaLocation to test XML files. 2008-10-12 01:15:57 +00:00
Mark Fisher
139b36de7c changed sequence to all. 2008-10-12 00:42:09 +00:00
Mark Fisher
8896ff7053 Added support for the integration:poller child element within jms:inbound-channel-adapter. 2008-10-12 00:29:29 +00:00
Mark Fisher
998ca827d7 Replaced <jms:source/> with <jms:inbound-channel-adapter/>, refactored parser, and adjusted tests. 2008-10-12 00:19:19 +00:00
Mark Fisher
04fe19c91e increased await timeouts for transaction tests 2008-10-11 17:47:12 +00:00
Mark Fisher
f143ae5857 Removed 'getErrorChannel' method from MessageBus. 2008-10-11 17:27:07 +00:00
Mark Fisher
5a536586e1 Removed the 'registerChannel' method from DefaultMessageBus; all channels must be registered within the ApplicationContext. The MessageBusParser now creates the 'errorChannel' if no bean with that name is explicitly defined rather than creating it within the DefaultMessageBus initialization. 2008-10-11 17:20:52 +00:00
Mark Fisher
f7d04d911b Removed ChannelResolver interface now that the router hierarchy has been refactored. Routers that map from names to channels now delegate to a ChannelMapping. 2008-10-11 16:05:49 +00:00
Mark Fisher
b8551e13be Removed the 'registerChannel' method from the ChannelRegistry interface (most likely to be renamed as it is now used solely for lookup). 2008-10-11 15:54:58 +00:00
Mark Fisher
ec91ae8f08 Renamed RootCauseErrorMessageRouter to the more appropriate ErrorMessageExceptionTypeRouter (the routing is actually based on the most-specific Exception type available in the exceptionTypeChannelMap). 2008-10-10 23:58:27 +00:00
Mark Fisher
045011318e RouterAnnotationPostProcessor now provides the beanFactory reference to the MethodInvokingRouter it creates. 2008-10-10 23:54:17 +00:00
Mark Fisher
cb90d39657 Refactored router hierarchy by adding an AbstractMessageRouter base class and removing the ChannelResolver delegation. The routers that return channel names now accept a ChannelMapping strategy. The BeanNameChannelMapping is typically used as a default. The mapping routers also support "prefix" and "suffix" properties. 2008-10-10 23:47:22 +00:00
Mark Fisher
ac85cb1ecf removed empty packages 2008-10-10 20:36:01 +00:00
Mark Fisher
d0f6684c6a Moving tests to match the package of the classes under test. 2008-10-10 19:57:52 +00:00
Mark Fisher
24793ead19 Separated annotation post processors and bean definition parsers into 'annotation' and 'xml' sub-packages of the 'org.springframework.integration.config' package. 2008-10-10 18:55:24 +00:00
Mark Fisher
b4c13e8f92 removed empty packages 2008-10-10 17:12:40 +00:00
Mark Fisher
11e53cf7e7 Moved GatewayParser, AbstractTransformerParser, and SimpleHeaderEnricherParser into org.springframework.integration.config to avoid dependency cycles. 2008-10-10 17:11:18 +00:00
Mark Fisher
0dfe9ca191 Added support for "taskExecutor" on the @Poller annotation. This requires a reference to a TaskExecutor instance resolvable by bean name (INT-409). 2008-10-10 14:48:11 +00:00
Mark Fisher
526f4b25dc Moved common annotation configuration logic from ChannelAdapterAnnotationPostProcessor and AbstractMethodAnnotationPostProcessor into the new AnnotationConfigUtils class (INT-411). 2008-10-10 14:36:20 +00:00
Mark Fisher
bdb4a866c8 Removed ConfigurationException. 2008-10-10 01:52:35 +00:00
Mark Fisher
b68f7ca17a Removing dependencies on ConfigurationException. 2008-10-10 00:57:05 +00:00
Mark Fisher
01c9efef66 AbstractEndpoint is no longer TaskScheduler aware. The ListeningMailSource now provides its own taskExecutor property and uses a SimpleAsyncTaskExecutor by default. 2008-10-10 00:28:40 +00:00
Mark Fisher
cfcbad200a Moved channelTemplate definition and initialization callback from AbstractEndpoint to the more specific AbstractMessageProducingEndpoint. 2008-10-10 00:03:41 +00:00
Mark Fisher
8368836336 Removed transaction configuration settings from AbstractEndpoint. Configuration is now a responsibility of more specific classes (e.g. AbstractPollingEndpoint). 2008-10-09 23:53:02 +00:00