public abstract class AbstractJmsReceiver extends LogEventListener implements javax.jms.MessageListener
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger
Logger to capture diagnostics.
|
Constructor and Description |
---|
AbstractJmsReceiver() |
Modifier and Type | Method and Description |
---|---|
protected Object |
lookup(Context ctx,
String name)
Looks up an object from the Context.
|
void |
onMessage(javax.jms.Message message)
Listener that receives the event.
|
log
protected Logger logger
public void onMessage(javax.jms.Message message)
onMessage
in interface javax.jms.MessageListener
message
- The received message.protected Object lookup(Context ctx, String name) throws NamingException
ctx
- The Context.name
- The name of the object to locate.NamingException
- if an error occurs.Copyright © 1999-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.