Set the file pointer property (WAS full profile)
Define the ibm.worklight.jndi.file property through the administration console of the WAS full profile.
Determine the location in the file system of the JNDI property file. See WAS full profile.
When we opt to configure JNDI properties using a property file located directly in the file system, we must set a property to point to the property file. This property is outside the property file and is set through the administration console.
We must log in to the WebSphere Application Server administration console and add the setting of the ibm.worklight.jndi.file property to the JVM custom properties.
- Select Servers > Server types > WebSphere Application Servers.
- Select the name of the server.
- Expand "Java and process management" and select "Process Definition".
- Select "Java Virtual Machine".
- Select "Custom Properties" and click New.
- Specify the name as ibm.worklight.jndi.file.
- Specify the value as the path to the property file. The directory $WAS_INSTALL/profiles/profile-name can be specified as ${USER_INSTALL_ROOT}; for example, that can be one of the following values:
- ${USER_INSTALL_ROOT}/config/mywlconfig.properties
- ${USER_INSTALL_ROOT}/config/cells/mycell/mywlconfig.properties
- ${USER_INSTALL_ROOT}/config/cells/mycell/clusters/cluster-name/mywlconfig.properties
- ${USER_INSTALL_ROOT}/config/cells/mycell/nodes/node-name/mywlconfig.properties
- ${USER_INSTALL_ROOT}/config/cells/mycell/nodes/node-name/servers/server-name/mywlconfig.properties
- Click Apply.
- Click Save.
What to do next
Use the normal web archive (WAR) files of the web applications. They can be installed as described elsewhere in Install and configure.To enable the property file, restart all MobileFirst Server components. These components are displayed in the WebSphere Application Server administration console under WebSphere enterprise applications.
Parent topic: Use a property file in the file system