Keel 2.1RC2

org.keel.servers.jms
Class KeelJmsServer

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.keel.servers.KeelAbstractServer
          extended byorg.keel.servers.jms.KeelJmsServer
All Implemented Interfaces:
EventListener, java.lang.Runnable

public class KeelJmsServer
extends KeelAbstractServer

A KeelServer instance calls an instance this class every time a request is received, up to a certain maximum number of active threads. This class handles the request in a seperate thread, and terminates once the response has been sent back to the client.

Version:
$Id: KeelJmsServer.java,v 1.10 2003/12/29 06:55:42 chatterj Exp $
Author:
Michael Nash

Nested Class Summary
 
Nested classes inherited from class org.keel.servers.KeelAbstractServer
 
Field Summary
private  int ackMode
           
private  Message message
           
private  QueueConnection qConnection
           
private  QueueConnectionFactory qFactory
           
private  java.lang.String senderName
           
private  int timeout
           
 
Fields inherited from class org.keel.servers.KeelAbstractServer
logger, myContainer
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
KeelJmsServer(java.lang.String name)
           
 
Method Summary
protected  void initialize()
           
private  void reply(Message message, Queue replyToQueue, ModelResponseMessage res)
           
 void run()
           
 void setAckMode(int newAckMode)
           
 void setContainer(Container newContainer)
           
 void setLogger(Logger newLog)
           
 void setMessage(Message newMessage)
           
 void setQueueConnection(QueueConnection newConnection)
           
 void setQueueConnectionFactory(QueueConnectionFactory newFactory)
           
 
Methods inherited from class org.keel.servers.KeelAbstractServer
getContainer, getContext, getLogger, isInitialized, receiveEvent, saveContext, setArgs, setInitialized, shutDown
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

private Message message

ackMode

private int ackMode

timeout

private int timeout

qFactory

private QueueConnectionFactory qFactory

qConnection

private QueueConnection qConnection

senderName

private java.lang.String senderName
Constructor Detail

KeelJmsServer

public KeelJmsServer(java.lang.String name)
Method Detail

setLogger

public void setLogger(Logger newLog)

setContainer

public void setContainer(Container newContainer)

initialize

protected void initialize()
                   throws ModelException
Overrides:
initialize in class KeelAbstractServer
Throws:
ModelException

setQueueConnectionFactory

public void setQueueConnectionFactory(QueueConnectionFactory newFactory)

setQueueConnection

public void setQueueConnection(QueueConnection newConnection)

setAckMode

public void setAckMode(int newAckMode)

setMessage

public void setMessage(Message newMessage)

run

public void run()

reply

private void reply(Message message,
                   Queue replyToQueue,
                   ModelResponseMessage res)
            throws JMSException
Throws:
JMSException

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.