Add the shared library (WAS full profile)
Define the shared library and specify which web applications use it.
Install the shared library jndiprops.jar in a suitable directory in the WAS installation directory.
We can install the property file as a shared library for all MobileFirst Server components. To do so, we must log in to the WebSphere Application Server administration console to add the shared library.
- Select Environment > Shared Libraries.
- Select the scope in the fields Node= and Server=.
- Click New.
- Enter a name, for example, "MobileFirst JNDI Properties".
- Enter a description, for example, "IBM MobileFirst JNDI property package".
- Enter the classpath of the jndiprops.jar file. The $WAS_INSTALL/profiles/profile-name directory can be specified as ${USER_INSTALL_ROOT}.
- Select the option "Use an isolated class loader for this shared library".
- Click Apply.
- Click Save.
- Specify which web applications should use the shared library.
Repeat this procedure for the other required web applications from among operations console, MobileFirst project, Application Center Service, Application Center Console.
- In the administration console, select Applications > Application Types > WebSphere enterprise applications. You should stop all applications that you are going to change, because the operations run faster when the applications are stopped.
- Select an application, for example, IBM MobileFirst administration service.
- Select Shared library references.
- In "Application", select IBM MobileFirst administration service.
- Click Reference shared libraries.
- Move the MobileFirst JNDI Properties library from Available to Selected.
- Click OK.
- Click Save.
What to do next
Go to Applications > Application Types > WebSphere enterprise applications and restart all the web applications.
Parent topic: Use a shared library of JNDI properties