org.jboss.soa.esb.services.jbpm.integration
Class AbstractJmsServiceFactory

java.lang.Object
  extended by org.jboss.soa.esb.services.jbpm.integration.AbstractJmsServiceFactory
Direct Known Subclasses:
JmsMessageServiceFactory, JmsSchedulerServiceFactory

public abstract class AbstractJmsServiceFactory
extends java.lang.Object

Abstract base JMS service factory.


Constructor Summary
AbstractJmsServiceFactory()
           
 
Method Summary
 void close()
          Close this factory.
protected  javax.jms.ConnectionFactory getConnectionFactory()
          Get the JMS connection factory associated with this service factory.
protected  Provider getProvider()
          Get the provider.
 boolean isCommitEnabled()
          Get the commitEnabled flag.
protected  java.lang.Object lookup(java.lang.String name)
          Lookup a name within JNDI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJmsServiceFactory

public AbstractJmsServiceFactory()
Method Detail

isCommitEnabled

public boolean isCommitEnabled()
Get the commitEnabled flag.

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

lookup

protected java.lang.Object lookup(java.lang.String name)
                           throws javax.naming.NamingException
Lookup a name within JNDI.

Parameters:
name - The JNDI name to locate.
Returns:
The object bound to the name.
Throws:
javax.naming.NamingException - For errors locating the specified object within JNDI.

getProvider

protected Provider getProvider()
                        throws javax.naming.NamingException
Get the provider.

Returns:
The provider.
Throws:
javax.naming.NamingException - For errors locating the adapter within JNDI.

getConnectionFactory

protected javax.jms.ConnectionFactory getConnectionFactory()
Get the JMS connection factory associated with this service factory.

Returns:
The associated JMS connection factory.

close

public void close()
Close this factory.