⚒️Integrate With Non-Java Code
How to integrate SOFA with other languages
LotusScript (HCL Notes/Domino)
LotusScript to Java (LS2J) allows you to call Java code directly from your HCL Notes/Domino application code.
Step 1: Download SOFA
Download SOFA and rename the file SOFA.jar to SOFA.zip
Step 2: Import the SOFA classes into HCL Domino Designer:
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
Step 3: Use the code
Add the following two statements in your LotusScript code:
'-- LotusScript to Java Connector
UseLSX "*javacon"
'-- SOFA Java Classes
Use "OAuth-SOFA-Java" '-- Script library from step 2
Sample Database
Last updated