public class

MessageListenerAdapter102

extends MessageListenerAdapter
java.lang.Object
   ↳ org.springframework.jms.listener.adapter.MessageListenerAdapter
     ↳ org.springframework.jms.listener.adapter.MessageListenerAdapter102

This class is deprecated.
as of Spring 3.0, in favor of the JMS 1.1 based MessageListenerAdapter

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class org.springframework.jms.listener.adapter.MessageListenerAdapter
[Expand]
Inherited Fields
From class org.springframework.jms.listener.adapter.MessageListenerAdapter
Public Constructors
MessageListenerAdapter102()
Create a new instance of the MessageListenerAdapter102 class with the default settings.
MessageListenerAdapter102(Object delegate)
Create a new instance of the MessageListenerAdapter102 class for the given delegate.
Protected Methods
void initDefaultStrategies()
Initialize the default implementations for the adapter's strategies: SimpleMessageConverter102.
void sendResponse(Session session, Destination destination, Message response)
Overrides the superclass method to use the JMS 1.0.2 API to send a response.
[Expand]
Inherited Methods
From class org.springframework.jms.listener.adapter.MessageListenerAdapter
From class java.lang.Object
From interface org.springframework.jms.listener.SessionAwareMessageListener
From interface org.springframework.jms.listener.SubscriptionNameProvider

Public Constructors

public MessageListenerAdapter102 ()

Create a new instance of the MessageListenerAdapter102 class with the default settings.

public MessageListenerAdapter102 (Object delegate)

Create a new instance of the MessageListenerAdapter102 class for the given delegate.

Parameters
delegate the target object to delegate message listening to

Protected Methods

protected void initDefaultStrategies ()

Initialize the default implementations for the adapter's strategies: SimpleMessageConverter102.

protected void sendResponse (Session session, Destination destination, Message response)

Overrides the superclass method to use the JMS 1.0.2 API to send a response.

Uses the JMS pub-sub API if the given destination is a topic, else uses the JMS queue API.

Parameters
session the JMS session to operate on
destination the JMS destination to send to
response the JMS message to send
Throws
JMSException