@MetaData on Saga


Is there a way to use parameter annoted with @MetaData (or MetaData parameter) inside a Saga method, like a normal event handler ?


It should work by default. There’s nothing you need to do, other than adding the annotation to the parameter.



Hi Allard,

In fact, i just notice that even my event handlers did not work anymore with @MetaData.
I have found the problem : it is because i have defined my own local segment in the bean JGroupsConnectorFactoryBean, so in this case the property “interceptors” is ignored and i have to move the audit interceptor inside my SimpleCommandBus bean in the local segment.

Best regards,