public class

SimpleMessageListenerContainer102

extends SimpleMessageListenerContainer
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.SimpleMessageListenerContainer
             ↳ org.springframework.jms.listener.SimpleMessageListenerContainer102

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

Class Overview

A subclass of SimpleMessageListenerContainer 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 SimpleMessageListenerContainer does for JMS 1.1 providers.

Summary

[Expand]
Inherited Fields
From class org.springframework.jms.listener.AbstractJmsListeningContainer
From class org.springframework.jms.support.JmsAccessor
Public Constructors
SimpleMessageListenerContainer102()
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.
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.SimpleMessageListenerContainer
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 SimpleMessageListenerContainer102 ()

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 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