how can I talk to a blazeds endpoint without flash

假装没事ソ 提交于 2019-12-10 16:23:45

问题


i would like to reuse my existing blazeds/java/spring apps to write some html 5 clients. Is anyone aware of a pure js (no swf bridge allowed) client that has pub/sub capability

so far my googling has found 2 projects - jsasmf (which uses a tiny swf) and amf.js which is missing pub/sub, but no other projects besides these 2

any ideas (crazy is fine) on how to do this appreciated

cheers


回答1:


Why not annotate your blazeds service object implementation with jersey annotations to expose it as a rest service. It should be possible to expose the same service through blazeds and rest at the same time. You could use Atmosphere to implement pub/sub




回答2:


This may be possible with another server. You would consume the service with flash on that server and expose its api with web sockets (for example) to other clients. Your clients would not need flash installed.




回答3:


Extending on Erik Martino's answer... you could try compiling a Java AMF client to JavaScript yourself using GWT.




回答4:


Late to the party but is seems Adobe has a JS Client too. I you download the trail of Dataservices ES 4.6 its in the resource folder. A tutorial can be found here



来源:https://stackoverflow.com/questions/11804619/how-can-i-talk-to-a-blazeds-endpoint-without-flash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!