Class Jms
java.lang.Object
org.springframework.integration.jms.dsl.Jms
Factory class for JMS components.
- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell, Artem Vozhdayenko
- 
Method SummaryModifier and TypeMethodDescriptionstatic JmsMessageChannelSpec<?, ?> channel(ConnectionFactory connectionFactory) The factory to produce aJmsMessageChannelSpec.static JmsMessageChannelSpec<?, ?> channel(String id, ConnectionFactory connectionFactory) The factory to produce aJmsMessageChannelSpec.container(ConnectionFactory connectionFactory, Destination destination) The factory to produce aJmsListenerContainerSpec.container(ConnectionFactory connectionFactory, String destinationName) The factory to produce aJmsListenerContainerSpec.inboundAdapter(ConnectionFactory connectionFactory) The factory to produce aJmsInboundChannelAdapterSpec.static JmsInboundChannelAdapterSpec<?> inboundAdapter(JmsTemplate jmsTemplate) The factory to produce aJmsInboundChannelAdapterSpec.static JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<JmsDefaultListenerContainerSpec, DefaultMessageListenerContainer> inboundGateway(ConnectionFactory connectionFactory) The factory to produce aJmsInboundGatewaySpec.static <C extends AbstractMessageListenerContainer>
 JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<?, C> inboundGateway(ConnectionFactory connectionFactory, Class<C> containerClass) The factory to produce aJmsInboundGatewaySpec.static JmsInboundGatewaySpec<?> inboundGateway(AbstractMessageListenerContainer listenerContainer) The factory to produce aJmsInboundGatewaySpec.static JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<JmsDefaultListenerContainerSpec, DefaultMessageListenerContainer> messageDrivenChannelAdapter(ConnectionFactory connectionFactory) The factory to produce aJmsMessageDrivenChannelAdapterSpec.static <C extends AbstractMessageListenerContainer>
 JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<?, C> messageDrivenChannelAdapter(ConnectionFactory connectionFactory, Class<C> containerClass) The factory to produce aJmsMessageDrivenChannelAdapterSpec.static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(JmsListenerContainerSpec<?, ? extends AbstractMessageListenerContainer> jmsListenerContainerSpec) The factory to produce aJmsMessageDrivenChannelAdapterSpec.static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(AbstractMessageListenerContainer listenerContainer) The factory to produce aJmsMessageDrivenChannelAdapterSpec.outboundAdapter(ConnectionFactory connectionFactory) The factory to produce aJmsOutboundChannelAdapterSpec.static JmsOutboundChannelAdapterSpec<?> outboundAdapter(JmsTemplate jmsTemplate) The factory to produce aJmsOutboundChannelAdapterSpec.static JmsOutboundGatewaySpecoutboundGateway(ConnectionFactory connectionFactory) The factory to produce aJmsOutboundGatewaySpec.static JmsPollableMessageChannelSpec<?, PollableJmsChannel> pollableChannel(ConnectionFactory connectionFactory) The factory to produce aJmsPollableMessageChannelSpec.static JmsPollableMessageChannelSpec<?, PollableJmsChannel> pollableChannel(String id, ConnectionFactory connectionFactory) The factory to produce aJmsPollableMessageChannelSpec.publishSubscribeChannel(ConnectionFactory connectionFactory) The factory to produce aJmsPublishSubscribeMessageChannelSpec.publishSubscribeChannel(String id, ConnectionFactory connectionFactory) The factory to produce aJmsPublishSubscribeMessageChannelSpec.
- 
Method Details- 
pollableChannelpublic static JmsPollableMessageChannelSpec<?, PollableJmsChannel> pollableChannel(ConnectionFactory connectionFactory) The factory to produce aJmsPollableMessageChannelSpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsPollableMessageChannelSpecinstance
 
- 
pollableChannelpublic static JmsPollableMessageChannelSpec<?, PollableJmsChannel> pollableChannel(@Nullable String id, ConnectionFactory connectionFactory) The factory to produce aJmsPollableMessageChannelSpec.- Parameters:
- id- the bean name for the target- PollableChannelcomponent
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsPollableMessageChannelSpecinstance
 
- 
channelThe factory to produce aJmsMessageChannelSpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsMessageChannelSpecinstance
 
- 
channelpublic static JmsMessageChannelSpec<?,?> channel(@Nullable String id, ConnectionFactory connectionFactory) The factory to produce aJmsMessageChannelSpec.- Parameters:
- id- the bean name for the target- MessageChannelcomponent
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsMessageChannelSpecinstance
 
- 
publishSubscribeChannelpublic static JmsPublishSubscribeMessageChannelSpec publishSubscribeChannel(ConnectionFactory connectionFactory) The factory to produce aJmsPublishSubscribeMessageChannelSpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsPublishSubscribeMessageChannelSpecinstance
 
