Commit Graph

413 Commits

Author SHA1 Message Date
Iwein Fuld
efea914ed1 OPEN - issue INT-567: Add round-robin dispatching strategy
http://jira.springframework.org/browse/INT-567

Fixed issue with concurrent failures and removed triedHandlers
2009-03-10 08:11:58 +00:00
Iwein Fuld
8f122cf58c IN PROGRESS - issue INT-567: Add round-robin dispatching strategy
http://jira.springframework.org/browse/INT-567

- Renamed LoadBalancingDispatcher to more explicit RoundRobinDispatcher
- Removed round-robin option from xsd (not specifying a dispatcher yields the same)
2009-03-09 21:36:10 +00:00
Iwein Fuld
01fe7a0baf IN PROGRESS - issue INT-567: Add round-robin dispatching strategy
http://jira.springframework.org/browse/INT-567

Simplified code and added concurrent tests
2009-03-09 19:14:21 +00:00
Iwein Fuld
242d8291ec IN PROGRESS - issue INT-567: Add round-robin dispatching strategy
http://jira.springframework.org/browse/INT-567

- refactored AbstractDispatcher to use Queue instead of Set
- added AbstractSendOnceDispatcher (for DirectChannel parametrization)
- refactored DirectChannel to use LoadBalancing Dispatcher by default
- renamed SimpleDispatcher to FailOverDispatcher
2009-03-07 19:29:01 +00:00
Marius Bogoevici
0d960df263 INT-266 - adding namespace and annotation support for CorrelationStrategy 2009-02-23 16:18:08 +00:00
Jonas Partner
fca5ae5501 resolves INT-582
Includes refactoring of router hierarchy to avoid duplication of channel resolution logic
Subclasses of AbstractChannelNameResolvingMessageRouter can return MessageChannel , MessageChannel[], collection ... in addition to String
MethodInvokingRouter now extends AbstractChannelNameResolvingMessageRouter and is simplified as a result
2009-02-22 10:34:43 +00:00
Iwein Fuld
f21810af3a OPEN - issue INT-567: Add round-robin dispatching strategy
http://jira.springframework.org/browse/INT-567

tidying in AbstractDispatcher, added LoadBalancingDispatcher
first Mockito testcase
2009-02-20 08:50:48 +00:00
Marius Bogoevici
977ab1b34a Complementary to the fixes made by INT-576. Since the ID of a message will be preserved by components that broadcast messages (e.g. a pub-sub channel), multiple messages in a correlation group may have the same ID. Therefore, organizing the storage support of MessageBarrier as a Map is obsolete. Switched to Collection. Improving the performance of the Aggregator. 2009-02-13 19:53:08 +00:00
Mark Fisher
eaad9e1d81 INT-568 2009-02-12 19:51:11 +00:00
Mark Fisher
04e784d033 INT-572 2009-02-12 17:48:44 +00:00
Marius Bogoevici
7258a6a2c5 INTERIM INT-266: API for CorrelationStrategy provided. Namespace/annotation support needs to follow. 2009-02-10 21:42:31 +00:00
Marius Bogoevici
f8961bcf5b INT-559 - Generic handler methods defined in a generic superclass are not properly resolved by PayloadTypeMatchingHandlerMethodResolver 2009-02-10 18:59:35 +00:00
Iwein Fuld
2540d63b90 RESOLVED - issue INT-574: Chain element should support aggregators mid chain as well as handlers extending AbstractReplyProducingMessageHandler
http://jira.springframework.org/browse/INT-574

test expanded for nested chain... just curious.
2009-02-10 13:26:59 +00:00
Iwein Fuld
965b5fbd0d IN PROGRESS - issue INT-574: Chain element should support aggregators mid chain as well as handlers extending AbstractReplyProducingMessageHandler
http://jira.springframework.org/browse/INT-574

Updated the xsd to allow aggregator (and nested <chain/>)
2009-02-10 13:05:26 +00:00
Iwein Fuld
11b0e85afb IN PROGRESS - issue INT-574: Chain element should support aggregators mid chain as well as handlers extending AbstractReplyProducingMessageHandler
http://jira.springframework.org/browse/INT-574

All MessageHandlers with a setOutputChannel will now be accepted in the chain, the existing functionality has remained identical.
2009-02-10 11:54:33 +00:00
Iwein Fuld
3077b73a78 IN PROGRESS - issue INT-574: Chain element should support aggregators mid chain as well as handlers extending AbstractReplyProducingMessageHandler
http://jira.springframework.org/browse/INT-574

Refactored MessageHandlerChain and added test. Adding tests for new functionality next.
2009-02-10 09:24:49 +00:00
Iwein Fuld
a17927935d FIXED - issue INT-570: property placeholders not replaced for <queue capacity="${placeholder}/>
http://jira.springframework.org/browse/INT-570
2009-02-03 16:36:46 +00:00
Marius Bogoevici
fb1e68cd4f INT-379 - if a message is already having a correlation id, the messages created through splitting will bear that particular correlation id 2009-02-01 16:48:49 +00:00
Mark Fisher
b735f84d3c Passing containing BeanDefinition when parsing an inner-bean. 2009-01-29 13:31:34 +00:00
Iwein Fuld
0a652749c3 OPEN - issue INT-555: chain allows bean as a subelement, but parser cannot handle this.
http://jira.springframework.org/browse/INT-555

