Commit Graph

57 Commits

Author SHA1 Message Date
Mark Fisher
93a2d2c9f2 Renamed the 'parseConsumer' method to 'parseHandler' since it creates an implementation of MessageHandler. 2008-11-21 17:39:01 +00:00
Mark Fisher
7b670760be Added support for a 'message-driven-channel-adapter' in the JMS namespace. Also, both the 'message-driven-channel-adapter' and the 'inbound-gateway' elements now accept a 'container' attribute with a reference to an instance of AbstractMessageListenerContainer (INT-477, INT-482). 2008-11-20 22:34:15 +00:00
Mark Fisher
b06ebff6b3 Refactored the JmsInboundGateway into the simpler JmsMessageDrivenEndpoint. The JmsInboundGatewayParser now handles a 'container' reference, else it creates a DefaultMessageListenerContainer (INT-482). The JmsMessageDrivenEndpoint will also provide the necessary implementation to support an event-driven inbound-channel-adapter for JMS (INT-477). 2008-11-20 21:30:47 +00:00
Mark Fisher
b404a6d129 Reordered setters. 2008-11-20 18:58:27 +00:00
Mark Fisher
3a7144d8d6 JmsInboundGateway now delegates to a MessageListener or SessionAwareMessageListener instance. The 'jms:inbound-gateway' parser now configures an instance of ChannelPublishingJmsMessageListener (part of INT-477 and INT-482). 2008-11-20 17:34:15 +00:00
Mark Fisher
92f13c8517 Initial commit of the new ChannelPublishingJmsMessageListener (part of INT-477 and INT-482). 2008-11-20 16:48:14 +00:00
Mark Fisher
e88d69529c Removed 'jms-template' attribute from elements where it should not be used. 2008-11-20 16:37:05 +00:00
Mark Fisher
da45a1a925 Removed unused ChannelPublishingJmsListener. 2008-11-20 16:36:11 +00:00
Mark Fisher
3e0ca28288 Added namespace support for the 'pub-sub-domain' attribute for both JmsInboundGateway and JmsOutboundGateway (INT-482). This is most likely an interim step while refactoring continues with the ultimate goal of providing a clearer separation between the MessageListener container and MessageListener implementation. This will also be relevant for INT-477. 2008-11-20 14:18:17 +00:00
Mark Fisher
17a93b64c0 Added 'pubSubDomain' property to JmsOutboundGateway. 2008-11-20 14:14:11 +00:00
Mark Fisher
24f3251b67 Added 'pubSubDomain' property to JmsInboundGateway. 2008-11-20 14:12:48 +00:00
Mark Fisher
6a4a246e31 JmsOutboundGateway now throws a MessageTimeoutException in case a JMS reply Message is not received within the alloted timeout. The null object is no longer passed to the MessageConverter where a misleading Exception ("payload must not be null") was being thrown (INT-479). 2008-11-17 17:07:11 +00:00
Mark Fisher
91638c78e2 Added support for the 'extractPayload' property for both JMS inbound and outbound Channel Adapters. This includes support for the "extract-payload" attribute in their respective XML elements in the "jms" namespace (INT-460). 2008-11-13 23:01:54 +00:00
Mark Fisher
ce99675340 Added the headerMapper, extractRequestPayload, and extractReplyPayload properties to JmsOutboundGateway. Also added the corresponding namespace support with 'header-mapper', 'extract-request-payload', and 'extract-reply-payload' attributes for the 'jms:outbound-gateway' element. This work is related to INT-368, INT-460, and INT-467. 2008-11-13 22:14:49 +00:00
Mark Fisher
6a77b2b642 Factored out the MessageListener implementation into a separate inner class. 2008-11-13 21:37:26 +00:00
Mark Fisher
e2e98d8c2c The 'extract-payload-for-reply' attribute for a JMS inbound-gateway is now 'extract-reply-payload'. The 'extract-request-payload' attribute has also been added. Both have default values of TRUE (the default for 'extract-reply-payload' had been FALSE). This work is related to INT-368, INT-460, and INT-467. 2008-11-13 21:22:40 +00:00
Mark Fisher
618282db91 Removed extra request channel settings in test class. 2008-11-13 01:16:58 +00:00
Mark Fisher
37e47f6510 Added support for the 'receive-timeout' on the JMS 'outbound-gateway' element. 2008-11-13 00:54:28 +00:00
Mark Fisher
5673edddcd INT-468 2008-11-13 00:37:08 +00:00
Mark Fisher
34f8cee5b0 Refactored JmsOutboundGateway so that a 'replyDestination' may be set. If none is provided, it will create a TemporaryQueue per invocation (INT-466). 2008-11-12 23:58:01 +00:00
Mark Fisher
c68f54df9e INT-302 2008-11-12 17:19:48 +00:00
Mark Fisher
fea222b37f The <message-bus/> element is no longer necessary. It has been removed from the XSD (INT-462). The annotations are enabled by a separate element, and the application-event-multicaster element is also now separate. 2008-11-11 23:08:45 +00:00
Mark Fisher
f4ccde6257 Message Endpoints and the SimpleTaskScheduler now manage their own lifecycles. The ApplicationContextMessageBus is no longer necessary (part of INT-462). The MessagePublishingErrorHandler now detects the default error channel within the beanFactory if necessary (INT-464). 2008-11-11 20:11:21 +00:00
Mark Fisher
ef1b7fe54b Moved classes from 'consumer' package to 'handler'. 2008-11-03 15:06:45 +00:00
Mark Fisher
515ed698a6 Renamed SubscribingConsumerEndpoint to EventDrivenConsumer. 2008-11-03 14:41:53 +00:00
Mark Fisher
3e2d09e5d7 Renamed PollingConsumerEndpoint to PollingConsumer. 2008-11-03 14:32:02 +00:00
Mark Fisher
39a8486ac8 Refactored MessageConsumer with onMessage to MessageHandler with handleMessage. 2008-11-03 14:17:53 +00:00
Mark Fisher
8279cce04d Upgraded dependencies to Spring 2.5.6 (INT-446). 2008-11-02 16:12:07 +00:00
Jonas Partner
47312fef0c removed unused channel from test 2008-10-23 10:19:25 +00:00
Jonas Partner
aaec86a88c 2008-10-23 10:00:45 +00:00
Mark Fisher
b6bd0b30fc Created 'consumer' package and moved consumer implementations from 'message' and 'endpoint' packages. 2008-10-20 12:09:30 +00:00
Mark Fisher
d36f80937d Added namespace support for <jms:outbound-gateway/> and updated the GatewayDemo sample (INT-429). 2008-10-17 21:54:09 +00:00
Mark Fisher
490b5970f5 Renamed JmsGateway to JmsInboundGateway (we also have JmsOutboundGateway now). The JmsSource is now JmsDestinationPollingSource. 2008-10-17 19:55:03 +00:00
Mark Fisher
e7a1140003 Refactored JmsGateway and HeaderMappingMessageConverter (related to INT-240, INT-355, and INT-376). 2008-10-17 17:43:59 +00:00
Mark Fisher
8df8a51810 JmsOutboundGateway now builds a copy of the request Message prior to sending since non-serializable header values will be removed when a JMS ObjectMessage is propagated. 2008-10-17 15:24:31 +00:00
Mark Fisher
cc70df8f08 changed the 'jms-gateway' element to 'inbound-gateway' 2008-10-17 03:25:22 +00:00
Mark Fisher
213ada0089 Added initial implementation of JmsOutboundGateway. 2008-10-17 02:02:42 +00:00
Mark Fisher
ebcccdc5c9 Moved MessagingException into the new 'org.springframework.integration.core' package. 2008-10-15 03:28:50 +00:00
Mark Fisher
262bd8fd9c Moved MessageChannel into the new 'org.springframework.integration.core' package. 2008-10-15 03:19:28 +00:00
Mark Fisher
7da7c9e5a0 Moved MessageHeaders into the new 'org.springframework.integration.core' package. 2008-10-15 03:10:17 +00:00
Mark Fisher
08043b541d Moved Message into the new 'org.springframework.integration.core' package. 2008-10-15 02:54:29 +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
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
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
039679b173 Using Asserts with IllegalArgumentException/IllegalStateException instead of ConfigurationException. 2008-09-29 15:06:27 +00:00