将 Adobe Flex 前端与 Java 后端连接时,我创建的服务未显示在数据向导中
尝试使用数据向导连接到服务时,列表中没有显示任何服务。
因此,我尝试手动编写一些代码来为我执行此操作,并在不存在服务时向我显示默认错误,即 -
“[MessagingError message='Destination 'LeagueTableService' 要么不存在,要么目标没有通道已定义(并且应用程序未定义任何默认通道。)']"
因此,我相信远程配置或远程目标的规范有问题,但我不知道是什么。我已经遵循了一些教程和分步步骤,但它们似乎都做了一些不同的事情,但都不起作用。
如果有一份我在这之前必须完成的事情的清单,那么我将不胜感激。
另外,服务是否必须属于特定类型?当我的远程处理服务立即返回一个 List[] 时。我对此很陌生,所以不知道这是否是问题所在。
任何帮助将不胜感激。
编辑:回答 Kevin 的问题:
- 我正在使用内置的 Flash Builder 数据向导。
- 它是一个 OracleXE 数据库,我使用 Java 访问它。
- 发布在下面。
- 我创建了一个 RemoteObject 并让它返回结果或错误的默认字符串。我得到了故障错误。
...
当我检查配置文件以发布它们时,我注意到缺少一件事,即我的服务目标标记内的一个小“channel =“my-amf”。它已修复!
感谢您的回复,Kevin,它尽管如此,还是受到赞赏!
When trying to connect to the service using a data wizard, no services show on the list.
So I tried to write a bit of code manually to do it for me and show me the default error when no service exists, which is this -
"[MessagingError message='Destination 'LeagueTableService' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']"
So, I believe there's something wrong with the specification of the remoting-config or the remoting destination, but I don't know what. I've followed a few tutorials and step-by-steps but they all seem to do something a little different and none of it works.
If there's a checklist of things I must have done before this works then it'd be greatly appreciated.
Also, does the service have to be of a specific type? As my remoting service returns a List[] at the minute. I'm quite new to this so don't know if this could be the problem.
Any help would be greatly appreciated.
EDIT: To answer Kevin's questions:
- I'm using the built-in Flash Builder data wizard.
- It's an OracleXE database and I'm accessing it using Java.
- Posted below.
- I created a RemoteObject and had it return either the default String for a result or a fault. And I got the fault error.
...
As I was going through the config files to post them I noticed one thing that was missing, a small "channel="my-amf" within my service destination tag. And it's fixed!
Thanks for your response, Kevin, it was appreciated nevertheless!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您将 blazeDS 的 WEB-INF/flex 文件夹复制到 Java 后端的 WebContent/WEB-INF 中,它应该可以工作。
If you copy WEB-INF/flex folder of the blazeDS into your WebContent/WEB-INF of your Java back end it should work.