added condition to parser to parse bean elements too (with test).
2009-01-29 11:58:13 +00:00
Iwein Fuld
aafdec0108 OPEN - issue INT-505: Add namespace support for MethodInvokingSelector
http://jira.springframework.org/browse/INT-505

Fixed 505, some prework for INT-547
2009-01-12 14:36:10 +00:00
Mark Fisher
f7f1e2cbf6 INT-533 2008-12-18 17:21:45 +00:00
Mark Fisher
17d0b27230 Added support for 'advice-chain' sub-element for the 'poller' element (INT-503). 2008-12-16 23:02:21 +00:00
Mark Fisher
36ef3d32cb INT-521 2008-12-15 22:00:39 +00:00
Mark Fisher
17849dbdea INT-519 2008-12-15 15:02:10 +00:00
Mark Fisher
88dd7f805d Added namespace support for PayloadDeserializingTransformer (INT-517). 2008-12-12 21:48:42 +00:00
Mark Fisher
5e70d0d3c3 Added namespace support for PayloadSerializingTransformer (INT-517). 2008-12-12 21:33:52 +00:00
Mark Fisher
9f22033303 Added namespace support for ObjectToStringTransformer (INT-516). 2008-12-12 21:13:09 +00:00
Mark Fisher
b1881f7b95 Added PayloadSerializingTransformer and PayloadDeserializingTransformer (INT-513). 2008-12-12 20:26:30 +00:00
Mark Fisher
65a2405104 Added ObjectToStringTransformer (INT-514). 2008-12-12 19:45:34 +00:00
Mark Fisher
bc4a20f6c5 All pre-defined internal header names are now valid Java identifiers. Dot delimiters have been replaced by underscores, and hyphenated names are now camelCase. The SimpleHeaderEnricherParser uses Conventions.attributeToPropertyName(). The attributes are now legal for passing as JMS properties (INT-511). 2008-12-09 21:32:29 +00:00
Mark Fisher
c053656af9 INT-506 2008-12-08 22:04:14 +00:00
Mark Fisher
b2ec607634 Added Method resolution for Message-typed parameters including Message implementations and resolution of Message payloads based on parameterized type (INT-504). 2008-12-08 21:34:04 +00:00
Mark Fisher
2c2a1be8ae Removed the MethodResolver interface and the DefaultMethodResolver and AnnotationMethodResolver classes. Only MethodInvokingAggregator was still using those, so that logic is now encapsulated there. If we find a need for this in the future, we can consider exposing it again, but for now it's less clutter for the API. 2008-11-26 15:36:25 +00:00
Mark Fisher
f572b370f3 An explicit 'trigger' property is now required for the AbstractPollingEndpoint. It no longer creates an arbitrary default. 2008-11-25 21:27:12 +00:00
Mark Fisher
dbc079ebe6 Test was accidentally left out of commit. 2008-11-25 20:31:26 +00:00
Mark Fisher
0e5b4bcb50 Removing the @Poller annotation. Now, any Annotation-based endpoint must have a SubscribableChannel reference for its inputChannel. If necessary, the new <bridge/> element can be used to convert PollableChannels to SubscribableChannels. 2008-11-25 19:45:16 +00:00
Mark Fisher
d28414d2c3 Added SourcePollingChannelAdapterFactoryBean. The 'poller' element is now required for inbound-channel-adapter elements unless a default poller has been configured. 2008-11-25 04:10:17 +00:00
Mark Fisher
f7d98d1f78 Moved ErrorHandlingTaskExecutor to the util package. 2008-11-24 22:59:00 +00:00
Mark Fisher
024c734333 Increased test timeout value. 2008-11-24 21:42:52 +00:00
Mark Fisher
79fdb179fc Added support for a top-level 'poller' element. A single top-level poller may have a value of 'default=true'. When using the namespace support, endpoints with pollable input-channels are now required to have an explicit poller sub-element or a 'default' poller within the context. The sub-element now also accepts a "ref" (INT-390). 2008-11-24 21:37:18 +00:00
Marius Bogoevici
3ee1e4921e INT-238, INT-371 Clean up aggregator code, solve some robustness issues 2008-11-23 07:44:18 +00:00
Mark Fisher
f69d774e09 The default IntervalTrigger (with interval of 10ms) is being configured within the AbstractPollingEndpoint only. The ConsumerEndpointFactoryBean no longer provides a default trigger but rather only passes along a non-null trigger property if one is configured on the bean definition. 2008-11-23 04:19:15 +00:00
Mark Fisher
83e15fbb9b formatting, etc 2008-11-23 04:12:29 +00:00
Mark Fisher
55c62a06e6 Added namespace support for a 'bridge' element that simply connects any input-channel to any output-channel. This enables the conversion between PollableChannels and SubscribableChannels and also provides throttling capabilities based on the polling interval (or cron-expression) and 'max-messages-per-poll' settings (INT-193). 2008-11-22 22:03:36 +00:00
Mark Fisher
f6e1463a42 Increased test timeout value. 2008-11-22 18:51:19 +00:00
Mark Fisher
abb370b257 Added the 'header-enricher' element to the core namespace (INT-489). 2008-11-22 15:43:39 +00:00
Mark Fisher
b53d96ba1e Added support for the 'throw-exception-on-rejection' attribute for the 'filter' element. 2008-11-21 22:52:11 +00:00
Mark Fisher
2b166d6471 INT-487 2008-11-21 22:03:27 +00:00
Mark Fisher
bbd58b830f INT-484 2008-11-21 16:05:53 +00:00