为什么工作灯的应用程序需要一个工作灯服务器? [英] Why do worklight apps need a Worklight Server?

查看:181
本文介绍了为什么工作灯的应用程序需要一个工作灯服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发在IBM工作灯为Android应用程序。我必须使用Web服务,但我需要工作灯服务器。我不知道这是为什么工作灯上开发的应用程序需要一个工作灯服务器。难道我开发的应用程序没有工作灯服务器?

I develop an application on IBM worklight for android. I have to use a web service, but I need worklight server. I wonder that why an app developed on worklight needs a worklight server. Don't I develop an application without worklight server ?

推荐答案

有各种功能的IBM工作灯提供所需的工作灯服务器。例如:

There are various features IBM Worklight provides that require the Worklight Server. For example:

  • Adapters that allow you to get data from REST and SOAP APIs via HTTP, SQL DB, JMS and IBM Cast Iron. These live on the Worklight Server and always send JSON back to the client, despite what the original service returned (e.g. XML). You can find more information in the Getting Started Modules. However, this does not stop you from doing normal AJAX requests from the client without using the Worklight Server. I posted an example of doing an simple AJAX request here. Another feature is that you can use Java (not JavaScript) code to provide functionality inside those Adapters.

<一个href="ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_17_-_Direct_Update.pdf">Direct更新 - 一旦你部署工作灯混合应用到工作灯服务器,现有的移动设备与安装的应用程序与服务器联系时,他们将被告知有一个更新。在用户已选择了升级,资源(HTML,CSS,JS)文件将被从工作灯服务器下载和他/她将有一个更新的应用程序,而无需通过苹果或谷歌的应用商店。还有一种方法来禁用访问工作灯混合应用程序。

Direct Updates - As soon as you deploy a Worklight Hybrid Application to the Worklight Server, when existing mobile devices with the application installed contact the server they will be notified that there's an update. After the user has selected to upgrade, resources (HTML, CSS, JS) files will be downloaded from the Worklight Server and he/she will have an updated application without going through Apple's or Google's Application stores. There is also a way to disable access to a Worklight Hybrid Application.

安全 - 这是一个依赖于工作灯服务器上的各种安全功能。例如:<一href="ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_25_-_Custom_Device_Provisioning.pdf">Custom设备配置和各种类型的<一个href="http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#authentication">Authentication.需要类似的数据存储功能与工作灯服务器通信的一些级别:<一href="ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_07_9_-_Overview_of_JSONStore.pdf">JSONStore和<一href="ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_07_8_-_Encrypted_Cache.pdf">Encrypted缓存。

Security - There are various security features that depend on the Worklight Server. For example: Custom Device Provisioning and various types of Authentication. Some level of communication with the Worklight Server is required for data storage features like: JSONStore and Encrypted Cache.

使用工作灯服务器是不需要,但它会限制功能,应用程序可以利用的量。

Using the Worklight Server is not required, but it will limit the amount of features your application can take advantage of.

这篇关于为什么工作灯的应用程序需要一个工作灯服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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