|
||||
Embedded NetKernel Servlet
Supplied in the Note: The NetKernel Servlet is provided as a convenience for pre-existing Servlet installations that would like to execute NetKernel hosted processes. NetKernel is transport and hence Servlet independent and does not require an app-server or servlet engine to create applications. Setting up the ServletThe Servlet supplied in the aux/ directory should run out of the box. It will boot NetKernel and use the default Salisbury Fulcrum to receive requests. The following steps can be followed to configure a new Servlet based NetKernel system.
Internal Transport
The NetKernel Servlet makes requests to NetKernel using the embedded API. All requests to NetKernel
will be made on the Internal Transport and will be handled in the context of the module which imports the Internal Transport. (see
embedded API for
details). Requests received on the internal transport from the Servlet will be of the form Accessing the Query Data/Servlet-Context within a NetKernel applicationIdoc
Like the Jetty HTTP transport, the NetKernel servlet XMLizes URL Query parameters and makes them available in
Each process invoked from the NetKernel Servlet makes the HttpServletRequest available as a parameter to the NetKernel process.
It is accessible with the active URI name <instr>
<type>myAccessor</type> <operand>this:param:servletRequest</operand> <target>var:whatever</target> </instr> AccessorIn an Accessor the HttpServletRequest can be obtained by requesting a resource and specifying the IAspectHttpServletRequest representation. As ever the Accessor must have received the servlet request as an argument.
|
||||
|
© 2003,2004, 1060® Research Limited
1060 registered trademark, NetKernel trademark of 1060 Research Limited
|
||||