public class

GenericMessageEndpointFactory

extends AbstractMessageEndpointFactory
java.lang.Object
   ↳ org.springframework.jca.endpoint.AbstractMessageEndpointFactory
     ↳ org.springframework.jca.endpoint.GenericMessageEndpointFactory

Class Overview

Generic implementation of the JCA 1.5 javax.resource.spi.endpoint.MessageEndpointFactory interface, providing transaction management capabilities for any kind of message listener object (e.g. javax.jms.MessageListener objects or javax.resource.cci.MessageListener objects.

Uses AOP proxies for concrete endpoint instances, simply wrapping the specified message listener object and exposing all of its implemented interfaces on the endpoint instance.

Typically used with Spring's GenericMessageEndpointManager, but not tied to it. As a consequence, this endpoint factory could also be used with programmatic endpoint management on a native javax.resource.spi.ResourceAdapter instance.

Summary

Nested Classes
class GenericMessageEndpointFactory.InternalResourceException Internal exception thrown when a ResourceExeption has been encountered during the endpoint invocation. 
[Expand]
Inherited Fields
From class org.springframework.jca.endpoint.AbstractMessageEndpointFactory
Public Constructors
GenericMessageEndpointFactory()
Public Methods
MessageEndpoint createEndpoint(XAResource xaResource)
Wrap each concrete endpoint instance with an AOP proxy, exposing the message listener's interfaces as well as the endpoint SPI through an AOP introduction.
void setMessageListener(Object messageListener)
Specify the message listener object that the endpoint should expose (e.g.
Protected Methods
AbstractMessageEndpointFactory.AbstractMessageEndpoint createEndpointInternal()
Creates a concrete generic message endpoint, internal to this factory.
[Expand]
Inherited Methods
From class org.springframework.jca.endpoint.AbstractMessageEndpointFactory
From class java.lang.Object

Public Constructors

public GenericMessageEndpointFactory ()

Public Methods

public MessageEndpoint createEndpoint (XAResource xaResource)

Wrap each concrete endpoint instance with an AOP proxy, exposing the message listener's interfaces as well as the endpoint SPI through an AOP introduction.

Throws
UnavailableException

public void setMessageListener (Object messageListener)

Specify the message listener object that the endpoint should expose (e.g. a javax.jms.MessageListener objects or javax.resource.cci.MessageListener implementation).

Protected Methods

protected AbstractMessageEndpointFactory.AbstractMessageEndpoint createEndpointInternal ()

Creates a concrete generic message endpoint, internal to this factory.

Returns
  • the actual endpoint instance (never null)
Throws
UnavailableException