|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.services.jbpm.integration.AbstractJmsJobService
public abstract class AbstractJmsJobService
Abstract JMS service code based on the jBPM implementations.
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
log
The logger for this class. |
Constructor Summary | |
---|---|
AbstractJmsJobService(org.jbpm.JbpmContext jbpmContext,
javax.jms.Connection connection,
javax.jms.Destination destination,
boolean isCommitEnabled)
Construct the base JMS job service. |
Method Summary | |
---|---|
void |
close()
Cloase the job service. |
org.jbpm.db.JobSession |
getJobSession()
Get the job session associated with this job service. |
protected javax.jms.MessageProducer |
getMessageProducer()
Get the associated JMS message producer. |
javax.jms.Session |
getSession()
Get the JMS session associated with this job service. |
protected void |
sendJob(org.jbpm.job.Job job)
Send the job to the job executor. |
protected void |
sendTimer(org.jbpm.job.Timer timer)
Send the timer to the job executor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Logger log
Constructor Detail |
---|
public AbstractJmsJobService(org.jbpm.JbpmContext jbpmContext, javax.jms.Connection connection, javax.jms.Destination destination, boolean isCommitEnabled) throws javax.jms.JMSException
jbpmContext
- The current jBPM context.connection
- The associated JMS connection.destination
- The JMS destination for jobs.isCommitEnabled
- true if commit should be invoked, false otherwise.
javax.jms.JMSException
- For errors in constructing the JMS session.Method Detail |
---|
protected void sendTimer(org.jbpm.job.Timer timer)
timer
- The timer to send.protected void sendJob(org.jbpm.job.Job job)
job
- The job to send.public void close()
public javax.jms.Session getSession()
public org.jbpm.db.JobSession getJobSession()
protected javax.jms.MessageProducer getMessageProducer() throws javax.jms.JMSException
javax.jms.JMSException
- for errors during construction of the JMS message producer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |