public final class Jms extends Object
public static JmsPollableMessageChannelSpec<?,PollableJmsChannel> pollableChannel(ConnectionFactory connectionFactory)
JmsPollableMessageChannelSpec
.connectionFactory
- the JMS ConnectionFactory to build onJmsPollableMessageChannelSpec
instancepublic static JmsPollableMessageChannelSpec<?,PollableJmsChannel> pollableChannel(@Nullable String id, ConnectionFactory connectionFactory)
JmsPollableMessageChannelSpec
.id
- the bean name for the target PollableChannel
componentconnectionFactory
- the JMS ConnectionFactory to build onJmsPollableMessageChannelSpec
instancepublic static JmsMessageChannelSpec<?,?> channel(ConnectionFactory connectionFactory)
JmsMessageChannelSpec
.connectionFactory
- the JMS ConnectionFactory to build onJmsMessageChannelSpec
instancepublic static JmsMessageChannelSpec<?,?> channel(@Nullable String id, ConnectionFactory connectionFactory)
JmsMessageChannelSpec
.id
- the bean name for the target MessageChannel
componentconnectionFactory
- the JMS ConnectionFactory to build onJmsMessageChannelSpec
instancepublic static JmsPublishSubscribeMessageChannelSpec publishSubscribeChannel(ConnectionFactory connectionFactory)
JmsPublishSubscribeMessageChannelSpec
.connectionFactory
- the JMS ConnectionFactory to build onJmsPublishSubscribeMessageChannelSpec
instancepublic static JmsPublishSubscribeMessageChannelSpec publishSubscribeChannel(@Nullable String id, ConnectionFactory connectionFactory)
JmsPublishSubscribeMessageChannelSpec
.id
- the bean name for the target MessageChannel
componentconnectionFactory
- the JMS ConnectionFactory to build onJmsPublishSubscribeMessageChannelSpec
instancepublic static JmsOutboundChannelAdapterSpec<?> outboundAdapter(JmsTemplate jmsTemplate)
JmsOutboundChannelAdapterSpec
.jmsTemplate
- the JmsTemplate to build onJmsOutboundChannelAdapterSpec
instancepublic static JmsOutboundChannelAdapterSpec.JmsOutboundChannelSpecTemplateAware outboundAdapter(ConnectionFactory connectionFactory)
JmsOutboundChannelAdapterSpec
.connectionFactory
- the JMS ConnectionFactory to build onJmsOutboundChannelAdapterSpec
instancepublic static JmsInboundChannelAdapterSpec<?> inboundAdapter(JmsTemplate jmsTemplate)
JmsInboundChannelAdapterSpec
.jmsTemplate
- the JmsTemplate to build onJmsInboundChannelAdapterSpec
instancepublic static JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware inboundAdapter(ConnectionFactory connectionFactory)
JmsInboundChannelAdapterSpec
.connectionFactory
- the JMS ConnectionFactory to build onJmsInboundChannelAdapterSpec
instancepublic static JmsOutboundGatewaySpec outboundGateway(ConnectionFactory connectionFactory)
JmsOutboundGatewaySpec
.connectionFactory
- the JMS ConnectionFactory to build onJmsOutboundGatewaySpec
instancepublic static JmsInboundGatewaySpec<?> inboundGateway(AbstractMessageListenerContainer listenerContainer)
JmsInboundGatewaySpec
.listenerContainer
- the JMS AbstractMessageListenerContainer
to build onJmsInboundGatewaySpec
instancepublic static JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<JmsDefaultListenerContainerSpec,DefaultMessageListenerContainer> inboundGateway(ConnectionFactory connectionFactory)
JmsInboundGatewaySpec
.connectionFactory
- the JMS ConnectionFactory to build onJmsInboundGatewaySpec
instancepublic static <C extends AbstractMessageListenerContainer> JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<?,C> inboundGateway(ConnectionFactory connectionFactory, Class<C> containerClass)
JmsInboundGatewaySpec
.C
- the AbstractMessageListenerContainer
inheritor typeconnectionFactory
- the JMS ConnectionFactory to build oncontainerClass
- the AbstractMessageListenerContainer
implementation class
to instantiate listener containerJmsInboundGatewaySpec
instancepublic static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(JmsListenerContainerSpec<?,? extends AbstractMessageListenerContainer> jmsListenerContainerSpec)
JmsMessageDrivenChannelAdapterSpec
.jmsListenerContainerSpec
- the JmsListenerContainerSpec
to build onJmsMessageDrivenChannelAdapterSpec
instancepublic static JmsMessageDrivenChannelAdapterSpec<?> messageDrivenChannelAdapter(AbstractMessageListenerContainer listenerContainer)
JmsMessageDrivenChannelAdapterSpec
.listenerContainer
- the AbstractMessageListenerContainer
to build onJmsMessageDrivenChannelAdapterSpec
instancepublic static JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<JmsDefaultListenerContainerSpec,DefaultMessageListenerContainer> messageDrivenChannelAdapter(ConnectionFactory connectionFactory)
JmsMessageDrivenChannelAdapterSpec
.connectionFactory
- the JMS ConnectionFactory to build onJmsMessageDrivenChannelAdapterSpec
instancepublic static <C extends AbstractMessageListenerContainer> JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec<?,C> messageDrivenChannelAdapter(ConnectionFactory connectionFactory, Class<C> containerClass)
JmsMessageDrivenChannelAdapterSpec
.C
- the AbstractMessageListenerContainer
inheritor typeconnectionFactory
- the JMS ConnectionFactory to build oncontainerClass
- the AbstractMessageListenerContainer
implementation class
to instantiate listener containerJmsMessageDrivenChannelAdapterSpec
instancepublic static JmsDefaultListenerContainerSpec container(ConnectionFactory connectionFactory, Destination destination)
JmsListenerContainerSpec
.connectionFactory
- the JMS ConnectionFactory to build ondestination
- the Destination
to listen toJmsListenerContainerSpec
instancepublic static JmsDefaultListenerContainerSpec container(ConnectionFactory connectionFactory, String destinationName)
JmsListenerContainerSpec
.connectionFactory
- the JMS ConnectionFactory to build ondestinationName
- the destination name to listen toJmsListenerContainerSpec
instance