Integrate With Non-Java Code
How to integrate SOFA with other languages
LotusScript to Java (LS2J) allows you to call Java code directly from your HCL Notes/Domino application code.
- Expand Code > Script Libraries
- New Script Library: Create a new library (e.g. "OAuth-SOFA-Java") of Type Java
- Import > Archive and select the directory with the SOFA.zip file from the previous step
- Save the script library
These Java class files will be stored in the background. There will be no visible information in HCL Domino Designer.
Add the following two statements in your LotusScript code:
'-- LotusScript to Java Connector
'-- SOFA Java Classes
Use "OAuth-SOFA-Java" '-- Script library from step 2