MessageListenerAdapter@Deprecated public class MessageListenerAdapter102 extends MessageListenerAdapter
MessageListenerAdapter subclass for the JMS 1.0.2 specification,
not relying on JMS 1.1 methods like MessageListenerAdapter itself.
This class can be used for JMS 1.0.2 providers, offering the same facility as MessageListenerAdapter does for JMS 1.1 providers.
logger, ORIGINAL_DEFAULT_LISTENER_METHOD| Constructor and Description |
|---|
MessageListenerAdapter102()
Deprecated.
Create a new instance of the MessageListenerAdapter102 class
with the default settings.
|
MessageListenerAdapter102(Object delegate)
Deprecated.
Create a new instance of the MessageListenerAdapter102 class
for the given delegate.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
initDefaultStrategies()
Deprecated.
Initialize the default implementations for the adapter's strategies:
SimpleMessageConverter102.
|
protected void |
sendResponse(Session session,
Destination destination,
Message response)
Deprecated.
Overrides the superclass method to use the JMS 1.0.2 API to send a response.
|
buildListenerArguments, buildMessage, extractMessage, getDefaultListenerMethod, getDelegate, getDestinationResolver, getListenerMethodName, getMessageConverter, getResponseDestination, getSubscriptionName, handleListenerException, handleResult, invokeListenerMethod, onMessage, onMessage, postProcessProducer, postProcessResponse, resolveDefaultResponseDestination, setDefaultListenerMethod, setDefaultResponseDestination, setDefaultResponseQueueName, setDefaultResponseTopicName, setDelegate, setDestinationResolver, setMessageConverterpublic MessageListenerAdapter102()
public MessageListenerAdapter102(Object delegate)
delegate - the target object to delegate message listening toprotected void initDefaultStrategies()
protected void sendResponse(Session session, Destination destination, Message response) throws JMSException
Uses the JMS pub-sub API if the given destination is a topic, else uses the JMS queue API.
sendResponse in class MessageListenerAdaptersession - the JMS session to operate ondestination - the JMS destination to send toresponse - the JMS message to sendJMSException - if thrown by JMS API methodsMessageListenerAdapter.postProcessProducer(javax.jms.MessageProducer, javax.jms.Message),
Session.createProducer(javax.jms.Destination),
MessageProducer.send(javax.jms.Message)