我想使用 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/