content: package de.chandre.quartz.context;
  
  import org.springframework.boot.autoconfigure.AutoConfigureBefore;
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.orm.jpa.JpaTransactionManager;
  import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
  import org.springframework.transaction.PlatformTransactionManager;
  
  import de.chandre.quartz.spring.QuartzSchedulerAutoConfiguration;
  
  @Configuration
  @AutoConfigureBefore(QuartzSchedulerAutoConfiguration.class)
  public class TestContextConfiguration8 {
  	
  	@Bean
  	public PlatformTransactionManager firstTransactionManager(LocalContainerEntityManagerFactoryBean entityManagerFactory) {
  		JpaTransactionManager transactionManager = new JpaTransactionManager();
  		transactionManager.setEntityManagerFactory(entityManagerFactory.getObject());
  		return transactionManager;
  	}
  	
  	@Bean
  	public PlatformTransactionManager secondTransactionManager(LocalContainerEntityManagerFactoryBean entityManagerFactory) {
  		JpaTransactionManager transactionManager = new JpaTransactionManager();
  		transactionManager.setEntityManagerFactory(entityManagerFactory.getObject());
  		return transactionManager;
  	}
  	
  }
  