Extend the portal class path
Custom code must either be added by a PAA or as APP through the administrative console. There are several options to add general code that is part of an EAR or WAR file.
- Add the custom code to a shared library.
- Use the administrative console to define a shared library, then associate the shared library with an application, module, or server.
- Add the shared library to the custom applications or to the entire HCL WebSphere Portal Server.
- Add the shared library to the custom application.
We can associate a shared library with an application or module. Classes represented by the shared library are then loaded in the application's class loader, making the classes available to the application.
- Add the shared library to the entire HCL WebSphere Portal.
We can associate shared libraries with the class loader of a server. Classes represented by the shared library are then loaded in a server-wide class loader, making the classes available to all applications deployed on the server.
- If we do not want to create a shared library, we can drop the code into...
/opt/IBM/WebSphere/wp_profile/classes/MyCustom.jar
The code is then available to all applications in the server.
- If we are developing a PAA, include the compressed files in either...
PAA_components/COMPONENTNAME/shared/app
PAA_components/COMPONENTNAME/shared/ext
The solution installer handles creating the shared libraries for these files.
Parent Developing