Package org.quartz.jobs.ee.jms
Class SendDestinationMessageJob
- java.lang.Object
-
- org.quartz.jobs.ee.jms.SendDestinationMessageJob
-
- All Implemented Interfaces:
org.quartz.Job
public final class SendDestinationMessageJob extends java.lang.Object implements org.quartz.JobA
Jobthat sends ajakarta.jms.Messageto ajakarta.jms.Destination. Note, this class can only be used in a JMS-based environment.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 transactedjakarta.jms.Session.JMS_ACK_MODE- The acknowledgement mode for thejakarta.jms.Session.JMS_MSG_FACTORY_CLASS_NAME- The implementation class name for theJmsMessageFactory.
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
-
-
Constructor Summary
Constructors Constructor Description SendDestinationMessageJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.quartz.JobExecutionContext jobCtx)
-