Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » jms » connection » [javadoc | source]
org.springframework.jms.connection
public class: JmsTransactionManager102 [javadoc | source]
java.lang.Object
   org.springframework.transaction.support.AbstractPlatformTransactionManager
      org.springframework.jms.connection.JmsTransactionManager
         org.springframework.jms.connection.JmsTransactionManager102

All Implemented Interfaces:
    InitializingBean, ResourceTransactionManager, PlatformTransactionManager, Serializable

A subclass of JmsTransactionManager for the JMS 1.0.2 specification, not relying on JMS 1.1 methods like JmsTransactionManager itself. This class can be used for JMS 1.0.2 providers, offering the same API as JmsTransactionManager does for JMS 1.1 providers.

You need to set the "pubSubDomain" property , since this class will always explicitly differentiate between a javax.jms.QueueConnection and a javax.jms.TopicConnection .

Fields inherited from org.springframework.transaction.support.AbstractPlatformTransactionManager:
SYNCHRONIZATION_ALWAYS,  SYNCHRONIZATION_ON_ACTUAL_TRANSACTION,  SYNCHRONIZATION_NEVER,  logger
Constructor:
 public JmsTransactionManager102() 
 public JmsTransactionManager102(ConnectionFactory connectionFactory,
    boolean pubSubDomain) 
    Create a new JmsTransactionManager102, given a ConnectionFactory.
    Parameters:
    connectionFactory - the ConnectionFactory to manage transactions for
    pubSubDomain - whether the Publish/Subscribe domain (Topics) or Point-to-Point domain (Queues) should be used
    Also see:
    setPubSubDomain
Method from org.springframework.jms.connection.JmsTransactionManager102 Summary:
afterPropertiesSet,   createConnection,   createSession,   isPubSubDomain,   setPubSubDomain
Methods from org.springframework.jms.connection.JmsTransactionManager:
afterPropertiesSet,   createConnection,   createSession,   doBegin,   doCleanupAfterCompletion,   doCommit,   doGetTransaction,   doResume,   doRollback,   doSetRollbackOnly,   doSuspend,   getConnectionFactory,   getResourceFactory,   isExistingTransaction,   setConnectionFactory
Methods from org.springframework.transaction.support.AbstractPlatformTransactionManager:
commit,   determineTimeout,   doBegin,   doCleanupAfterCompletion,   doCommit,   doGetTransaction,   doResume,   doRollback,   doSetRollbackOnly,   doSuspend,   getDefaultTimeout,   getTransaction,   getTransactionSynchronization,   invokeAfterCompletion,   isExistingTransaction,   isFailEarlyOnGlobalRollbackOnly,   isGlobalRollbackOnParticipationFailure,   isNestedTransactionAllowed,   isRollbackOnCommitFailure,   isValidateExistingTransaction,   newTransactionStatus,   prepareForCommit,   registerAfterCompletionWithExistingTransaction,   resume,   rollback,   setDefaultTimeout,   setFailEarlyOnGlobalRollbackOnly,   setGlobalRollbackOnParticipationFailure,   setNestedTransactionAllowed,   setRollbackOnCommitFailure,   setTransactionSynchronization,   setTransactionSynchronizationName,   setValidateExistingTransaction,   shouldCommitOnGlobalRollbackOnly,   suspend,   triggerBeforeCommit,   triggerBeforeCompletion,   useSavepointForNestedTransaction
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.jms.connection.JmsTransactionManager102 Detail:
 public  void afterPropertiesSet() 
    In addition to checking if the connection factory is set, make sure that the supplied connection factory is of the appropriate type for the specified destination type: QueueConnectionFactory for queues, and TopicConnectionFactory for topics.
 protected Connection createConnection() throws JMSException 
    This implementation overrides the superclass method to use JMS 1.0.2 API.
 protected Session createSession(Connection con) throws JMSException 
    This implementation overrides the superclass method to use JMS 1.0.2 API.
 public boolean isPubSubDomain() 
    Return whether the Publish/Subscribe domain (Topics) is used. Otherwise, the Point-to-Point domain (Queues) is used.
 public  void setPubSubDomain(boolean pubSubDomain) 
    Configure the transaction manager with knowledge of the JMS domain used. This tells the JMS 1.0.2 provider which class hierarchy to use for creating Connections and Sessions.

    Default is Point-to-Point (Queues).