|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jms.serverless.client.Interactive
An interactive JMS client. Run it with org.clester.Main.
org.clester.Main| Constructor Summary | |
Interactive()
|
|
| Method Summary | |
void |
close(int index)
|
void |
closeConsumer(java.lang.String consumerID)
Equivalent with calling JMS API method close() on the consumer instance. |
void |
createConnection()
|
void |
createConnection(java.lang.String connectionFactoryJNDIName)
|
void |
createConsumer(java.lang.String sessionID,
java.lang.String destinationJNDIName)
Creates a Consumer associated with the session whose index is specified as the first parameter. |
void |
createProducer(java.lang.String sessionID,
java.lang.String destinationJNDIName)
Creates a Producer associated with the session whose index is specified as the first parameter. |
void |
createSession(int index,
boolean transacted,
java.lang.String acknowledgeModeString)
Creates a session using the active connection. |
void |
exit()
|
void |
forward(java.lang.String consumerID,
java.lang.String producerID)
The method creates a "bridge" between a consumer and a producer: Every message received by the consumer is automatically forwarded to the producer and sent on the producer's destination. |
void |
lookupConnectionFactory(java.lang.String name)
|
void |
lookupDestination(java.lang.String destinationJNDIName)
Performs a JNDI lookup for the specified destination, overwritting the local cache if the destination is found. |
void |
runtime()
Displays a snapshot of the JMS runtime |
void |
send(java.lang.String producerID,
java.lang.String payload)
|
void |
setMessageListener(java.lang.String consumerID)
Attaches a message listener to the specified consumer, possibly replacing the current one. |
void |
start()
|
void |
start(int index)
|
void |
stop(int index)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Interactive()
throws java.lang.Exception
| Method Detail |
public void exit()
public void runtime()
throws java.lang.Exception
java.lang.Exception
public void lookupConnectionFactory(java.lang.String name)
throws java.lang.Exception
java.lang.Exception
public void lookupDestination(java.lang.String destinationJNDIName)
throws java.lang.Exception
java.lang.Exception
public void createConnection(java.lang.String connectionFactoryJNDIName)
throws java.lang.Exception
java.lang.Exception
public void createConnection()
throws java.lang.Exception
java.lang.Exception
public void start(int index)
throws java.lang.Exception
java.lang.Exception
public void start()
throws java.lang.Exception
java.lang.Exception
public void stop(int index)
throws java.lang.Exception
java.lang.Exception
public void close(int index)
throws java.lang.Exception
java.lang.Exception
public void createSession(int index,
boolean transacted,
java.lang.String acknowledgeModeString)
throws java.lang.Exception
index - - the index of the Connection this Session will be created on.transacted - - a boolean indicating whether the session to be created is
transacted or not.acknowledgeModeString - - The string representation of the acknowledgement mode for
the session to be created. One of "AUTO_ACKNOWLEDGE", "CLIENT_ACKNOWLEDGE",
"DUPS_OK_ACKNOWLEDGE".
java.lang.Exception
public void createProducer(java.lang.String sessionID,
java.lang.String destinationJNDIName)
throws java.lang.Exception
sessionID - - A "java.lang.Exception
public void createConsumer(java.lang.String sessionID,
java.lang.String destinationJNDIName)
throws java.lang.Exception
sessionID - - A "java.lang.Exception
public void closeConsumer(java.lang.String consumerID)
throws java.lang.Exception
consumerID - - A "java.lang.Exception
public void setMessageListener(java.lang.String consumerID)
throws java.lang.Exception
consumerID - - A "java.lang.Exception
public void send(java.lang.String producerID,
java.lang.String payload)
throws java.lang.Exception
producerID - - A "java.lang.Exception
public void forward(java.lang.String consumerID,
java.lang.String producerID)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||