An application developer needs to create a SQL adapter, with the name MyAdapter, to retrieve and update data in the database.
Using the Command Line Interface tool, what command should the application developer use to create the SQL adapter?
The add adapter command creates a new adapter, which is generated into the adapters folder of the current project.
Syntax: ADD ADAPTER add adapter [<name> --type|-t
Where
References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/dev/ r_wl_cli_options.html
An application developer needs to access Worklight server properties that are defined in the worklight.properties file.
Which of the following method definitions will enable the application developer to access the local.IPAddress property?
Object WL.Server.configuration
A map that contains all the server properties that are defined in the file worklight.properties.
Syntax
WL.Server.configuration ['property-name']
WL.Server.configuration.property-name
Both syntaxes are equivalent. When the property name contains a period ('.'), for example local.IPAddress, the array index syntax must be used.
Example
var addr = WL.Server.configuration['local.IPAddress'];
References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.0.0/com.ibm.worklight.help.doc/apiref/ r_object_wl_server_configuration.html
Which Worklight adapter is used to execute stored procedures in a database?
You can use the Worklight SQL adapter to execute parameterized SQL queries and stored procedures that retrieve or update data in the database.
References:
http://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/devref/ c_overview_of_ibm_worklight_adap.html?lang=en
An application developer intends to submit a notification to all the device subscriptions of a specified user using IBM Worklight Server side APIs.
Which JavaScript server side method will enable the application developer to accomplish this task?
WL.Server.notifyAllDevices submits a notification to all a specified user's device subscriptions.
References:
https://www.ibm.com/support/knowledgecenter/SSZH4A_6.0.0/com.ibm.worklight.help.doc/apiref/ r_method_wl_server_notifyalldevi.html
An application developer develops an adapter which invokes Java code for some of the custom security functions.
Which of the following Java packages is a valid domain name that can be referenced from the adapter code?
Companies use their reversed Internet domain name to begin their package names --- for example, com.example.mypackage for a package named mypackage created by a programmer at example.com.
References: https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html
Currently there are no comments in this discussion, be the first to comment!