org.jboss.soa.esb.services.jbpm.integration.msg
Class JmsMessageServiceFactory

java.lang.Object
  extended by org.jboss.soa.esb.services.jbpm.integration.msg.JmsMessageServiceFactory
All Implemented Interfaces:
java.io.Serializable, org.jbpm.svc.ServiceFactory

public final class JmsMessageServiceFactory
extends java.lang.Object
implements org.jbpm.svc.ServiceFactory

Based on the jBPM JmsMessageServiceFactory, this service delivers messages to the job/command listeners over JCA/JMS inflow.

Configuration

The JMS message service factory exposes the following configurable fields.

Author:
Tom Baeyens, Alejandro Guizar
See Also:
Serialized Form

Constructor Summary
JmsMessageServiceFactory()
          Construct the JMS message service factory.
 
Method Summary
 void close()
          Close this factory.
 javax.jms.Destination getCommandDestination()
          Get the jBPM command queue destination associated with this message service.
 javax.jms.ConnectionFactory getConnectionFactory()
          Get the JMS connection factory associated with this scheduler.
 javax.jms.Destination getDestination()
          Get the jBPM job queue destination associated with this message service.
 javax.jms.Destination getDLQDestination()
          Get the jBPM dlq destination associated with this message service.
 boolean isCommitEnabled()
          Get the commitEnabled flag.
 org.jbpm.svc.Service openService()
          Create a JMS message service based on this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsMessageServiceFactory

public JmsMessageServiceFactory()
Construct the JMS message service factory.

Method Detail

getConnectionFactory

public javax.jms.ConnectionFactory getConnectionFactory()
Get the JMS connection factory associated with this scheduler.

Returns:
The associated JMS connection factory.

getDestination

public javax.jms.Destination getDestination()
Get the jBPM job queue destination associated with this message service.

Returns:
The associated jBPM job queue.

getCommandDestination

public javax.jms.Destination getCommandDestination()
Get the jBPM command queue destination associated with this message service.

Returns:
The associated jBPM command queue.

getDLQDestination

public javax.jms.Destination getDLQDestination()
Get the jBPM dlq destination associated with this message service.

Returns:
The associated jBPM dlq.

isCommitEnabled

public boolean isCommitEnabled()
Get the commitEnabled flag.

Returns:
true if commit is to be invoked on the JMS session, false otherwise.

openService

public org.jbpm.svc.Service openService()
Create a JMS message service based on this factory.

Specified by:
openService in interface org.jbpm.svc.ServiceFactory

close

public void close()
Close this factory.

Specified by:
close in interface org.jbpm.svc.ServiceFactory