...
The kernel will automatically register itself as an MBean in when it starts up so that it can be managed. It allows startup and shutdown and provides direct access to the ServiceManager and the ConfigurationService. All the other core services can be retrieved from the ServiceManager by their APIs.
Kernel registration is currently handled in the following ways:
- XMLUI or JSPUI application – Load the
org.dspace.servicemanager.servlet.DSpaceKernelServletContextListener
in their respectiveweb.xml
files. This Listener initializes a new Kernel, which "lives" until the Servlet Context is destroyed. - 'dspace' command-line launcher – The
org.dspace.app.laucher.ScriptLauncher
class initializes a new Kernel to run the command (and destroys it after the command is completed).
Kernel Startup and Access
The kernel can be started and accessed through the use of Servlet Filter/ContextListeners which are provided as part of the DSpace 2 utilities. Developers don't need to understand what is going on behind the scenes and can simply write their applications and package them as webapps and take advantage of the services which are offered by DSpace 2. Access to the kernel is provided via the Kernel Manager and the DSpace object which will locate the kernel object and allow it to be used.
...