org.keel.clients
Class KeelStarter
java.lang.Object
org.keel.clients.KeelStarter
- public class KeelStarter
- extends java.lang.Object
This is a utility class that starts the Keel server-side in its own thread using its own classloader to isolate the server/client classpaths/classes. This class is used typically by Keel's webapp clients such as Struts and Cocoon clients when the client/server needs to run locally in the same JVM.
- Version:
- $Revision: 1.6 $ $Date: 2004/05/10 21:07:46 $
- Author:
- Shash Chatterjee Created on Nov 7, 2002
| Field Summary |
private java.lang.Thread |
myThread
|
private static java.lang.String |
PREFIX
|
private Channel |
requestChannel
|
private static long |
timeout
Amount of time to wait for a channel to either take a request or send back a response. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timeout
private static long timeout
-
Amount of time to wait for a channel to either take a request or send back a response. TODO: Make configurable
myThread
private java.lang.Thread myThread
-
requestChannel
private Channel requestChannel
-
PREFIX
private static java.lang.String PREFIX
-
KeelStarter
public KeelStarter()
createKeelDirectServer
protected void createKeelDirectServer()
throws java.lang.Exception
-
Create a KeelDirectServer and return to server/ui bridge
-
- Throws:
java.lang.Exception
CreateAndStartMonitorForKeelDirectServerThread
private void CreateAndStartMonitorForKeelDirectServerThread(java.lang.ClassLoader loader,
java.lang.Thread threadToWatch,
java.lang.Thread KeelDirectServerThread)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
-
This method is intended to monitor on of the threads in the current context, so that it can tell the keelDirectServer to die when the current context dies.
-
- Parameters:
loader -
- Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CreateAndStartKeelDirectServerThread
private java.lang.Thread CreateAndStartKeelDirectServerThread(java.lang.ClassLoader loader)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
-
- Parameters:
loader -
- Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
execute
public KeelResponse execute(KeelRequest message)
throws java.lang.Exception
-
- Throws:
java.lang.Exception
getRequestChannel
protected Channel getRequestChannel()
-
Please see keelframework.org for information about new Keel releases.