com.caucho.jms.jca
Class ListenerEndpointFactory

java.lang.Object
  extended by com.caucho.jms.jca.ListenerEndpointFactory
All Implemented Interfaces:
MessageEndpointFactory

public class ListenerEndpointFactory
extends java.lang.Object
implements MessageEndpointFactory

The JMS MessageListener endpoing factory


Constructor Summary
ListenerEndpointFactory()
           
 
Method Summary
 MessageEndpoint createEndpoint(XAResource xaResource)
          Creates an endpoint with the associated XA resource.
 MessageEndpoint createEndpoint(XAResource xaResource, long timeout)
          Creates an endpoint with the associated XA resource.
 void init()
          Initialization.
 boolean isDeliveryTransacted(java.lang.reflect.Method method)
          Returns true to find out whether message deliveries to the message endpoint will be transacted.
 void setListener(ConfigProgram program)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerEndpointFactory

public ListenerEndpointFactory()
Method Detail

setListener

public void setListener(ConfigProgram program)
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

init

public void init()
          throws ConfigException
Initialization.

Throws:
ConfigException

createEndpoint

public MessageEndpoint createEndpoint(XAResource xaResource,
                                      long timeout)
                               throws UnavailableException
Creates an endpoint with the associated XA resource.

Specified by:
createEndpoint in interface MessageEndpointFactory
Throws:
UnavailableException

createEndpoint

public MessageEndpoint createEndpoint(XAResource xaResource)
                               throws UnavailableException
Creates an endpoint with the associated XA resource.

Specified by:
createEndpoint in interface MessageEndpointFactory
Throws:
UnavailableException

isDeliveryTransacted

public boolean isDeliveryTransacted(java.lang.reflect.Method method)
Returns true to find out whether message deliveries to the message endpoint will be transacted. This is only a hint.

Specified by:
isDeliveryTransacted in interface MessageEndpointFactory