Commit Graph

663 Commits

Author SHA1 Message Date
Mark Fisher
f3155f86fa corrected reversed test method names 2012-01-03 11:30:45 -05:00
Gary Russell
85ea4f6411 INT-2342 Add Test Cases 2012-01-03 11:19:52 -05:00
Mark Fisher
ffe132986b INT-2342 2012-01-03 11:17:47 -05:00
Mark Fisher
5fae7d2a1f fixed RouterFactoryBean 2011-12-20 17:41:21 -05:00
Oleg Zhurakousky
dd66c98f61 INT-2319
changed logic behind default group id for QueueChannel to be messageStoreId:channelId

added support for resolving value if it is a placeholder
2011-12-20 14:10:40 -05:00
Mark Fisher
77abc55a1e INT-2322 2011-12-20 13:18:57 -05:00
Artem Bilan
d7851fef5a INT-2316: xsd improve for reply- & error-channels
Now <header-enricher> <reply-channel> & <error-channel> are 'referenceOrValueHeaderType'.
Added tests for 'value' & 'expression' attributes on <reply-channel> element.
2011-12-20 11:13:19 -05:00
Oleg Zhurakousky
86c574e493 INT-2311
modified implementation of MessageGroupQueue to use interruptible locks

Basically modeled it after LinkedBlockingQueue

changed to use ReadWriteLock

refactored MessageGroupQueue and added tests

changed MessageGroupQueue to use Condition

added messageGroupSize(groupId) method to MessageGroupStore and all the implementations

polishing based on Gary's comments

removed setStoreLock method in favor of additional constructors

polishing tests, decreased timeouts

made peek() thread safe

added logging
2011-12-19 19:32:23 -05:00
Artem Bilan
83700f73f4 INT-2315 headerValueRouter chain mapping minOcc=0
now <header-value-router> doesn't require mapping when it is defined inside <chain>.
Tests for <header-value-router> inside <chain>.
2011-12-19 15:41:01 -05:00
Mark Fisher
6e6e972e35 INT-2291 no longer counting down in failing handler or unexpected handler 2011-12-19 12:08:49 -05:00
Oleg Zhurakousky
8869da7a95 INT-2291
polished MixedDispatcherConfigurationScenarioTests.failoverNoLoadBalancingWithExecutorConcurrent() test even more, introduced 'taskSubmissionMonitor' as CountDownLatch to ensure that shutdown command is not called untill all tasks are submitted. Also made sure that ExecutorChannel is using the same tasks executor so shutdown command actually shuts down the same executor.
2011-12-19 09:22:47 -05:00
Oleg Zhurakousky
22cbe9e0dd INT-2291 polished broken test 2011-12-19 08:58:59 -05:00
Mark Fisher
e5ec1d48b2 INT-2291 temporarily ignoring test 2011-12-16 10:14:05 -05:00
Oleg Zhurakousky
0a8b348c98 INT-2299
put back 'channel-resolver' attribute with deprecation warnings

INT-2299 polishing

INT-2299 added XPATH test
2011-12-15 17:09:52 -05:00
Oleg Zhurakousky
18bb156ead INT-2291 polished test 2011-12-15 15:40:05 -05:00
Artem Bilan
8a1614cb00 INT-2288: done ResourceInboundChannelAdapterParserTests independents of OS & @After for remove files in tests 2011-12-14 11:37:39 -05:00
Oleg Zhurakousky
1ffdb19039 INT-2291 fixed failing test 2011-12-01 13:11:12 -05:00
Oleg Zhurakousky
34c51eb635 INT-2235-updated
added default filter as AcceptOnceCollectionFilter, chanhged parser to allow filter= to allow null filter
2011-11-23 15:05:32 -05:00
Mark Fisher
b8f17fd780 polishing 2011-11-22 19:10:07 -05:00
Artem Bilan
785d10263c INT-1906
fix & refactor DefaultInboundChannelAdapterParser, plus some improvements
2011-11-22 18:38:51 -05:00
Gunnar Hillert
0d7cc1052b INT-2258 In enricher: add setRequiresReply to XSD
for the ContentEnricher. This attribute defaults to 'true'.

