The HCL Leap runs within an OSGi framework environment. Code that extends the Leap needs to be packaged within OSGi bundles to run. Any Java™ development environment can be used to create custom bundles, but using the Eclipse IDE built-in OSGi tooling is recommended to minimize effort and errors.
Use the following script, or a similar script, to extract appropriate .jar files from the Leap .ear file. If you use the following script, update the variables to match your system.
SET EXTRACT_DIR=C:\temp\Builder_extract
SET JAVA_BIN=C:\hcl-java-sdk-60-win-i386\bin
SET LEAP_INSTALL_DIR=C:\Program Files\HCL\Leap Server\8.0\Leap
SET LEAP_VERSION=8.0.0.1013
SET FSP_VERSION=8.0.0.494
mkdir "%EXTRACT_DIR%"
mkdir "%EXTRACT_DIR%\fsp"
mkdir "%EXTRACT_DIR%\core"
mkdir "%EXTRACT_DIR%\Leap_bundles"
copy "%LEAP_INSTALL_DIR%\deploy\hcl-leap.ear" "%EXTRACT_DIR%"
cd "%EXTRACT_DIR%"
"%JAVA_BIN%\jar" xvf hcl-leap.ear
"%JAVA_BIN%\jar" xvf leap.war
copy "WEB-INF\lib\ibm.nitro.packaging.onejar.fsp-%LEAP_VERSION%.jar" "%EXTRACT_DIR%\fsp"
copy "WEB-INF\lib\ibm.nitro.packaging.onejar.core-%LEAP_VERSION%.jar" "%EXTRACT_DIR%\core"
cd "%EXTRACT_DIR%\fsp"
"%JAVA_BIN%\jar" xvf ibm.nitro.packaging.onejar.fsp-%LEAP_VERSION%.jar
"%JAVA_BIN%\jar" xvf FSPJARS.jar
copy ibm.fsp.core.service.framework-%FSP_VERSION%.jar ..\Leap_bundles
cd "%EXTRACT_DIR%\core"
"%JAVA_BIN%\jar" xvf ibm.nitro.packaging.onejar.core-%LEAP_VERSION%.jar
"%JAVA_BIN%\jar" xvf FSPBUNDLES.jar
copy ibm.nitro.services-%LEAP_VERSION%.jar ..\Leap_bundles
Refer to other documents and JavaDocs.
/
META-INF/
MANIFEST.MF
OSGI-INF/
Service1.xml
Service2.xml
com/
mycompany/
services/
hclLeap
Service1.class
Service2.class
any drive:\HCL\Leap\extensions\
/opt/HCL/Leap/extensions/
Important notes on directories:
Do not run a production system in debug mode or with debug logging enabled. Enabling these options degrades performance.