org.springframework.boot.jms.XAConnectionFactoryWrapper Java Examples

The following examples show how to use org.springframework.boot.jms.XAConnectionFactoryWrapper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NarayanaConfigurationIT.java    From narayana-spring-boot with Apache License 2.0 5 votes vote down vote up
@Test
public void allDefaultBeansShouldBeLoaded() {
    this.context = new AnnotationConfigApplicationContext(NarayanaConfiguration.class);
    this.context.getBean(NarayanaBeanFactoryPostProcessor.class);
    this.context.getBean(XADataSourceWrapper.class);
    this.context.getBean(XAConnectionFactoryWrapper.class);
    this.context.getBean(NarayanaPropertiesInitializer.class);
    this.context.getBean(UserTransaction.class);
    this.context.getBean(TransactionManager.class);
    this.context.getBean(JtaTransactionManager.class);
    this.context.getBean(RecoveryManagerService.class);
    this.context.getBean(XARecoveryModule.class);
}
 
Example #2
Source File: NarayanaConfiguration.java    From narayana-spring-boot with Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnMissingBean(XAConnectionFactoryWrapper.class)
public XAConnectionFactoryWrapper xaConnectionFactoryWrapper(TransactionManager transactionManager,
        XARecoveryModule xaRecoveryModule, NarayanaProperties narayanaProperties) {
    return new NarayanaXAConnectionFactoryWrapper(transactionManager, xaRecoveryModule, narayanaProperties);
}
 
Example #3
Source File: MQXAConnectionFactoryConfiguration.java    From mq-jms-spring with Apache License 2.0 4 votes vote down vote up
@Primary
@Bean(name = { "jmsConnectionFactory", "xaJmsConnectionFactory" })
public ConnectionFactory jmsConnectionFactory(MQConfigurationProperties properties, ObjectProvider<List<MQConnectionFactoryCustomizer>> factoryCustomizers, XAConnectionFactoryWrapper wrapper) throws Exception {
  MQXAConnectionFactory connectionFactory = new MQConnectionFactoryFactory(properties, factoryCustomizers.getIfAvailable()).createConnectionFactory(MQXAConnectionFactory.class);
  return wrapper.wrapConnectionFactory(connectionFactory);
}
 
Example #4
Source File: JmsTracingConfigurationTest.java    From spring-cloud-sleuth with Apache License 2.0 4 votes vote down vote up
@Bean
XAConnectionFactoryWrapper xaConnectionFactoryWrapper() {
	return connectionFactory -> (ConnectionFactory) connectionFactory;
}