Class Jms
java.lang.Object
org.springframework.integration.jms.dsl.Jms
public final class Jms extends Object
Factory class for JMS components.
- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell, Artem Vozhdayenko
-
Method Summary
-
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
JmsPollableMessageChannelSpec
instance
-
pollableChannel
public static JmsPollableMessageChannelSpec<?,PollableJmsChannel> pollableChannel(@Nullable String id, javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPollableMessageChannelSpec
.- Parameters:
id
- the bean name for the targetPollableChannel
componentconnectionFactory
- the JMS ConnectionFactory to build on- Returns:
- the
JmsPollableMessageChannelSpec
instance
-
channel
The factory to produce aJmsMessageChannelSpec
.- Parameters:
connectionFactory
- the JMS ConnectionFactory to build on- Returns:
- the
JmsMessageChannelSpec
instance
-
channel
public static JmsMessageChannelSpec<?,?> channel(@Nullable String id, javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsMessageChannelSpec
.- Parameters:
id
- the bean name for the targetMessageChannel
componentconnectionFactory
- the JMS ConnectionFactory to build on- Returns:
- the
JmsMessageChannelSpec
instance
-
publishSubscribeChannel
public static JmsPublishSubscribeMessageChannelSpec publishSubscribeChannel(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPublishSubscribeMessageChannelSpec
.- Parameters:
connectionFactory
- the JMS ConnectionFactory to build on- Returns:
- the
JmsPublishSubscribeMessageChannelSpec
instance
-
publishSubscribeChannel
public static JmsPublishSubscribeMessageChannelSpec publishSubscribeChannel(@Nullable String id, javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsPublishSubscribeMessageChannelSpec
.- Parameters:
id
- the bean name for the targetMessageChannel
componentconnectionFactory
- the JMS ConnectionFactory to build on- Returns:
- the
JmsPublishSubscribeMessageChannelSpec
instance
-
outboundAdapter
The factory to produce aJmsOutboundChannelAdapterSpec
.- Parameters:
jmsTemplate
- the JmsTemplate to build on- Returns:
- the
JmsOutboundChannelAdapterSpec
instance
-
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
JmsOutboundChannelAdapterSpec
instance
-
inboundAdapter
The factory to produce aJmsInboundChannelAdapterSpec
.- Parameters:
jmsTemplate
- the JmsTemplate to build on- Returns:
- the
JmsInboundChannelAdapterSpec
instance
-
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
JmsInboundChannelAdapterSpec
instance
-
outboundGateway
public static JmsOutboundGatewaySpec outboundGateway(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsOutboundGatewaySpec
.- Parameters:
connectionFactory
- the JMS ConnectionFactory to build on- Returns:
- the
JmsOutboundGatewaySpec
instance
-
inboundGateway
public static JmsInboundGatewaySpec<?> inboundGateway(AbstractMessageListenerContainer listenerContainer)The factory to produce aJmsInboundGatewaySpec
.- Parameters:
listenerContainer
- the JMSAbstractMessageListenerContainer
to build on- Returns:
- the
JmsInboundGatewaySpec
instance
-
inboundGateway
public static JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<JmsDefaultListenerContainerSpec,DefaultMessageListenerContainer> inboundGateway(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsInboundGatewaySpec
.- Parameters:
connectionFactory
- the JMS ConnectionFactory to build on- Returns:
- the
JmsInboundGatewaySpec
instance
-
inboundGateway
public static <C extends AbstractMessageListenerContainer> JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<?,C> inboundGateway(javax.jms.ConnectionFactory connectionFactory, Class<C> containerClass)The factory to produce aJmsInboundGatewaySpec
.- Type Parameters:
C
- theAbstractMessageListenerContainer
inheritor type- Parameters:
connectionFactory
- the JMS ConnectionFactory to build oncontainerClass
- theAbstractMessageListenerContainer
implementation class to instantiate listener container- Returns:
- the
JmsInboundGatewaySpec
instance
-
messageDrivenChannelAdapter
public static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(JmsListenerContainerSpec<?,? extends AbstractMessageListenerContainer> jmsListenerContainerSpec)The factory to produce aJmsMessageDrivenChannelAdapterSpec
.- Parameters:
jmsListenerContainerSpec
- theJmsListenerContainerSpec
to build on- Returns:
- the
JmsMessageDrivenChannelAdapterSpec
instance
-
messageDrivenChannelAdapter
public static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(AbstractMessageListenerContainer listenerContainer)The factory to produce aJmsMessageDrivenChannelAdapterSpec
.- Parameters:
listenerContainer
- theAbstractMessageListenerContainer
to build on- Returns:
- the
JmsMessageDrivenChannelAdapterSpec
instance
-
messageDrivenChannelAdapter
public static JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<JmsDefaultListenerContainerSpec,DefaultMessageListenerContainer> messageDrivenChannelAdapter(javax.jms.ConnectionFactory connectionFactory)The factory to produce aJmsMessageDrivenChannelAdapterSpec
.- Parameters:
connectionFactory
- the JMS ConnectionFactory to build on- Returns:
- the
JmsMessageDrivenChannelAdapterSpec
instance
-
messageDrivenChannelAdapter
public static <C extends AbstractMessageListenerContainer> JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<?,C> messageDrivenChannelAdapter(javax.jms.ConnectionFactory connectionFactory, Class<C> containerClass)The factory to produce aJmsMessageDrivenChannelAdapterSpec
.- Type Parameters:
C
- theAbstractMessageListenerContainer
inheritor type- Parameters:
connectionFactory
- the JMS ConnectionFactory to build oncontainerClass
- theAbstractMessageListenerContainer
implementation class to instantiate listener container- Returns:
- the
JmsMessageDrivenChannelAdapterSpec
instance
-
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
- theDestination
to listen to- Returns:
- the
JmsListenerContainerSpec
instance
-
container
public static JmsDefaultListenerContainerSpec container(javax.jms.ConnectionFactory connectionFactory, String destinationName)The factory to produce aJmsListenerContainerSpec
.- Parameters:
connectionFactory
- the JMS ConnectionFactory to build ondestinationName
- the destination name to listen to- Returns:
- the
JmsListenerContainerSpec
instance
-