Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
524 views
in Technique[技术] by (71.8m points)

ibm mobilefirst - IBM Worklight - How to disable Direct Update?

I would like to disable Direct Update. Is it possible?

With connectOnStartup = false not work.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you would like to disable Direct Update completely, open a browser and navigate to Worklight Console. There you need to tick the checkbox titled "Lock this version".

enter image description here

This option means that any future deployments of a .wlapp (of the particular enviornment and its particular version number) will not update its web resources on the server, thus not trigger a Direct Update.

See this IBM Worklight user documentation topic: Locking an application


connectOnStartup=false only means that upon application launch, the app will not try to connect to the Worklight Server; if your application then utilizes WL.Client.connect or invokes an adapter procedure, this triggers an init request to the Worklight Server. The application is then connected to the Worklight Server. Now if, for example, the app will return to the foreground (after being in the background), a Direct Update check will be made.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...