- 
publishSubscribeChannelpublic static JmsPublishSubscribeMessageChannelSpec publishSubscribeChannel(@Nullable String id, ConnectionFactory connectionFactory) The factory to produce aJmsPublishSubscribeMessageChannelSpec.- Parameters:
- id- the bean name for the target- MessageChannelcomponent
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsPublishSubscribeMessageChannelSpecinstance
 
- 
outboundAdapterThe factory to produce aJmsOutboundChannelAdapterSpec.- Parameters:
- jmsTemplate- the JmsTemplate to build on
- Returns:
- the JmsOutboundChannelAdapterSpecinstance
 
- 
outboundAdapterpublic static JmsOutboundChannelAdapterSpec.JmsOutboundChannelSpecTemplateAware outboundAdapter(ConnectionFactory connectionFactory) The factory to produce aJmsOutboundChannelAdapterSpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsOutboundChannelAdapterSpecinstance
 
- 
inboundAdapterThe factory to produce aJmsInboundChannelAdapterSpec.- Parameters:
- jmsTemplate- the JmsTemplate to build on
- Returns:
- the JmsInboundChannelAdapterSpecinstance
 
- 
inboundAdapterpublic static JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware inboundAdapter(ConnectionFactory connectionFactory) The factory to produce aJmsInboundChannelAdapterSpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsInboundChannelAdapterSpecinstance
 
- 
outboundGatewayThe factory to produce aJmsOutboundGatewaySpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsOutboundGatewaySpecinstance
 
- 
inboundGatewaypublic static JmsInboundGatewaySpec<?> inboundGateway(AbstractMessageListenerContainer listenerContainer) The factory to produce aJmsInboundGatewaySpec.- Parameters:
- listenerContainer- the JMS- AbstractMessageListenerContainerto build on
- Returns:
- the JmsInboundGatewaySpecinstance
 
- 
inboundGatewaypublic static JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<JmsDefaultListenerContainerSpec, DefaultMessageListenerContainer> inboundGateway(ConnectionFactory connectionFactory) The factory to produce aJmsInboundGatewaySpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsInboundGatewaySpecinstance
 
- 
inboundGatewaypublic static <C extends AbstractMessageListenerContainer> JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<?,C> inboundGateway(ConnectionFactory connectionFactory, Class<C> containerClass) The factory to produce aJmsInboundGatewaySpec.- Type Parameters:
- C- the- AbstractMessageListenerContainerinheritor type
- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- containerClass- the- AbstractMessageListenerContainerimplementation class to instantiate listener container
- Returns:
- the JmsInboundGatewaySpecinstance
 
- 
messageDrivenChannelAdapterpublic static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(JmsListenerContainerSpec<?, ? extends AbstractMessageListenerContainer> jmsListenerContainerSpec) The factory to produce aJmsMessageDrivenChannelAdapterSpec.- Parameters:
- jmsListenerContainerSpec- the- JmsListenerContainerSpecto build on
- Returns:
- the JmsMessageDrivenChannelAdapterSpecinstance
 
- 
messageDrivenChannelAdapterpublic static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(AbstractMessageListenerContainer listenerContainer) The factory to produce aJmsMessageDrivenChannelAdapterSpec.- Parameters:
- listenerContainer- the- AbstractMessageListenerContainerto build on
- Returns:
- the JmsMessageDrivenChannelAdapterSpecinstance
 
- 
messageDrivenChannelAdapterpublic static JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<JmsDefaultListenerContainerSpec, DefaultMessageListenerContainer> messageDrivenChannelAdapter(ConnectionFactory connectionFactory) The factory to produce aJmsMessageDrivenChannelAdapterSpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- Returns:
- the JmsMessageDrivenChannelAdapterSpecinstance
 
- 
messageDrivenChannelAdapterpublic static <C extends AbstractMessageListenerContainer> JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<?,C> messageDrivenChannelAdapter(ConnectionFactory connectionFactory, Class<C> containerClass) The factory to produce aJmsMessageDrivenChannelAdapterSpec.- Type Parameters:
- C- the- AbstractMessageListenerContainerinheritor type
- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- containerClass- the- AbstractMessageListenerContainerimplementation class to instantiate listener container
- Returns:
- the JmsMessageDrivenChannelAdapterSpecinstance
 
- 
containerpublic static JmsDefaultListenerContainerSpec container(ConnectionFactory connectionFactory, Destination destination) The factory to produce aJmsListenerContainerSpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- destination- the- Destinationto listen to
- Returns:
- the JmsListenerContainerSpecinstance
 
- 
containerpublic static JmsDefaultListenerContainerSpec container(ConnectionFactory connectionFactory, String destinationName) The factory to produce aJmsListenerContainerSpec.- Parameters:
- connectionFactory- the JMS ConnectionFactory to build on
- destinationName- the destination name to listen to
- Returns:
- the JmsListenerContainerSpecinstance
 
 
-