These are chat archives for spring-cloud/spring-cloud
discovery: image: progrium/consul command: -server -bootstrap ports: - 8400:8400 - 8500:8500 - 8600:8600 user-service: build: ./user-service links: - discovery
@dsyer the docs mention that to publish custom events on the bus you can extend
RemoteApplicationEvent and also need to add
@JsonTypeNameon your custom class. Project I'm working on had redis binder (which I assume just used Java serialization) and all was good. Now switched to Kafka binder and getting
BusJacksonMessageConverter : Could not resolve type id 'xxx' into a subtype of .... I have a tree of classes with the top level extending
RemoteApplicationEvent. I tried adding
@JsonTypeName to all classes but no dice.
Looking at spring-cloud/spring-cloud-bus@5a14eda, I don't see where
@JsonTypeName would be scanned/picked up? Looks like it's only considering classes in the
DEFAULT_PACKAGE (see here)
Probably missing something though.
@JsonTypeNamein that package
ObjectMapperto register my own subtypes and wouldn't be able to extend
BusJacksonMessageConverteras it as default access.