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

发布于 2024-07-27 21:51:42 字数 198 浏览 3 评论 0原文

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

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

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

有任何想法吗?

I would like to compile my flex application with a services-config.xml file. However, I am forced to supply a context.root.

In my setup, the context root (context path) isn't known until my .war file is named and dropped into the webapps directory.

It seems like there has to be a way to do this, but I haven't been able to come up with anything.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自由如风 2024-08-03 21:51:42

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

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

You should be able to define a dynamic context.root in the services-config.xml

<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文