|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.bean.BridgeBean
A simple Bridge POJO which will copy messages from one destination to another optionally performing some kind of transformation.
| Constructor Summary | |
BridgeBean(Session session,
MessageProducer producer,
Destination destination)
|
|
| Method Summary | |
protected Message |
createOutputMessage(Message message)
A strategy method to create a new message given an input message |
protected void |
enrich(Message outputMessage,
Message inputMessage)
A strategy method to allow a message to be enriched, such as to append some properties from the input message |
protected void |
onJMSException(JMSException e)
Handle a JMS exception being thrown |
void |
onMessage(Message inputMessage)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BridgeBean(Session session,
MessageProducer producer,
Destination destination)
| Method Detail |
public void onMessage(Message inputMessage)
onMessage in interface MessageListener
protected void enrich(Message outputMessage,
Message inputMessage)
outputMessage - inputMessage -
protected Message createOutputMessage(Message message)
throws JMSException
message -
JMSExceptionprotected void onJMSException(JMSException e)
e -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||