【发布时间】:2009-12-16 12:00:02
【问题描述】:
我想用 services-config.xml 文件编译我的 flex 应用程序。但是,我不得不提供 context.root。
在我的设置中,在我的 .war 文件被命名并放入 webapps 目录之前,上下文根(上下文路径)是未知的。
似乎必须有办法做到这一点,但我一直想不出任何办法。
有什么想法吗?
【问题讨论】:
标签: apache-flex flash actionscript-3 blazeds
我想用 services-config.xml 文件编译我的 flex 应用程序。但是,我不得不提供 context.root。
在我的设置中,在我的 .war 文件被命名并放入 webapps 目录之前,上下文根(上下文路径)是未知的。
似乎必须有办法做到这一点,但我一直想不出任何办法。
有什么想法吗?
【问题讨论】:
标签: apache-flex flash actionscript-3 blazeds
您应该能够在 services-config.xml 中定义动态 context.root
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
【讨论】: