|Use the OSGi console to install the event handler after it has been developed and enabled.
This content applies to Lotus Quickr 8.5 for WebSphere Portal only.
Use the OSGi console to install the event handler after it has been developed and enabled.
- To enable the OSGi console, modify the OSGi runtime settings and restart the runtime. For security, only enable the console in the development phase and disable it after testing the event handlers.
- Find the OSGi runtime installation at quickrhome\\PortalServer\\clb\\contentapi.clb.events.handlers\\installableApps\\contentapi.clb.events.handlers.ear\\contentapi.clb.events.handlers.war.
- Extract the .war file, and open the web.xml, then remove the comment around initialize parameters commandline and modify the value as follows: In this example, nnnnn is the telnet port number.
- Repackage the .war file, reinstall it, and start it by using the WebSphere® Application Server. Use telnet at the command prompt locally to connect the OSGi console. If you cannot connect, use netstat on server to ensure that the port is listening. Ensure the web.xml file has been changed and the .war file has been started.
- After connecting to the OSGi console, the following prompt appears:
- Type ss to list all currently installed bundles. Use command install to install your event handler as follows: osgi>install file:<JAR_PATH> For example:
In this case, there is a bundle named quickr.events.samples_1.0.0.jar under the server at c:\\. Place the bundle on the server.
- Use the command start <BUNDLE_ID> to start the event handler. Type ss to find the BUNDLE_ID of your event handler.
Parent topic: Configuring events