apache-flex - 使用 services-config.xml 和未知的 context.root 编译 Flex 应用程序

标签 apache-flex flash actionscript-3 blazeds

我想使用 services-config.xml 文件编译我的 Flex 应用程序。但是,我被迫提供 context.root。

在我的设置中,只有在我的 .war 文件被命名并将其放入 webapps 目录中之后,上下文根(上下文路径)才会被知晓。

似乎必须有一种方法可以做到这一点,但我还没有想出任何办法。

有什么想法吗?

最佳答案

您应该能够在 services-config.xml 中定义动态 context.root

<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>

关于apache-flex - 使用 services-config.xml 和未知的 context.root 编译 Flex 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1166893/

相关文章:

flash - 拖动时调整 AIR 应用程序窗口的大小

flash - Youtube 网络摄像头录制如何工作?其他网络摄像头录制解决方案?

actionscript-3 - 使用类似 haar 的功能在 Flash 中进行对象检测

apache-flex - 使用Youtube AS3 Chromeless Player的安全性错误

actionscript-3 - 在 Chrome/浏览器控制台上跟踪

javascript - 控制 YouTube 视频播放器中的左/右音频 channel 音量

actionscript-3 - 以简单的方式将参数传递给 AS3 中的事件监听器......它存在吗?

actionscript-3 - AS3 从一个类到另一个类调度自定义事件

apache-flex - Actionscript flex : Converting # colors to uint

ios - iOS 上的 Flex 4.6 TextInput 键盘