Commit Graph

581 Commits

Author SHA1 Message Date
Mark Fisher
b3b346e175 MessagingAnnotationPostProcessor now depends on the Lifeycle interface rather than the MessageBus. It starts any endpoints that it creates itself rather than calling bus.registerEndpoint(). 2008-10-31 21:16:12 +00:00
Mark Fisher
5e5562e180 TaskScheduler bean name is now public (will likely move to a different class though). 2008-10-31 21:10:59 +00:00
Mark Fisher
aed3be2ae2 Registering endpoint directly with ApplicationContext instead of MessageBus. 2008-10-31 21:04:55 +00:00
Mark Fisher
25a174b35c Depends on Lifecycle interface only rather than MessageBus. 2008-10-31 21:02:37 +00:00
Mark Fisher
f3bbd7d705 Added reply timeouts. 2008-10-31 21:01:38 +00:00
Mark Fisher
35ae2ac334 Moved context refresh after bean registration. 2008-10-31 21:01:17 +00:00
Mark Fisher
380eb3baa1 removed 'lookupEndpoint' method 2008-10-31 17:33:33 +00:00
Mark Fisher
101f4717a2 deactivateEndpoint is now private 2008-10-31 17:22:50 +00:00
Mark Fisher
90f115eb91 fixed typo in inner class name 2008-10-31 15:55:52 +00:00
Mark Fisher
8f4d481ab2 No longer subtracting 1 from the max value in getRange(). 2008-10-31 14:29:05 +00:00
Jonas Partner
1631fe3921 refactored to avoid need for sleep 2008-10-30 16:34:01 +00:00
Jonas Partner
e44ec9d230 increase sleep 2008-10-30 14:45:40 +00:00
Jonas Partner
81629363a9 sleep after the latch to make sure the exception is there 2008-10-30 14:38:32 +00:00
Jonas Partner
efa42f761a make the throwables list volatile 2008-10-30 14:33:51 +00:00
Jonas Partner
6ac93f1825 remove extra wait 2008-10-30 14:20:29 +00:00
Iwein Fuld
cc9e98255e IN PROGRESS - issue INT-443: add javadoc to TaskScheduler.schedule
http://jira.springframework.org/browse/INT-443
2008-10-30 14:04:44 +00:00
Jonas Partner
05687725c3 increased timeouts 2008-10-30 07:34:57 +00:00
Jonas Partner
1ca740ab8b simplified so Runnable is wrapped not proxied 2008-10-29 15:08:26 +00:00
Jonas Partner
df5c72f653 BeanPostProcessor for proxying TaskExecutor instances to allow delegation to an error handler when async execution throws errors.
Relates to INT-440
2008-10-29 14:36:40 +00:00
Mark Fisher
fad389fd2e INT-438 2008-10-27 14:38:25 +00:00
Iwein Fuld
fddd8792d5 removed TODO, added constant for task executor bean name 2008-10-21 20:13:48 +00:00
Iwein Fuld
09fbae826d resolved BitSet todo and added hamcrest to .classpath again 2008-10-21 09:36:18 +00:00
Mark Fisher
379fed3f5b Refactored to associate latch with trigger instead of consumer. 2008-10-20 19:06:36 +00:00
Mark Fisher
6e4b501ec6 Moving the MethodPublishingInterceptor and @Publisher annotation support to the sandbox for now. 2008-10-20 17:55:36 +00:00
Mark Fisher
df8bf6ed8f Removed DefaultErrorChannel. 2008-10-20 15:52:36 +00:00
Mark Fisher
1dc2c175a2 Removed AbstractPoller and ChannelPoller. Refactored test cases to use PollingConsumerEndpoint. 2008-10-20 15:27:03 +00:00
Mark Fisher
f8b2724f7a ApplicationContextMessageBus now implements the ChannelResolver interface. The MessagePublishingErrorHandler for the SimpleTaskScheduler is now created in the MessageBusParser rather than in the initialization code of the MessageBus. 2008-10-20 13:50:22 +00:00
Mark Fisher
7124894646 MessagePublishingErrorHandler is now BeanFactoryAware and therefore capable of creating a default BeanFactoryChannelResolver. 2008-10-20 13:45:43 +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
31f1116cff Renamed DefaultMessageBusTests to ApplicationContextMessageBusTests (to match the renamed class under test). 2008-10-20 11:41:50 +00:00
Mark Fisher
25d0ac78b6 INT-435 2008-10-20 11:38:00 +00:00
Mark Fisher
e31520bc64 Renamed DefaultMessageBus to ApplicationContextMessageBus. 2008-10-20 10:43:16 +00:00
Mark Fisher
7f7fb10ae5 Added RouterFactoryBean. MethodInvokingRouter now provides a constructor to accept the 'targetObject' only (without a method or methodName). It will resolve a single method annotated with @Router or else fallback to a single public method (INT-433, INT-434). 2008-10-19 23:02:18 +00:00
Iwein Fuld
f099083d66 RESOLVED - issue INT-431: AbstractMessageBarrierConsumer calls processMessages twice
http://jira.springframework.org/browse/INT-431

