Commit Graph

9623 Commits

Author SHA1 Message Date
Mark Fisher
c16c3abb30 Removed the @ChannelAdapter annotation. The inbound version is no longer viable with @Poller removed (so that the polling configuration would be properly externalized - see previous commit log entries). But, the <inbound-channel-adapter/> element is trivial anyways. As far as outbound, the @ServiceActivator can be used for a method with void-return, so that was redundant actually. One consistent way to perform the job should be sufficient. 2008-11-25 20:23:40 +00:00
Mark Fisher
c1741edf83 Removed the @Poller annotation (since configuration metadata should be externalized). Updated ChannelAdapterAnnotationPostProcessor. Only outbound Channel Adapters can be configured with annotations now that @Poller is no longer available. We may add a "poller" attribute to the @ChannelAdapter for providing a reference. That would enable annotation-based inbound adapters. However, the XML support (the <inbound-channel-adapter/> element) is pretty trivial, so this should not be necessrary.Otherwise, the @ChannelAdapter may actually be removed altogether since a @ServiceActivator annotation can be used for any outbound Method (even when no return-value is expected). 2008-11-25 20:02:13 +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
1f0104d6f8 Updated QuoteDemo to use an 'inbound-channel-adapter' XML element since the @Poller annoation is being removed. 2008-11-25 19:40:31 +00:00
Mark Fisher
69727ae8c4 GatewayProxyFactoryBean accepts non-PollableChannel for defaultReplyChannel. However, if a receive-only operation is performed (e.g. for a no-arg method), an IllegalStateException will be thrown when the receive attempt cannot proceed if the channel is not a PollableChannel. 2008-11-25 18:09:11 +00:00
Mark Fisher
816299a5e5 Added default poller element. 2008-11-25 04:38:29 +00:00
Mark Fisher
57ddc4057c Added default pollers for inbound adapters. 2008-11-25 04:28:54 +00:00
Mark Fisher
b73a8d2949 Added default pollers for inbound adapters. 2008-11-25 04:20:30 +00:00
Mark Fisher
204deb4163 Added default poller. 2008-11-25 04:13:47 +00:00
Mark Fisher
678158c382 Added default poller. 2008-11-25 04:11:59 +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
2bcab9c2df Added a poller sub-element for the FileInboundChannelAdapterParserTests. 2008-11-25 04:05:57 +00:00
Mark Fisher
23db1c0fe9 Added some constraints for poller parsing. 2008-11-25 03:05:12 +00:00
Mark Fisher
3717556f19 INT-494 2008-11-24 23:23:50 +00:00
Mark Fisher
6b259faa14 Removed empty package 2008-11-24 22:59:27 +00:00
Mark Fisher
f7d98d1f78 Moved ErrorHandlingTaskExecutor to the util package. 2008-11-24 22:59:00 +00:00
Mark Fisher
d476051838 Added default poller element for XML-based Cafe Demo. 2008-11-24 22:19:10 +00:00
Mark Fisher
fe68598395 Added the default poller element 2008-11-24 22:14:41 +00:00
Mark Fisher
9d49d2b21b Modified schema so that 'input-channel' and 'output-channel' attributes are not required. This will enable those elements to be used within a top-level 'chain' element. 2008-11-24 21:45:42 +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
Mark Fisher
d4237d0fca The JMS 'outbound-gateway' element now accepts a 'poller' sub-element. 2008-11-24 21:23:59 +00:00
Mark Fisher
5b654913f1 Creating child ParserContext with containingBeanDefinition to prevent extra bean definition registrations when parsing the child elements. 2008-11-24 19:45:34 +00:00
Mark Fisher
bc62a6c632 Added xml dependencies to .classpath 2008-11-24 18:31:06 +00:00
Jonas Partner
901339b71e added documentation for xml messaging sample 2008-11-24 17:18:59 +00:00
Mark Fisher
8a43a9f709 JMS adapter IDs are now xsd:ID types instead of xsd:string. 2008-11-24 13:20:35 +00:00
Mark Fisher
9abe52d9f7 Added documentation for MessageHandlerChain and the <chain/> element (INT-486) 2008-11-24 04:12:17 +00:00
Mark Fisher
039c124dad Added documentation for the 'bridge' element (INT-486) 2008-11-24 01:54:50 +00:00
Mark Fisher
b16431e265 INT-492 2008-11-23 21:28:02 +00:00
Marius Bogoevici
b6c5c54ae6 INT-238, INT-371 minor correction 2008-11-23 07:54:45 +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
5d414912e5 Added some debug logging. 2008-11-22 22:57:28 +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
Jonas Partner
25766bc7be 2008-11-22 21:57:10 +00:00
Jonas Partner
4735c700b1 sample for INT-432 documentation to follow 2008-11-22 21:49:24 +00:00
Mark Fisher
986049d23b Added MessagingBridge implementation. 2008-11-22 21:12:04 +00:00
Jonas Partner
c79ffc6635 fix for INT-491 2008-11-22 20:18:41 +00:00
Mark Fisher
f6e1463a42 Increased test timeout value. 2008-11-22 18:51:19 +00:00
Mark Fisher
ea5e66c7a4 Added support for a 'destinationResolver' property reference for the inbound JMS Channel Adapter including namespace support (INT-488). 2008-11-22 18:21:03 +00:00
Mark Fisher
8772fd8169 Added support for request and reply Destination names for the JmsOutboundGateway. The 'destinationResolver' property reference may also be provided including namespace support with the 'destination-resolver' attribute. This also applies to the 'inbound-gateway' and 'message-driven-channel-adapter' elements (INT-488). 2008-11-22 17:52:38 +00:00
Mark Fisher
a71127fb4d Removed the USER_PREFIX that was considered when mapping between MessageHeaders and JMS properties. Now, the DefaultJmsHeaderMapper will attempt to map all MessageHeaders and those with the JmsHeaders.PREFIX are the only ones treated differently (e.g. for mapping to the JMSCorrelationId). 2008-11-22 17:09:14 +00:00
Mark Fisher
2129047231 MessageMappingException now extends MessagingException rather than MessageHandlingException, and it provides a constructor that accepts 'description' and 'cause' without a 'failedMessage'. This is necessary to support inbound mapping errors where no 'failedMessage' has been created yet. 2008-11-22 16:57:58 +00:00
Mark Fisher
b9435fdc41 The 'request-channel' attribute is now optional on the jms:outbound-gateway element so that the gateway may be added to a chain. 2008-11-22 16:55:51 +00:00
Mark Fisher
75903736e2 Modified WebServiceDemo to show the 'chain' element and the 'header-enricher'. 2008-11-22 16:17:16 +00:00
Mark Fisher
4e72c719f9 Added the 'overwrite' attribute for the 'header-enricher' element. 2008-11-22 16:13:31 +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
d943af0e87 Added postProcessHeaders method to the SimpleHeaderEnricherParser (preparing for INT-489). 2008-11-22 14:37:28 +00:00
Mark Fisher
086eb6e374 Converted internal header names to be hyphenated for compatibility with the header-enricher. 2008-11-22 14:35:32 +00:00