Class SharedTransactionManager

    • Field Detail

      • log

        protected transient org.slf4j.Logger log
    • Constructor Detail

      • SharedTransactionManager

        public SharedTransactionManager()
      • SharedTransactionManager

        public SharedTransactionManager​(java.lang.String lookupName)
    • Method Detail

      • getLookupName

        public java.lang.String getLookupName()
      • setLookupName

        public void setLookupName​(java.lang.String lookupName)
      • stop

        public void stop()
        Description copied from interface: ComponentLifecycle
        Stop the component

        A stopped component is not expected to be ready to process messages. In the case of AdaptrisMessageConsumer, calling stop will pause message delivery. Throwing a RuntimeException may cause unintended consequences

        Specified by:
        stop in interface ComponentLifecycle
      • close

        public void close()
        Description copied from interface: ComponentLifecycle
        Closes the component.

        A closed component should release any connections it uses, etc. and clean up completely. Throwing a RuntimeException may cause unintended consequences

        Specified by:
        close in interface ComponentLifecycle
      • getUniqueId

        public java.lang.String getUniqueId()
        Description copied from interface: AdaptrisComponent
        Get the unique-id that is associated with this component.
        Specified by:
        getUniqueId in interface AdaptrisComponent
        Returns:
        the unique-id
      • registerXAResource

        public void registerXAResource​(java.lang.String name,
                                       javax.jms.XAConnectionFactory connectionFactory)
                                throws java.lang.Exception
        Specified by:
        registerXAResource in interface TransactionManager
        Throws:
        java.lang.Exception
      • deRegisterXAResource

        public void deRegisterXAResource​(java.lang.String name,
                                         javax.jms.XAConnectionFactory connectionFactory)
                                  throws java.lang.Exception
        Specified by:
        deRegisterXAResource in interface TransactionManager
        Throws:
        java.lang.Exception
      • enlistXAResource

        public void enlistXAResource​(java.lang.String name,
                                     javax.transaction.xa.XAResource xaResource)
                              throws java.lang.Exception
        Specified by:
        enlistXAResource in interface TransactionManager
        Throws:
        java.lang.Exception
      • delistXAResource

        public void delistXAResource​(java.lang.String name,
                                     javax.transaction.xa.XAResource xaResource,
                                     int status)
                              throws java.lang.Exception
        Specified by:
        delistXAResource in interface TransactionManager
        Throws:
        java.lang.Exception
      • beginTransaction

        public void beginTransaction()
                              throws java.lang.Exception
        Specified by:
        beginTransaction in interface TransactionManager
        Throws:
        java.lang.Exception
      • commit

        public boolean commit()
                       throws java.lang.Exception
        Specified by:
        commit in interface TransactionManager
        Throws:
        java.lang.Exception
      • rollback

        public void rollback()
                      throws java.lang.Exception
        Specified by:
        rollback in interface TransactionManager
        Throws:
        java.lang.Exception
      • setRollbackOnly

        public void setRollbackOnly()
                             throws java.lang.Exception
        Specified by:
        setRollbackOnly in interface TransactionManager
        Throws:
        java.lang.Exception