Class Jms
java.lang.Object
org.springframework.integration.jms.dsl.Jms
public final class Jms
extends java.lang.Object
Factory class for JMS components.
- Since:
- 5.0
-
Method Summary
Modifier and Type Method Description static JmsMessageChannelSpec<?,?>channel(java.lang.String id, javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsMessageChannelSpec.static JmsMessageChannelSpec<?,?>channel(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsMessageChannelSpec.static JmsDefaultListenerContainerSpeccontainer(javax.jms.ConnectionFactory connectionFactory, java.lang.String destinationName)The factory to produce aJmsListenerContainerSpec.static JmsDefaultListenerContainerSpeccontainer(javax.jms.ConnectionFactory connectionFactory, javax.jms.Destination destination)The factory to produce aJmsListenerContainerSpec.static JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAwareinboundAdapter(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsInboundChannelAdapterSpec.static JmsInboundChannelAdapterSpec<?>inboundAdapter(org.springframework.jms.core.JmsTemplate jmsTemplate)The factory to produce aJmsInboundChannelAdapterSpec.static JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<JmsDefaultListenerContainerSpec,org.springframework.jms.listener.DefaultMessageListenerContainer>inboundGateway(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsInboundGatewaySpec.static <C extends org.springframework.jms.listener.AbstractMessageListenerContainer>
JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<?,C>inboundGateway(javax.jms.ConnectionFactory connectionFactory, java.lang.Class<C> containerClass)The factory to produce aJmsInboundGatewaySpec.static JmsInboundGatewaySpec<?>inboundGateway(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer)The factory to produce aJmsInboundGatewaySpec.static JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<JmsDefaultListenerContainerSpec,org.springframework.jms.listener.DefaultMessageListenerContainer>messageDrivenChannelAdapter(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsMessageDrivenChannelAdapterSpec.static <C extends org.springframework.jms.listener.AbstractMessageListenerContainer>
JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<?,C>messageDrivenChannelAdapter(javax.jms.ConnectionFactory connectionFactory, java.lang.Class<C> containerClass)The factory to produce aJmsMessageDrivenChannelAdapterSpec.static JmsMessageDrivenChannelAdapterSpec<?>messageDrivenChannelAdapter(JmsListenerContainerSpec<?,? extends org.springframework.jms.listener.AbstractMessageListenerContainer> jmsListenerContainerSpec)The factory to produce aJmsMessageDrivenChannelAdapterSpec.static JmsMessageDrivenChannelAdapterSpec<?>messageDrivenChannelAdapter(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer)The factory to produce aJmsMessageDrivenChannelAdapterSpec.static JmsOutboundChannelAdapterSpec.JmsOutboundChannelSpecTemplateAwareoutboundAdapter(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsOutboundChannelAdapterSpec.static JmsOutboundChannelAdapterSpec<?>outboundAdapter(org.springframework.jms.core.JmsTemplate jmsTemplate)The factory to produce aJmsOutboundChannelAdapterSpec.static JmsOutboundGatewaySpecoutboundGateway(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsOutboundGatewaySpec.static JmsPollableMessageChannelSpec<?,PollableJmsChannel>pollableChannel(java.lang.String id, javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPollableMessageChannelSpec.static JmsPollableMessageChannelSpec<?,PollableJmsChannel>pollableChannel(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPollableMessageChannelSpec.static JmsPublishSubscribeMessageChannelSpecpublishSubscribeChannel(java.lang.String id, javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPublishSubscribeMessageChannelSpec.static JmsPublishSubscribeMessageChannelSpecpublishSubscribeChannel(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPublishSubscribeMessageChannelSpec.
-
Method Details
-
pollableChannel
public static JmsPollableMessageChannelSpec<?,PollableJmsChannel> pollableChannel(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPollableMessageChannelSpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsPollableMessageChannelSpecinstance
-
pollableChannel
public static JmsPollableMessageChannelSpec<?,PollableJmsChannel> pollableChannel(@Nullable java.lang.String id, javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPollableMessageChannelSpec.- Parameters:
id- the bean name for the targetPollableChannelcomponentconnectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsPollableMessageChannelSpecinstance
-
channel
The factory to produce aJmsMessageChannelSpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsMessageChannelSpecinstance
-
channel
public static JmsMessageChannelSpec<?,?> channel(@Nullable java.lang.String id, javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsMessageChannelSpec.- Parameters:
id- the bean name for the targetMessageChannelcomponentconnectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsMessageChannelSpecinstance
-
publishSubscribeChannel
public static JmsPublishSubscribeMessageChannelSpec publishSubscribeChannel(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPublishSubscribeMessageChannelSpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsPublishSubscribeMessageChannelSpecinstance
-
publishSubscribeChannel
public static JmsPublishSubscribeMessageChannelSpec publishSubscribeChannel(@Nullable java.lang.String id, javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPublishSubscribeMessageChannelSpec.- Parameters:
id- the bean name for the targetMessageChannelcomponentconnectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsPublishSubscribeMessageChannelSpecinstance
-
outboundAdapter
public static JmsOutboundChannelAdapterSpec<?> outboundAdapter(org.springframework.jms.core.JmsTemplate jmsTemplate)The factory to produce aJmsOutboundChannelAdapterSpec.- Parameters:
jmsTemplate- the JmsTemplate to build on- Returns:
- the
JmsOutboundChannelAdapterSpecinstance
-
outboundAdapter
public static JmsOutboundChannelAdapterSpec.JmsOutboundChannelSpecTemplateAware outboundAdapter(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsOutboundChannelAdapterSpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsOutboundChannelAdapterSpecinstance
-
inboundAdapter
public static JmsInboundChannelAdapterSpec<?> inboundAdapter(org.springframework.jms.core.JmsTemplate jmsTemplate)The factory to produce aJmsInboundChannelAdapterSpec.- Parameters:
jmsTemplate- the JmsTemplate to build on- Returns:
- the
JmsInboundChannelAdapterSpecinstance
-
inboundAdapter
public static JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware inboundAdapter(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsInboundChannelAdapterSpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsInboundChannelAdapterSpecinstance
-
outboundGateway
public static JmsOutboundGatewaySpec outboundGateway(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsOutboundGatewaySpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsOutboundGatewaySpecinstance
-
inboundGateway
public static JmsInboundGatewaySpec<?> inboundGateway(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer)The factory to produce aJmsInboundGatewaySpec.- Parameters:
listenerContainer- the JMSAbstractMessageListenerContainerto build on- Returns:
- the
JmsInboundGatewaySpecinstance
-
inboundGateway
public static JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<JmsDefaultListenerContainerSpec,org.springframework.jms.listener.DefaultMessageListenerContainer> inboundGateway(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsInboundGatewaySpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsInboundGatewaySpecinstance
-
inboundGateway
public static <C extends org.springframework.jms.listener.AbstractMessageListenerContainer> JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<?,C> inboundGateway(javax.jms.ConnectionFactory connectionFactory, java.lang.Class<C> containerClass)The factory to produce aJmsInboundGatewaySpec.- Type Parameters:
C- theAbstractMessageListenerContainerinheritor type- Parameters:
connectionFactory- the JMS ConnectionFactory to build oncontainerClass- theAbstractMessageListenerContainerimplementation class to instantiate listener container- Returns:
- the
JmsInboundGatewaySpecinstance
-
messageDrivenChannelAdapter
public static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(JmsListenerContainerSpec<?,? extends org.springframework.jms.listener.AbstractMessageListenerContainer> jmsListenerContainerSpec)The factory to produce aJmsMessageDrivenChannelAdapterSpec.- Parameters:
jmsListenerContainerSpec- theJmsListenerContainerSpecto build on- Returns:
- the
JmsMessageDrivenChannelAdapterSpecinstance
-
messageDrivenChannelAdapter
public static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer)The factory to produce aJmsMessageDrivenChannelAdapterSpec.- Parameters:
listenerContainer- theAbstractMessageListenerContainerto build on- Returns:
- the
JmsMessageDrivenChannelAdapterSpecinstance
-
messageDrivenChannelAdapter
public static JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<JmsDefaultListenerContainerSpec,org.springframework.jms.listener.DefaultMessageListenerContainer> messageDrivenChannelAdapter(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsMessageDrivenChannelAdapterSpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build on- Returns:
- the
JmsMessageDrivenChannelAdapterSpecinstance
-
messageDrivenChannelAdapter
public static <C extends org.springframework.jms.listener.AbstractMessageListenerContainer> JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<?,C> messageDrivenChannelAdapter(javax.jms.ConnectionFactory connectionFactory, java.lang.Class<C> containerClass)The factory to produce aJmsMessageDrivenChannelAdapterSpec.- Type Parameters:
C- theAbstractMessageListenerContainerinheritor type- Parameters:
connectionFactory- the JMS ConnectionFactory to build oncontainerClass- theAbstractMessageListenerContainerimplementation class to instantiate listener container- Returns:
- the
JmsMessageDrivenChannelAdapterSpecinstance
-
container
public static JmsDefaultListenerContainerSpec container(javax.jms.ConnectionFactory connectionFactory, javax.jms.Destination destination)The factory to produce aJmsListenerContainerSpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build ondestination- theDestinationto listen to- Returns:
- the
JmsListenerContainerSpecinstance
-
container
public static JmsDefaultListenerContainerSpec container(javax.jms.ConnectionFactory connectionFactory, java.lang.String destinationName)The factory to produce aJmsListenerContainerSpec.- Parameters:
connectionFactory- the JMS ConnectionFactory to build ondestinationName- the destination name to listen to- Returns:
- the
JmsListenerContainerSpecinstance
-