org.jboss.resource.adapter.quartz.inflow
public class: QuartzJob [javadoc |
source]
java.lang.Object
org.jboss.resource.adapter.quartz.inflow.QuartzJob
All Implemented Interfaces:
org.quartz.Job
Direct Known Subclasses:
StatefulQuartzJob
Comment
- author:
< - a href="mailto:bill@jboss.org">Bill Burke
- version:
$ - Revision: 71554 $
| Method from org.jboss.resource.adapter.quartz.inflow.QuartzJob Summary: |
|---|
|
execute |
| Method from org.jboss.resource.adapter.quartz.inflow.QuartzJob Detail: |
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
MessageEndpoint endpoint = null;
try
{
MessageEndpointFactory endpointFactory = (MessageEndpointFactory)jobExecutionContext.getJobDetail().getJobDataMap().get("endpointFactory");
endpoint = endpointFactory.createEndpoint(null);
if (endpoint != null)
{
Job job = (Job) endpoint;
job.execute(jobExecutionContext);
}
else
{
log.error("ENDPOINT IS NULL!!!!");
}
}
catch (UnavailableException e)
{
throw new JobExecutionException(e);
}
finally
{
if (endpoint != null)
{
endpoint.release();
}
}
}
|