For reference see: https://jira.springsource.org/browse/INT-2258
2011-11-22 16:21:43 -05:00
Gunnar Hillert
0aae7ec4e1 INT-2257 - Payload Enricher - Handle "Null" Messages due to reply-timeout
For reference see: https://jira.springsource.org/browse/INT-2257
2011-11-22 15:07:31 -05:00
Mark Fisher
a4cee32566 more test fixes for INT-2235 2011-11-22 15:02:15 -05:00
Mark Fisher
123ba64d2b polishing INT-2235 2011-11-22 14:51:39 -05:00
Mark Fisher
ab6f3f1f27 fixed polling period and renamed test class 2011-11-22 14:05:35 -05:00
Mark Fisher
32d64b19f4 ElementFilter now CollectionFilter
Refactored filter to handle a Collection of Resources

Made 'pattern' a constructor-arg since it's mandatory
2011-11-22 13:16:52 -05:00
Oleg Zhurakousky
193f3d2439 INT-2235
added support for resource-inbound-channel-adapter

  removed pre-fetching logic

  changed ResourcePatternResolvingMessageSource to return multiple Resources

  made filter optional
2011-11-22 12:31:32 -05:00
Gunnar Hillert
94f2dc755f INT-2216 - For Payload Enricher - add: 'request-timeout' and 'reply-timeout' attributes
For reference see: https://jira.springsource.org/browse/INT-2216
2011-11-22 11:38:02 -05:00
Oleg Zhurakousky
0ce12cbcf8 INT-2249
polished MethodInvokingMessageProcessor constructor that takes boolean argument by renaming the argument from 'requiresReply' to 'canProcessMessageList' which is what it really maps to in MessagingMethodInvokerHelper.HandlerMethod

  fixed 'filterSelectsNonVoidReturningMethodsOnly' and 'testOverloadedNonVoidReturningMethodsWithExactMatchForType' tests of MethodInvokingMessageProcessorTests to invoke the right constructor and commented out 'testVoidMethodsExcludedByFlag' test as its no longer valid
2011-11-21 17:11:43 -05:00
Artem Bilan
869bcd5d36 INT-2188 and INT-2165
add fail test for HeaderEnricherSupport

  more flexible and readable parsing for sub-elements of <si:header>
2011-11-10 16:59:43 -05:00
Gunnar Hillert
a22ec2f8b0 INT-2228 - Enricher fixes based on code review 2011-11-10 14:33:34 -05:00
Gunnar Hillert
33e356da28 INT-2228 - Content Enricher - request-channel should be optional
see also: https://jira.springsource.org/browse/INT-2228
2011-11-10 14:33:34 -05:00
Gunnar Hillert
31e42ebac7 INT-2224: Enricher - Allow to send a sub-set of the payload
see also: https://jira.springsource.org/browse/INT-2224
2011-11-04 13:47:11 -04:00
Gunnar Hillert
15fa8b035f INT-2219 - Setting the "auto-startup" attribute on Aggregators not possible
For reference see: https://jira.springsource.org/browse/INT-2219
2011-11-02 13:15:20 -04:00
Mark Fisher
aeaf7d6e89 initial implementation
added enricher parser

addressed PR comments
2011-10-25 12:41:31 -05:00
Oleg Zhurakousky
ddeab16394 INT-2182 interim
INT-2182 interim

INT-2182 work in progress

INT-2182 Refctored MessageGroupQueue and related classes
- created MGS.pollMessageFromGroup(groupId)
- removed MARKED messages concept
- renamed UNMARKED to just Messages
- removed keepReleasedMessages attribute
- refactored JdbcMessageStore to NOT store Messages that belong to a MessageGroup in the MessageGroup table, only relationship
- provided implementation of pollMessageFromGroup method in JdbcMessageStore
- polished tests

INT-2182 refactored MongoDB support to reflect changes to MGQ

INT-2182 added Gemfire support for polling

INT-2182 added Redis support

INT-2182 polishing
removed syncronized blocks from SMG, added availablePermits() method to UpperBound, polished JdbcMessageStore

