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:
1
'-- LotusScript to Java Connector
2
UseLSX "*javacon"
3
4
'-- SOFA Java Classes
5
Use "OAuth-SOFA-Java" '-- Script library from step 2
SOFA Example.nsf
512KB
Binary
Last modified 9mo ago