The same error channel works in fine when defined in gateway
the logs in gateway is as follows
Code:
ERROR [org.springframework.integration.handler.LoggingHandler] - [Payload=org.springframework.integration.transformer.MessageTransformationException: org.springframework.integration.MessageHandlingException: org.milyn.validation.ValidationException: Error in transformation.
][Headers={timestamp=1320756798972, id=aa68b0c9-4e95-4ce1-9d1b-e61ad31410da, history=transform-error,errorlogger,errorlogger.adapter, errorChannel=org.springframework.integration.core.MessagingTemplate$TemporaryReplyChannel@18cdeb2, replyChannel=org.springframework.integration.core.MessagingTemplate$TemporaryReplyChannel@18cdeb2}]
but when the same is defined in header enricher it doesnt work and gives the following log
Code:
2011-11-08 13:56:16,321 ERROR [org.springframework.integration.handler.LoggingHandler] - [Payload=org.springframework.integration.transformer.MessageTransformationException: org.springframework.integration.MessagingException: failed to transform message headers][Headers={timestamp=1320756976321, id=b7160d60-e5ed-4b41-97e2-0546d7364dc9, history=transform-error,errorlogger,errorlogger.adapter}]
I can see that here we dont find the default error channel and reply channel i guess this is the reason for it not working.
How can i set it.
Thanks
Shekar