|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jumpi.impl.application.EchoApplicationImpl
A JMS Replyer-like Jumpi client application which echoes each received message back to the sender. The Application instantiates a single Jumpi instance and uses this continuously to service incoming requests. The Application runs indefinitely, and is intended to be run by a Daemon Thread. The Appliction is configured to receive messages on a single JMS Queue with property 'echoapplication.jms.queue'.
Field Summary | |
static java.lang.String |
PROPERTY_JMS_QUEUE
The queue to use for receiving echo requests. |
Constructor Summary | |
EchoApplicationImpl()
|
Method Summary | |
void |
doWork(Jumpi j)
Run the application code. |
void |
run()
Instantiate a Jumpi instance which to use for receiving requests and sending the response. |
void |
setConfiguration(java.util.Hashtable config)
Set the Jumpi instance and application configuration values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROPERTY_JMS_QUEUE
Constructor Detail |
public EchoApplicationImpl()
Method Detail |
public void setConfiguration(java.util.Hashtable config)
setConfiguration
in interface Application
config
- the configuration Hashtable.public void run()
run
in interface java.lang.Runnable
java.lang.IllegalStateException
- if configuration is missing.
java.lang.IllegalArgumentException
- if configuration values are missing.public void doWork(Jumpi j) throws java.lang.Exception
j
- the started, configured Jumpi instance to use.
java.lang.Exception
- if any failure condition occurs.
java.lang.IllegalArgumentException
- if the configured receive Queue is
invalid.
|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |