SimpleMessageListenerContainer@Deprecated public class SimpleMessageListenerContainer102 extends SimpleMessageListenerContainer
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.
AbstractJmsListeningContainer.SharedConnectionNotInitializedExceptionlifecycleMonitor, sharedConnectionMonitorlogger| Constructor and Description |
|---|
SimpleMessageListenerContainer102()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Connection |
createConnection()
Deprecated.
This implementation overrides the superclass method to use JMS 1.0.2 API.
|
protected MessageConsumer |
createConsumer(Session session,
Destination destination)
Deprecated.
This implementation overrides the superclass method to use JMS 1.0.2 API.
|
protected Session |
createSession(Connection con)
Deprecated.
This implementation overrides the superclass method to use JMS 1.0.2 API.
|
protected boolean |
isClientAcknowledge(Session session)
Deprecated.
This implementation overrides the superclass method to avoid using
JMS 1.1's Session
getAcknowledgeMode() method. |
createListenerConsumer, doInitialize, doShutdown, doStart, initializeConsumers, isPubSubNoLocal, onException, prepareSharedConnection, processMessage, setConcurrency, setConcurrentConsumers, setConnectLazily, setPubSubNoLocal, setTaskExecutor, sharedConnectionEnabled, validateConfigurationcheckMessageListener, commitIfNecessary, doExecuteListener, doInvokeListener, doInvokeListener, executeListener, getDefaultSubscriptionName, getDestination, getDestinationDescription, getDestinationName, getDurableSubscriptionName, getExceptionListener, getMessageListener, getMessageSelector, handleListenerException, invokeErrorHandler, invokeExceptionListener, invokeListener, isAcceptMessagesWhileStopping, isExposeListenerSession, isSessionLocallyTransacted, isSubscriptionDurable, rollbackIfNecessary, rollbackOnExceptionIfNecessary, setAcceptMessagesWhileStopping, setDestination, setDestinationName, setDurableSubscriptionName, setErrorHandler, setExceptionListener, setExposeListenerSession, setMessageListener, setMessageSelector, setSubscriptionDurableafterPropertiesSet, createSharedConnection, destroy, doRescheduleTask, doStop, establishSharedConnection, getBeanName, getClientId, getPausedTaskCount, getPhase, getSharedConnection, initialize, isActive, isAutoStartup, isRunning, logRejectedTask, refreshSharedConnection, rescheduleTaskIfNecessary, resumePausedTasks, runningAllowed, setAutoStartup, setBeanName, setClientId, setPhase, shutdown, start, startSharedConnection, stop, stop, stopSharedConnectiongetDestinationResolver, isPubSubDomain, resolveDestinationName, setDestinationResolver, setPubSubDomainconvertJmsAccessException, getConnectionFactory, getSessionAcknowledgeMode, isSessionTransacted, setConnectionFactory, setSessionAcknowledgeMode, setSessionAcknowledgeModeName, setSessionTransactedpublic SimpleMessageListenerContainer102()
protected Connection createConnection() throws JMSException
createConnection in class JmsAccessorJMSException - if thrown by JMS API methodsConnectionFactory.createConnection()protected Session createSession(Connection con) throws JMSException
createSession in class JmsAccessorcon - the JMS Connection to create a Session forJMSException - if thrown by JMS API methodsConnection.createSession(boolean, int)protected MessageConsumer createConsumer(Session session, Destination destination) throws JMSException
createConsumer in class SimpleMessageListenerContainersession - the JMS Session to create a MessageConsumer fordestination - the JMS Destination to create a MessageConsumer forJMSException - if thrown by JMS API methodsprotected boolean isClientAcknowledge(Session session) throws JMSException
getAcknowledgeMode() method.
The best we can do here is to check the setting on the listener container.isClientAcknowledge in class JmsAccessorsession - the JMS Session to checkJMSException - if thrown by JMS API methodsSession.getAcknowledgeMode(),
Session.CLIENT_ACKNOWLEDGE