i have 2 spring boot micro-services
core service reacts to some event (EmployeeCreatedEvent) which is triggered by web.
core services is using jackson serializer to serialize commands, queries, events and messages whereas the
web service is using xstream serializer.
i am getting below error in core:
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character (’<’ (code 60)): expected a valid value (JSON String, Number, Array, Object or token ‘null’, ‘true’ or ‘false’)
i am using below properties (jackson for core and default for web):
axon.serializer.general = jackson/default
axon.serializer.events = jackson/default
axon.serializer.messages = jackson/default
can some suggest whether it is ok to use different serializer for same event in different services.