本文整理汇总了Java中org.springframework.jms.config.SimpleJmsListenerContainerFactory类的典型用法代码示例。如果您正苦于以下问题:Java SimpleJmsListenerContainerFactory类的具体用法?Java SimpleJmsListenerContainerFactory怎么用?Java SimpleJmsListenerContainerFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SimpleJmsListenerContainerFactory类属于org.springframework.jms.config包,在下文中一共展示了SimpleJmsListenerContainerFactory类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: myJmsContainerFactory
import org.springframework.jms.config.SimpleJmsListenerContainerFactory; //导入依赖的package包/类
@Bean
JmsListenerContainerFactory<?> myJmsContainerFactory(ConnectionFactory connectionFactory){
SimpleJmsListenerContainerFactory factory = new SimpleJmsListenerContainerFactory();
factory.setConnectionFactory(connectionFactory);
factory.setPubSubDomain(true);
return factory;
}
示例2: testJmsListenerContainerFactoryBackOff
import org.springframework.jms.config.SimpleJmsListenerContainerFactory; //导入依赖的package包/类
@Test
public void testJmsListenerContainerFactoryBackOff() {
this.context = createContext(TestConfiguration6.class,
EnableJmsConfiguration.class);
JmsListenerContainerFactory<?> jmsListenerContainerFactory = this.context.getBean(
"jmsListenerContainerFactory", JmsListenerContainerFactory.class);
assertThat(jmsListenerContainerFactory.getClass())
.isEqualTo(SimpleJmsListenerContainerFactory.class);
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:10,代码来源:JmsAutoConfigurationTests.java
示例3: jmsListenerContainerFactory
import org.springframework.jms.config.SimpleJmsListenerContainerFactory; //导入依赖的package包/类
@Bean
JmsListenerContainerFactory<?> jmsListenerContainerFactory(
ConnectionFactory connectionFactory) {
SimpleJmsListenerContainerFactory factory = new SimpleJmsListenerContainerFactory();
factory.setConnectionFactory(connectionFactory);
return factory;
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:8,代码来源:JmsAutoConfigurationTests.java
示例4: testJmsListenerContainerFactoryBackOff
import org.springframework.jms.config.SimpleJmsListenerContainerFactory; //导入依赖的package包/类
@Test
public void testJmsListenerContainerFactoryBackOff() {
this.context = createContext(TestConfiguration6.class,
EnableJmsConfiguration.class);
JmsListenerContainerFactory<?> jmsListenerContainerFactory = this.context.getBean(
"jmsListenerContainerFactory", JmsListenerContainerFactory.class);
assertEquals(SimpleJmsListenerContainerFactory.class,
jmsListenerContainerFactory.getClass());
}
示例5: jmsListenerContainerFactory
import org.springframework.jms.config.SimpleJmsListenerContainerFactory; //导入依赖的package包/类
@Bean
public JmsListenerContainerFactory<?> jmsListenerContainerFactory(
ConnectionFactory connectionFactory) {
SimpleJmsListenerContainerFactory factory = new SimpleJmsListenerContainerFactory();
factory.setConnectionFactory(connectionFactory);
loadProperties();
log.debug("JMSCONTAINER Properties are: " + properties);
factory.setSessionTransacted(Boolean.valueOf(properties.getProperty("transacted", "false")));
// factory.setSessionTransacted(true);
return factory;
}
示例6: jmsListenerContainerFactory
import org.springframework.jms.config.SimpleJmsListenerContainerFactory; //导入依赖的package包/类
@Bean
public JmsListenerContainerFactory<?> jmsListenerContainerFactory(ConnectionFactory connectionFactory) {
SimpleJmsListenerContainerFactory simpleJmsListenerContainerFactory = new SimpleJmsListenerContainerFactory();
simpleJmsListenerContainerFactory.setConnectionFactory(connectionFactory);
simpleJmsListenerContainerFactory.setPubSubDomain(true);
return simpleJmsListenerContainerFactory;
}
示例7: jmsContainerFactory
import org.springframework.jms.config.SimpleJmsListenerContainerFactory; //导入依赖的package包/类
@Bean
JmsListenerContainerFactory<?> jmsContainerFactory(ConnectionFactory connectionFactory) {
SimpleJmsListenerContainerFactory factory = new SimpleJmsListenerContainerFactory();
factory.setConnectionFactory(connectionFactory);
return factory;
}