Flex Builder 端点令牌
我试图更好地了解端点的工作原理。我已阅读此并了解到 services.config 在编译时被“烘焙”到 swf 中。在那篇文章中,他引用了令牌...
<endpoint uri="http://myServer:{server.port}{context.root}/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
...其中 server.port 和 context.root 是令牌。我想我想知道我可以使用哪些令牌,如果它们像变量一样工作,我可以设置自己的自定义令牌吗?
编辑:我们很快就会转移到另一个开发服务器。我们有 2 位主要的 Flex 开发人员,当他们从存储库中签出项目时,我们希望他们的项目彼此独立工作......所以我想确保为每个开发人员项目位置正确设置端点。
I'm trying to get a better understanding of how endpoints work. I've read this and have learned that the services.config is "baked" into the swf at compile time. In that article he references the tokens...
<endpoint uri="http://myServer:{server.port}{context.root}/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
... where server.port, and context.root are the tokens. I guess what I'm wondering is what tokens are available to me, and if they act like variables can I set my own custom token?
Edit: We're moving to another development server soon. We have 2 main flex developers and when they check out projects from the repository we want their projects work work independently of each other... so I want to make sure the endpoint will get set correctly for each developers project location.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为,在编译时,令牌将被硬编码到应用程序中...显然情况并非如此,因此使用
{server.name}
对我们有用。I would have though that, when compiled, the tokens would be hard coded into the app... this apparently is not the case, so using
{server.name}
worked for us.