Java AMF 序列化
我正在从 Drupal 迁移到 Java。
我需要创建一个 servlet 来为现有的 Flash 播放器提供服务器数据。
到目前为止,这是通过 AMFPHP 模块完成的。
我正在寻找一种序列化简单类的方法。
OpenAMF 似乎是一个不错的选择,但我找不到任何文档或示例。 有什么建议吗?
谢谢。
I'm migrating from Drupal to Java.
I need to create a servlet to serve existing Flash player with server data.
Until now this was done with AMFPHP module.
I'm looking for a way to serialize a simple class.
OpenAMF seems like a good choice but I can't find any documentation or an example.
Any suggestions?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看看 BlazeDS
高度可配置,良好的文档(由 Adobe 开源) ,基于servlet(BlazeDS序列化器/反序列化器本质上是一个MessageBrokerServlet),它具有AMF的优点——更快,允许长轮询,推送技术等。
相当容易设置并开始使用。
Take a look at BlazeDS
Highly configurable, good documentation ( open-sourced by Adobe ), servlet-based ( the BlazeDS serializer / deserializer is essentially a MessageBrokerServlet ) and it comes with the advantages of AMF -- faster, allows long-polling, push technologies etc.
Fairly easy to set up and begin using as well.
理论上,BlazeDS 是一个起点,因为它是 Adobe 官方解决方案并且是开源的。还有 GraniteDS,我认为它有更好的文档,如果我要做这一切,这就是我开始的地方再来一次。
如果您选择 BlazeDS,那么我推荐这本书 Enterprise Development with Flex 作为唯一合适的信息来源您需要自定义 BlazeDS。
In theory, BlazeDS is the place to start as it is the official Adobe solution and it's open source. There's also GraniteDS, which I think has better documentation and this is where I'd start if I was doing it all over again.
If you go with BlazeDS, then I recommend the book Enterprise Development with Flex as the only decent source of information when you need to customize BlazeDS.