将 BlazeDS 与 jsf、jsp 前端结合使用
我想知道是否可以设置一个能够连接到 tomcat 服务器内的 BlazeDS 应用程序的 jsf bean。我的问题是,我已经有一个 Flex 应用程序,并且我想重用我为 Flex 应用程序编写的相同数据访问类,并使用 Flex 之外的另一个前端。有人能想出一种方法来实现这一点吗?
谢谢
编辑:或者是否可以通过 2 个不同的项目将 blazeDS 服务器的类实现作为 jar 包含共享?
i wonder if i could set up a jsf bean that is capable of connecting to the BlazeDS Application within a tomcat server. My problem is that i have already a flex application and i want to reuse the same data access classes which i wrote for the flex application with another frontend than flex. Can someone think of a way to realize that?
Thank you
EDIT: Or is it possible to share the class implementations for the blazeDS Server as a jar include through 2 differnt projects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想要的话,可以从 java 调用 blazeds 端点(请查看 此处。但是,阅读您的文章后,我的印象是您的一些代码是紧密耦合的......您应该能够重用您的服务(它们可以以不依赖的方式设计)在提出了像 flexcontext 等概念)。
It is possible to invoke blazeds endpoints from java, if that's what you want (take a look here. However reading your post I have the impression that some of your code is tightly coupled...you should be able to reuse your services (they can be designed in such a way to not depend on blazeds concepts like flexcontext etc).