|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jms.listener.adapter.MessageListenerAdapter
org.springframework.jms.listener.adapter.MessageListenerAdapter102
MessageListenerAdapter
@Deprecated public class MessageListenerAdapter102
A 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.
Field Summary |
---|
Fields inherited from class org.springframework.jms.listener.adapter.MessageListenerAdapter |
---|
logger, ORIGINAL_DEFAULT_LISTENER_METHOD |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageListenerAdapter102()
public MessageListenerAdapter102(Object delegate)
delegate
- the target object to delegate message listening toMethod Detail |
---|
protected void initDefaultStrategies()
initDefaultStrategies
in class MessageListenerAdapter
MessageListenerAdapter.setMessageConverter(org.springframework.jms.support.converter.MessageConverter)
,
SimpleMessageConverter102
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 MessageListenerAdapter
session
- the JMS session to operate ondestination
- the JMS destination to send toresponse
- the JMS message to send
JMSException
- if thrown by JMS API methodsMessageListenerAdapter.postProcessProducer(javax.jms.MessageProducer, javax.jms.Message)
,
Session.createProducer(javax.jms.Destination)
,
MessageProducer.send(javax.jms.Message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |