A number of JavaScript root objects are available when you are implementing a controller for a Surf Web Script, such aspage andremote. Sometimes you might have custom Java code that you want to call from JavaScript controllers, this is possible by adding custom JavaScript root objects.
Architecture Information:Share Architecture
This is implemented as a Repository extension, seeRepository JavaScript root objects
JavaScript root object implementations does not lend themselves very well to be manually installed in an application server. Build a Repository JAR instead.
Use a Repository JAR.