Skip to content
Browse files

fixes nullify

  • Loading branch information...
1 parent c46a32c commit 9f4db451b65c0fa6aa094ecf2d26d77dcb7bf7c7 @smaldini committed Apr 5, 2012
View
2 EventsSiGrailsPlugin.groovy
@@ -27,7 +27,7 @@ import org.grails.plugin.platform.events.registry.SpringIntegrationEventsRegistr
class EventsSiGrailsPlugin {
// the plugin version
- def version = "1.0.M1"
+ def version = "1.0.M2-SNAPSHOT"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.0 > *"
// the other plugins this plugin depends on
View
8 src/java/org/grails/plugin/platform/events/dispatcher/NullReplyInterceptor.java
@@ -17,8 +17,8 @@
*/
package org.grails.plugin.platform.events.dispatcher;
-import org.apache.log4j.Logger;
import org.grails.plugin.platform.events.publisher.TrackableNullResult;
+import org.grails.plugin.platform.events.registry.SpringIntegrationEventsRegistry;
import org.springframework.integration.Message;
import org.springframework.integration.MessageChannel;
import org.springframework.integration.channel.ChannelInterceptor;
@@ -36,11 +36,11 @@
*/
public class NullReplyInterceptor implements ChannelInterceptor {
- static final private Logger log = Logger.getLogger(NullReplyInterceptor.class);
-
public Message<?> preSend(Message<?> message, MessageChannel messageChannel) {
- ((PollableChannel)message.getHeaders().getReplyChannel()).send(new GenericMessage<TrackableNullResult>(new TrackableNullResult()));
+ if (message.getHeaders().get(SpringIntegrationEventsRegistry.GORM_EVENT_KEY) == null) {
+ ((PollableChannel) message.getHeaders().getReplyChannel()).send(new GenericMessage<TrackableNullResult>(new TrackableNullResult()));
+ }
return message;
}

0 comments on commit 9f4db45

Please sign in to comment.
Something went wrong with that request. Please try again.