• Print options
Home > Learning Center > Build servlets in JavaScript

Build servlets in JavaScript

ShowTable of Contents

Introduction

-initial purpose: access to XPages2Eclipse API for users that do not use Dojo for the web UI
-extension to work on Domino server: no XPages2Eclipse API, but servlet and Domino APIs

Benefits

-build servlets and REST services in JavaScript instead of Java
-call code in other Notes databases, even in the local Lotus Notes client, clear separation of application code and a modular architecture
-performance gains compared to XAgent approach (XPage
 

Activation on Domino server

-Notes.ini variable for activation (global / per database)
mndX2ERPCEnabled_path_to_db_nsf=true
mndX2ERPCEnabled=true

Code and data Caching

-Highly optimized for performance
-same JavaScript engine for all all requests to one database
-SSJS library contents, Java class files and resources cached in memory
-OSGI commands to flush caches 
 
x2ejs show
x2ejs drop all
x2ejs drop -n-

x2ecl show
x2ecl drop all
x2ecl drop -n-
 

Advanced features


-Include command
-code checks design element signature for all included libraries
 

Security


-Elevated mode
restrictelevationmode=1
runelevated_C1257889004BEB96=true



This Version: 3 May 17, 2011 8:44:05 PM by Karsten Lehmann  Mindoo
Originally Added: Version 1 May 17, 2011 3:52:57 PM by Karsten Lehmann  Mindoo