Reworked testcase
2008-10-19 14:41:49 +00:00
Iwein Fuld
88b27fd9a9 IN PROGRESS - issue INT-431: AbstractMessageBarrierConsumer calls processMessages twice
http://jira.springframework.org/browse/INT-431
2008-10-19 13:05:24 +00:00
Iwein Fuld
3b769ee134 removed hamcrest (resolving error when running tests from eclipse) 2008-10-19 12:10:39 +00:00
Mark Fisher
55eb3ae05d MessageHeaders no removes any non-serializable values from its map upon serialization. A warn-level notification will be logged. 2008-10-17 15:04:10 +00:00
Mark Fisher
2cf1d7629e INT-428 2008-10-16 19:47:39 +00:00
Mark Fisher
f750be097f AbstractMessagingGateway now automatically throws the exception payload of a received ErrorMessage in send-and-receive operations is the 'shouldThrowErrors' value is set to true. It is true by default (related to INT-301). 2008-10-16 16:39:19 +00:00
Mark Fisher
a8b2918680 SubscribingConsumerEndpoint now extends AbstractEndpoint. 2008-10-16 15:36:30 +00:00
Mark Fisher
d8f750f077 Added toString() methods. 2008-10-16 15:33:33 +00:00
Mark Fisher
bd52dc6627 MessageChannelTemplate now sets its temporary reply channel as the errorChannel header along with the replyChannel header. 2008-10-16 14:47:51 +00:00
Mark Fisher
de25b6bd5c SimpleTaskScheduler logs at error-level now, but only if no errorHandler is available. 2008-10-16 14:39:09 +00:00
Mark Fisher
ae698b61fd MessagePublishingErrorHandler now retrieves the 'errorChannel' header from the 'failedMessage' of a MessagingException (if available). It resolves it if necessary (if it is a channel name instead of MessageChannel instance) by delegating to a ChannelResolver. 2008-10-16 02:36:25 +00:00
Mark Fisher
2f009b607b Creating the TaskScheduler as a bean definition within the context in MessageBusParser instead of instantiating with a constructor call. 2008-10-16 01:03:52 +00:00
Mark Fisher
0f52b88851 Added hamcrest to .classpath. 2008-10-16 00:51:38 +00:00
Mark Fisher
a8694526ec Removed the 'errorHandler' property from AbstractMessageConsumer and the 'error-handler' attribute from the schema. Will be adding configurable errorChannel Message header instead. 2008-10-15 22:21:27 +00:00
Mark Fisher
e6af632f7d Added 'errorChannel' header. 2008-10-15 21:41:39 +00:00
Mark Fisher
18b65fdf0a Renamed the 'pool-executor' element to 'thread-pool-task-executor' (INT-426). 2008-10-15 19:45:58 +00:00
Mark Fisher
905f76116f MessageHeaders now copies the Map passed into its constructor to enforce immutability of the Map itself (note: mutability of the values in the Map is intentionally left as a development decision). The clear() method now correctly throws UnsupportedOperationException along with the other Map methods that would otherwise be capable of modifying the Map (INT-427). 2008-10-15 19:38:53 +00:00