Question 1
An application developer wants to test the application inside Worklight Studio but with an external Liberty profile. Using the RUN As > Build Settings and Deploy Target command, the application developer configured the Worklight Server with the external Liberty profile.
Before the application developer can connect the application in Worklight Studio to an existing Liberty profile, which of the following must the application developer verify?
In the worklight.properties file, the public WorkLightHostname is set to localhost or true public listening IP.
In the worklight.properties file, the public WorkLightHostname is set to * (wildcar symbol) or true public listening IP.
In server.xml of the target server, the host attribute inside the element is set to localhost or true public listening IP.
In server.xml of the target server, the host attribute inside the httpEndpoint element is set to * (wildcard symbol) or true public listening IP.
Correct answer: C
Explanation:
To configure WebSphere Application Server Liberty profile for the Worklight Server administration manually, you must modify the server.xml file. Add the following global JNDI entries in the server.xml file: <jndiEntry jndiName="ibm.worklight.admin.jmx.host" value="localhost"/> <jndiEntry jndiName="ibm.worklight.admin.jmx.port" value="9443"/> <jndiEntry jndiName="ibm.worklight.admin.jmx.user" value="WorklightRESTUser"/> <jndiEntry jndiName="ibm.worklight.admin.jmx.pwd" value="WorklighRESTUserPassword"/> <jndiEntry jndiName="ibm.worklight.topology.platform" value="Liberty"/> <jndiEntry jndiName="ibm.worklight.topology.clustermode" value="Standalone"/> Where:ibm.worklight.admin.jmx.port is the HTTPS port. You can find its value in the httpEndpoint element of the server.xml file. References https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.installconfig.doc/admin/t_configuring_liberty_profile_for_wladmin_manually.html
To configure WebSphere Application Server Liberty profile for the Worklight Server administration manually, you must modify the server.xml file.
Add the following global JNDI entries in the server.xml file:
<jndiEntry jndiName="ibm.worklight.admin.jmx.host" value="localhost"/>
<jndiEntry jndiName="ibm.worklight.admin.jmx.port" value="9443"/>
<jndiEntry jndiName="ibm.worklight.admin.jmx.user" value="WorklightRESTUser"/>
<jndiEntry jndiName="ibm.worklight.admin.jmx.pwd" value="WorklighRESTUserPassword"/>
<jndiEntry jndiName="ibm.worklight.topology.platform" value="Liberty"/>
<jndiEntry jndiName="ibm.worklight.topology.clustermode" value="Standalone"/>
Where:
ibm.worklight.admin.jmx.port is the HTTPS port. You can find its value in the httpEndpoint element of the server.xml file.
References
https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.installconfig.doc/admin/t_configuring_liberty_profile_for_wladmin_manually.html