|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.figure8.join.core.messaging.EchoJMSConsumerBean
public class EchoJMSConsumerBean
This is a simple, dummy consumer that just echoes messages using commons
logging and store processed messages into a list. List can be flushed using
flushMessages() method. This implementation is suited for
tests and debugging mainly.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
Commons logger. |
| Constructor Summary | |
|---|---|
EchoJMSConsumerBean()
|
|
| Method Summary | |
|---|---|
java.util.List |
flushMessages()
|
java.lang.String |
getName()
Retrieve the name of this consumer. |
boolean |
hasReceivedMessage()
|
void |
onMessage(javax.jms.Message message)
Just echo messages using commons logger and add them to messages list. |
void |
setName(java.lang.String name)
Set the name identifying this consumer. |
void |
stop()
Implement this method to stop current process and free resources. |
void |
waitForMessagesToArrive(int messageCount)
Wait until messageCount messages have been received. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public EchoJMSConsumerBean()
| Method Detail |
|---|
public java.util.List flushMessages()
public boolean hasReceivedMessage()
public void waitForMessagesToArrive(int messageCount)
messageCount - Number of message to wait forpublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenermessage - JMS Message to processpublic java.lang.String getName()
getName in interface JMSConsumerBeanpublic void setName(java.lang.String name)
setName in interface JMSConsumerBeanname - The name of this consumerpublic void stop()
stop in interface JMSConsumerBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||