public class

JmsMessageEndpointFactory

extends AbstractMessageEndpointFactory
java.lang.Object
   ↳ org.springframework.jca.endpoint.AbstractMessageEndpointFactory
     ↳ org.springframework.jms.listener.endpoint.JmsMessageEndpointFactory

Class Overview

JMS-specific implementation of the JCA 1.5 javax.resource.spi.endpoint.MessageEndpointFactory interface, providing transaction management capabilities for a JMS listener object (e.g. a javax.jms.MessageListener object).

Uses a static endpoint implementation, simply wrapping the specified message listener object and exposing all of its implemented interfaces on the endpoint instance.

Typically used with Spring's JmsMessageEndpointManager, 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 JmsMessageEndpointFactory.JmsResourceException 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
JmsMessageEndpointFactory()
Public Methods
void setMessageListener(MessageListener messageListener)
Set the JMS MessageListener for this endpoint.
Protected Methods
AbstractMessageEndpointFactory.AbstractMessageEndpoint createEndpointInternal()
Creates a concrete JMS message endpoint, internal to this factory.
[Expand]
Inherited Methods
From class org.springframework.jca.endpoint.AbstractMessageEndpointFactory
From class java.lang.Object

Public Constructors

public JmsMessageEndpointFactory ()

Public Methods

public void setMessageListener (MessageListener messageListener)

Set the JMS MessageListener for this endpoint.

Protected Methods

protected AbstractMessageEndpointFactory.AbstractMessageEndpoint createEndpointInternal ()

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

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