public class

DefaultMessageListenerContainer102

extends DefaultMessageListenerContainer
java.lang.Object
   ↳ org.springframework.jms.support.JmsAccessor
     ↳ org.springframework.jms.support.destination.JmsDestinationAccessor
       ↳ org.springframework.jms.listener.AbstractJmsListeningContainer
         ↳ org.springframework.jms.listener.AbstractMessageListenerContainer
           ↳ org.springframework.jms.listener.AbstractPollingMessageListenerContainer
             ↳ org.springframework.jms.listener.DefaultMessageListenerContainer
               ↳ org.springframework.jms.listener.DefaultMessageListenerContainer102

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

Class Overview

A subclass of DefaultMessageListenerContainer for the JMS 1.0.2 specification, not relying on JMS 1.1 methods like SimpleMessageListenerContainer itself.

This class can be used for JMS 1.0.2 providers, offering the same facility as DefaultMessageListenerContainer does for JMS 1.1 providers.

Summary

[Expand]
Inherited Constants
From class org.springframework.jms.listener.DefaultMessageListenerContainer
From class org.springframework.jms.listener.AbstractPollingMessageListenerContainer
[Expand]
Inherited Fields
From class org.springframework.jms.listener.DefaultMessageListenerContainer
From class org.springframework.jms.listener.AbstractJmsListeningContainer
From class org.springframework.jms.support.JmsAccessor
Public Constructors
DefaultMessageListenerContainer102()
Protected Methods
Connection createConnection()
This implementation overrides the superclass method to use JMS 1.0.2 API.
MessageConsumer createConsumer(Session session, Destination destination)
This implementation overrides the superclass method to use JMS 1.0.2 API.
Session createSession(Connection con)
This implementation overrides the superclass method to use JMS 1.0.2 API.
Connection getConnection(JmsResourceHolder holder)
This implementation overrides the superclass method to accept either a QueueConnection or a TopicConnection, depending on the domain.
Session getSession(JmsResourceHolder holder)
This implementation overrides the superclass method to accept either a QueueSession or a TopicSession, depending on the domain.
boolean isClientAcknowledge(Session session)
This implementation overrides the superclass method to avoid using JMS 1.1's Session getAcknowledgeMode() method.
[Expand]
Inherited Methods
From class org.springframework.jms.listener.DefaultMessageListenerContainer
From class org.springframework.jms.listener.AbstractPollingMessageListenerContainer
From class org.springframework.jms.listener.AbstractMessageListenerContainer
From class org.springframework.jms.listener.AbstractJmsListeningContainer
From class org.springframework.jms.support.destination.JmsDestinationAccessor
From class org.springframework.jms.support.JmsAccessor
From class java.lang.Object
From interface org.springframework.beans.factory.BeanNameAware
From interface org.springframework.beans.factory.DisposableBean
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.context.Lifecycle
From interface org.springframework.context.Phased
From interface org.springframework.context.SmartLifecycle

Public Constructors

public DefaultMessageListenerContainer102 ()

Protected Methods

protected Connection createConnection ()

This implementation overrides the superclass method to use JMS 1.0.2 API.

Returns
  • the new JMS Connection
Throws
JMSException

protected MessageConsumer createConsumer (Session session, Destination destination)

This implementation overrides the superclass method to use JMS 1.0.2 API.

Parameters
session the JMS Session to create a MessageConsumer for
destination the JMS Destination to create a MessageConsumer for
Returns
  • the new JMS MessageConsumer
Throws
JMSException

protected Session createSession (Connection con)

This implementation overrides the superclass method to use JMS 1.0.2 API.

Parameters
con the JMS Connection to create a Session for
Returns
  • the new JMS Session
Throws
JMSException

protected Connection getConnection (JmsResourceHolder holder)

This implementation overrides the superclass method to accept either a QueueConnection or a TopicConnection, depending on the domain.

Parameters
holder the JmsResourceHolder
Returns
  • an appropriate Connection fetched from the holder, or null if none found

protected Session getSession (JmsResourceHolder holder)

This implementation overrides the superclass method to accept either a QueueSession or a TopicSession, depending on the domain.

Parameters
holder the JmsResourceHolder
Returns
  • an appropriate Session fetched from the holder, or null if none found

protected boolean isClientAcknowledge (Session session)

This implementation overrides the superclass method to avoid using JMS 1.1's Session getAcknowledgeMode() method. The best we can do here is to check the setting on the listener container.

Parameters
session the JMS Session to check
Returns
  • whether the given Session is in client acknowledge mode
Throws
JMSException