
Jeeves Servlet Loading
enables administrators to load local or
remote servlets at the server. The servlets can then
be invoked explicitly.
When the Jeeves Administration web page is opened and the
"servlet loading" section on the left side is selected, the right side
comes up with a list of loaded servlets. There are five columns on the
right side for each servlet:
- The first column is the servlet name.
- The second column is the name of the class file that
the servlet name corresponds to.
- The third column is the location of the class file. For
local servlets, this column reads "local". For remote servlets,
the remote URL is displayed.
- The fourth column is a comma separated list of arguments. Each argument
is of the form "name=value".
- The fifth column is the servlet info as returned by the servlet. If the
servlet has not been invoked yet, this has the string "Servlet not loaded".
Loading a local servlet
To load a local servlet follow these steps:
- Choose a name for the servlet by entering it in the servlet name field.
This name should be unique within the server.
- Fill in the class name text field. The name of the class should include
the package name and not include the ".class" extention. For
example "sun.server.http.FileServlet" is a valid class name.
- Leave the class location field blank
- Enter comma separated "name=value" pairs for the argument field.
- Push the "Add" button. You should see a status of "succes" in the status field.
And you should see an entry for the servlet in the right window.
Loading a remote servlet
To load a remote servlet follow these steps
- Make sure the servlet that is to be loaded is not in the local CLASSPATH of the
server into which the servlet is loaded. Local classes in the CLASSPATH are always
given precedence over remote servlets. So if the loader can find a local servlet with
the same class name, it will load that in preference to the remote class.
- Choose a name for the servlet by entering it in the servlet name field.
This name should be unique within the server.
- Fill in the class name text field. The name of the class should include
the package name and not include the ".class" extention. For
example "sun.server.http.FileServlet" is a valid class name.
- In the class location field, enter the full URL ending with a slash where
the class file can be found in the remote server. For example, if HelloWorld.class
exists on a remote Jeeves server goa.eng
in the top level public_html directory, then this might be http://goa.eng/.
- Enter comma separated "name=value" pairs for the argument field.
- Push the "Add" button. You should see a status of "succes" in the status field.
And you should see an entry for the servlet in the right window.
Invoking a loaded servlet
To invoke a loaded servlet, open the URL
http://<server-host-name>/servlet/<servletName>
Deleting a servlet mapping
A servlet name to class mapping can be deleted as follows:
- Select the entry which you wish to delete
- Choose the "Delete" entry.
jeeves@goa.eng.sun.com
Last modified: 14 Aug 1996