轴突框架:在现有应用程序中将Xstream序列化事件转换为Jackson Serializer
我们有一个使用Axon框架编写的应用程序。基于我们与Xstream所面临的问题,已经提出了转换为Jackson Serializer的想法。
是否可以使用Axon中的配置选项将事件存储中的当前事件转换为JSON表示形式,或者我们必须手动处理此内容?
We have an application that was written using the Axon Framework. Based on the issues we are having with XStream, the idea of converting to the Jackson serializer has been proposed.
Is it possible to convert the current events in the event store to a JSON representation using configuration options in Axon or are we going to have to handle this manually?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
轴突框架或任何扩展名提供了实现这一目标的东西。
重写事件商店的最直接方法是编写一个基本的事件处理应用程序,该应用程序从商店中读取,并写(带有所需的调整)来存储两个。
从努力的角度来看,这就是这样的:
Configurer
中分别在应用程序中配置第二个EventStore
。该第二个商店的EventStorageEngine
应接收JackSonSerializer
,而默认商店应使用xstreamSerialializer
Axon Framework, nor any of the extensions, provide something out of the box to achieve this.
The most straightforward way to rewrite an event store is to write a basic event handling application that reads from store one and writes (with the desired adjustments) to store two.
From an effort perspective, that's something like this:
EventStore
in your application separately from Axon'sConfigurer
. This second store'sEventStorageEngine
should receive theJacksonSerializer
, whereas the default store should use theXStreamSerializer