org.springframework.integration.jms
Class JmsMessageDrivenEndpoint

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.endpoint.AbstractEndpoint
          extended by org.springframework.integration.jms.JmsMessageDrivenEndpoint
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, org.springframework.integration.context.NamedComponent, org.springframework.integration.context.OrderlyShutdownCapable

public class JmsMessageDrivenEndpoint
extends org.springframework.integration.endpoint.AbstractEndpoint
implements org.springframework.beans.factory.DisposableBean, org.springframework.integration.context.OrderlyShutdownCapable

A message-driven endpoint that receive JMS messages, converts them into Spring Integration Messages, and then sends the result to a channel.


Field Summary
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
JmsMessageDrivenEndpoint(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer, ChannelPublishingJmsMessageListener listener)
           
 
Method Summary
 int afterShutdown()
           
 int beforeShutdown()
           
 void destroy()
           
protected  void doStart()
           
protected  void doStop()
           
 java.lang.String getComponentType()
           
protected  void onInit()
           
 
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmsMessageDrivenEndpoint

public JmsMessageDrivenEndpoint(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer,
                                ChannelPublishingJmsMessageListener listener)
Method Detail

getComponentType

public java.lang.String getComponentType()
Specified by:
getComponentType in interface org.springframework.integration.context.NamedComponent
Overrides:
getComponentType in class org.springframework.integration.context.IntegrationObjectSupport

onInit

protected void onInit()
               throws java.lang.Exception
Overrides:
onInit in class org.springframework.integration.context.IntegrationObjectSupport
Throws:
java.lang.Exception

doStart

protected void doStart()
Specified by:
doStart in class org.springframework.integration.endpoint.AbstractEndpoint

doStop

protected void doStop()
Specified by:
doStop in class org.springframework.integration.endpoint.AbstractEndpoint

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
java.lang.Exception

beforeShutdown

public int beforeShutdown()
Specified by:
beforeShutdown in interface org.springframework.integration.context.OrderlyShutdownCapable

afterShutdown

public int afterShutdown()
Specified by:
afterShutdown in interface org.springframework.integration.context.OrderlyShutdownCapable