Class ActiveMQActivation


  • public class ActiveMQActivation
    extends Object
    The activation.
    • Field Detail

      • ONMESSAGE

        public static final Method ONMESSAGE
        The onMessage method
    • Constructor Detail

      • ActiveMQActivation

        public ActiveMQActivation​(ActiveMQResourceAdapter ra,
                                  jakarta.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                                  ActiveMQActivationSpec spec)
                           throws jakarta.resource.ResourceException
        Constructor
        Parameters:
        ra - The resource adapter
        endpointFactory - The endpoint factory
        spec - The activation spec
        Throws:
        jakarta.resource.ResourceException - Thrown if an error occurs
    • Method Detail

      • getActivationSpec

        public ActiveMQActivationSpec getActivationSpec()
        Get the activation spec
        Returns:
        The value
      • getMessageEndpointFactory

        public jakarta.resource.spi.endpoint.MessageEndpointFactory getMessageEndpointFactory()
        Get the message endpoint factory
        Returns:
        The value
      • isDeliveryTransacted

        public boolean isDeliveryTransacted()
        Get whether delivery is transacted
        Returns:
        The value
      • getWorkManager

        public jakarta.resource.spi.work.WorkManager getWorkManager()
        Get the work manager
        Returns:
        The value
      • isTopic

        public boolean isTopic()
        Is the destination a topic
        Returns:
        The value
      • start

        public void start()
                   throws jakarta.resource.ResourceException
        Start the activation
        Throws:
        jakarta.resource.ResourceException - Thrown if an error occurs
      • getTopicTemporaryQueue

        public SimpleString getTopicTemporaryQueue()
        Returns:
        the topicTemporaryQueue
      • setTopicTemporaryQueue

        public void setTopicTemporaryQueue​(SimpleString topicTemporaryQueue)
        Parameters:
        topicTemporaryQueue - the topicTemporaryQueue to set
      • getXAResources

        public List<XAResource> getXAResources()
        Returns:
        the list of XAResources for this activation endpoint
      • stop

        public void stop()
        Stop the activation
      • setup

        protected void setup()
                      throws Exception
        Setup the activation
        Throws:
        Exception - Thrown if an error occurs
      • teardown

        protected void teardown​(boolean useInterrupt)
        Teardown the activation
      • toString

        public String toString()
        Get a string representation
        Overrides:
        toString in class Object
        Returns:
        The value
      • startReconnectThread

        public void startReconnectThread​(String cause)
      • reconnect

        public void reconnect​(Throwable failure,
                              boolean useInterrupt)
        Drops all existing connection-related resources and reconnects
        Parameters:
        failure - if reconnecting in the event of a failure