Class SendQueueMessageJob

  • All Implemented Interfaces:
    org.quartz.Job

    public final class SendQueueMessageJob
    extends java.lang.Object
    implements org.quartz.Job

    A Job that sends a jakarta.jms.Message to a jakarta.jms.Queue. This class is for older JMS. If you are using JMS 1.1, you should use SendDestinationMessageJob instead.

    The following properties are expected to be provided in the JobDataMap:

    • JMS_CONNECTION_FACTORY_JNDI - The JNDI name of the JMS Connection Factory.
    • JMS_DESTINATION_JNDI - The JNDI name of the JMS destination.
    • JMS_USE_TXN - Whether or not to use a transacted jakarta.jms.Session.
    • JMS_ACK_MODE - The acknowledgement mode for the jakarta.jms.Session.
    • JMS_MSG_FACTORY_CLASS_NAME - The implementation class name for the JmsMessageFactory.

    The following properties are optional

    • JMS_USER - The JMS user for secure destinations.
    • JMS_PASSWORD - The JMS password for secure destinations.

    The following properties can be used for JNDI support:

    • INITIAL_CONTEXT_FACTORY - The java.naming.factory.initial setting for JNDI.
    • PROVIDER_URL - The java.naming.provider.url for JNDI.
    See Also:
    JmsMessageFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.quartz.JobExecutionContext jobCtx)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SendQueueMessageJob

        public SendQueueMessageJob()
    • Method Detail

      • execute

        public void execute​(org.quartz.JobExecutionContext jobCtx)
                     throws org.quartz.JobExecutionException
        Specified by:
        execute in interface org.quartz.Job
        Throws:
        org.quartz.JobExecutionException