IBM Worklight 6.1 - 何时使用这些属性? publicWorkLightHostname /协议/端口 [英] IBM Worklight 6.1 - When are these properties used? publicWorkLightHostname/Protocol/Port

查看:134
本文介绍了IBM Worklight 6.1 - 何时使用这些属性? publicWorkLightHostname /协议/端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白worklight.properties中列出的属性的用途:

I do not understand the purpose of the properties listed in worklight.properties:


  • publicWorkLightHostname

  • publicWorkLightProtocol

  • publicWorkLightPort

当您在eclipse中执行Run As时设置这些属性 - >构建设置并部署目标...

Those properties are set when you do in eclipse the Run As -> "Build settings and deploy target..."

它们是否重复?哪一个是有效的?它们是以不同的方式使用的吗?

Are they duplicated? Which one is the valid one? Are they used in different ways?

我已阅读信息中心的文档:

I have read the documentation in info center:

https: //pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.deploy.doc%2Fadmin%2Fr_configuring_the_ibm_worklight_server_location.html

但是没有提到Build settings and ...。

But there is no mention to the "Build settings and...".

推荐答案

看到这个问题和答案: worklight服务器配置 - 分离适配器和服务器

See this question and answer: worklight server configuration - separating adapters and server


在worklight.properties中找到的属性与
Worklight Server相关。您提到的属性:
publicWorklightHostname publicWorklightPort publicWorklightProtocol
是必需的,因为服务器本身需要知道它的URL
到外部世界是什么,以便它可以将它嵌入重定向等。
这些也是移动网络,桌面浏览器
环境和Worklight控制台所必需的。

The properties that are found in worklight.properties relate to the Worklight Server. The properties you have mentioned: publicWorklightHostname, publicWorklightPort, publicWorklightProtocol, are required because the server itself needs to know what is its URL to the outside world, so that it can embed it in redirects and such. These are also required for the Mobile Web, Desktop Browser environments and Worklight Console.

例如:

创建一个新应用程序并添加Mobile Web环境> Run on Worklight Development Server部署。打开Worklight Console并单击获取应用程序URL。复制URL。转到worklight.properties,将 publicWorklightPort 更改为100;返回控制台,将之前的网址与当前网址进行比较。

For example:
Create a new application and add the Mobile Web environment > Run on Worklight Development Server deploy. Open Worklight Console and click on "Get application URL". Copy the URL. Go to worklight.properties, change the publicWorklightPort to "100"; Go back to console, compare the previous URL with the current.

来自Javier:

移动应用不使用它们。它们随.war一起提供,并由.war用于向用户提供信息,如web url,但服务器不会将它们用于执行移动应用程序。

From Javier:
They are not used by the mobile apps. They are shipped with the .war and are used by the .war to provide information to the user like the web url, but the server does not use them for the execution of a mobile app.

这篇关于IBM Worklight 6.1 - 何时使用这些属性? publicWorkLightHostname /协议/端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