Ensure messages flow as JSON

This is for readability and also for compatibility with
Angel apps.
This commit is contained in:
Dave Syer
2016-03-18 10:35:08 +00:00
parent e5d5688618
commit 5a14eda63a
8 changed files with 232 additions and 24 deletions

View File

@@ -97,4 +97,11 @@ to your app (and enable tracing). Or you could tap into the
NOTE: Any Bus application can trace acks, but sometimes it will be
useful to do this in a central service that can do more complex
queries on the data. Or forward it to a specialized tracing service.
queries on the data. Or forward it to a specialized tracing service.
== Broadcasting Your Own Events
The Bus can carry any event of type `RemoteApplicationEvent`, but the
default transport is JSON and the deserializer needs to know which
types are going to be used ahead of time. To register a new type you
can use `@JsonTypeName` on your custom class.