|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.quartz.jobs.ee.jms Class SendQueueMessageJob
java.lang.Object org.quartz.jobs.ee.jms.SendQueueMessageJob
- All Implemented Interfaces:
- Job
A Job
that sends a javax.jms.Message
to a
javax.jms.Queue
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 transactedjavax.jms.Session
.JMS_ACK_MODE
- The acknowledgement mode for thejavax.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.
- Author:
- Weston M. Price (little fixes v. in 1.6.0 by Toni Alatalo)
- See Also:
JmsMessageFactory
Constructor Summary | |
---|---|
SendQueueMessageJob()
|
Method Summary | |
---|---|
void |
execute(JobExecutionContext context)
Called by the
Scheduler when a
Trigger
fires that is associated with the Job . |
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(JobExecutionContext context) throws JobExecutionException
- Description copied from interface:
Job
Called by the
Scheduler
when aTrigger
fires that is associated with theJob
.The implementation may wish to set a
result
object on theJobExecutionContext
before this method exits. The result itself is meaningless to Quartz, but may be informative toJobListener
s orTriggerListener
s that are watching the job's execution.- Throws:
JobExecutionException
- if there is an exception while executing the job.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2001-2011, Terracotta, Inc.