java.lang.Object
org.wso2.carbon.inbound.endpoint.common.InboundTask
org.wso2.carbon.inbound.endpoint.protocol.jms.JMSTask
All Implemented Interfaces:
org.apache.synapse.ManagedLifecycle, org.apache.synapse.task.Task, PinnedPollingTask, org.wso2.carbon.ntask.core.impl.LocalTaskActionListener

public class JMSTask extends InboundTask implements org.wso2.carbon.ntask.core.impl.LocalTaskActionListener
JMSTask class is used to schedule the inbound execution when the coordination is required
  • Constructor Details

  • Method Details

    • taskExecute

      protected void taskExecute()
      Specified by:
      taskExecute in class InboundTask
    • getInboundProperties

      public Properties getInboundProperties()
      Specified by:
      getInboundProperties in interface PinnedPollingTask
      Specified by:
      getInboundProperties in class InboundTask
    • init

      public void init(org.apache.synapse.core.SynapseEnvironment synapseEnvironment)
      Specified by:
      init in interface org.apache.synapse.ManagedLifecycle
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.apache.synapse.ManagedLifecycle
    • notifyLocalTaskDeletion

      public void notifyLocalTaskDeletion(String taskName)

      Destroys the JMS task upon deletion of the local task.

      Specified by:
      notifyLocalTaskDeletion in interface org.wso2.carbon.ntask.core.impl.LocalTaskActionListener
      Parameters:
      taskName - the name of the task that was deleted