INT-2182 polishing

INT-2182 polishing

INT-2182 polishing

INT-2182 polishing

INT-2182 polishing

INT-2182 polishing based on PR comments
2011-10-25 12:50:17 -04:00
Mark Fisher
73c9876aca remove channel-resolver attribute
remove ChannelResolver awareness from router parsers and FactoryBean

refactor 'channelIdentifierMap' -> 'channelMappings' and other clarity enhancements

trim array tokens

added AbstractMappingMessageRouter
2011-10-21 16:12:00 -04:00
Mark Fisher
b4043f82d8 enable asyncExecutor to be configured on gateways 2011-10-21 16:02:34 -04:00
Oleg Zhurakousky
a78782b594 INT-1813 added support for recognizig default components
Added support for recognizing default components in parent ApplicationContext before they get auto-registered in child AC

INT-1813 polishing
added containtBean check earlier, removed 'IfNecessary' from method names
2011-10-17 17:11:10 -04:00
Mark Fisher
1e08ce8e00 removed explicit versions from all xml files 2011-10-10 10:56:39 -04:00
Oleg Zhurakousky
946b9e2b82 INT-2152
parent issue for INT-2134, INT-2135, INT-2142, INT-2155, INT-2158
2011-10-07 12:48:20 -04:00
Oleg Zhurakousky
2930ad0065 INT-2031, INT-2112 Added support to fall back on FIFO semantics to the PriorityChannel if PRIORITY header is not provided, changed type of PRIORITY header to be Long instead of Integer
INT-2031, INT-2112 fixed one more broken test

INT-2031 changed the priority type back to Integer

INT-2031 added SequenceFallbackComparator

INT-2031 changed the name of the comparator from delegatingComparator to targetComparator
2011-10-06 08:59:07 -04:00
Mark Fisher
037e8aabc1 PollerParser correctly prevents multiple triggers 2011-09-27 16:52:00 -04:00
Oleg Zhurakousky
789c9d6da1 INT-1884 polished test that intermittently break CI
Increased the 'await' time in JdbcMessageStoreChannelIntegrationTests.testTransactionalSendAndReceive(), polished InnerDefinitionHandlerAwareEndpointParserTests.testAggregatorDefinitionSuccess to avoid NPE and increased its receive timeout as well
2011-09-23 11:04:53 -04:00
Mark Fisher
0439909b8a Add ReplyRequiredException 2011-09-23 10:16:00 -04:00
Mark Fisher
74628ccc5f No-arg gateway method can be a 'send' operation
- no-arg method will now be a send (instead of receive) if @Payload is present

  - added 'method' to the evaluation context variables with the String value of the invoked method's name

  - added test for new gateway no-arg method send option

  - enable 'payload-expression' in XML for no-arg methods

  - use per-method-invocation evaluation context for header expressions (provides 'args' and 'method' as context variables)
2011-09-20 13:15:44 -04:00
Gunnar Hillert
2c023f6fd1 Refactor/Standardize Router XSD Schema Attributes
- Add more documentation for schema elements in spring-integration-xml-2.1.xsd
  - Simplify Handling of Channel Resolution (Failures) for Routers
  - Fix PayloadTypeRouterTests
  - Update reference docs, XSD Schemas
  - Rename 'channel-resolution-required' to 'resolution-required'
  - Updated all tests accordingly
2011-09-20 11:08:43 -04:00
Oleg Zhurakousky
2e6a25f7af INT-1968A fixed the broken test 2011-09-02 16:10:36 -04:00
Oleg Zhurakousky
1d9f0b24e5 ObjectToMapTransformer now handles BigDecimal
refactored it to delegate to Jackson mapper (much simpler)
  deleted unused classes
  changed the name of the attribute to 'shouldFlattenKeys'
  added support and tests for Collection of Collections
  fixed method signature, polishing
  fixed javadoc
  polishing, fixed spelling error, updated javadocs
2011-09-02 12:44:23 -04:00
Mark Fisher
46925cf3e4 removed deprecated trigger sub-elements from core 2011-08-31 12:54:22 -04:00