Class JbpmDbContext
java.lang.Object
ru.cg.webbpm.modules.bpmn.workflow.jbpm.JbpmDbContext
@Configuration
@Import(MetricsConfig.class)
@EnableTransactionManagement
public class JbpmDbContext
extends Object
- Author:
- Tim Urmancheev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
entityManagerFactory
(DataSource dataSource) org.hibernate.stat.Statistics
hibernateStatistics
(javax.persistence.EntityManagerFactory emf, org.springframework.jmx.export.MBeanExporter mBeanExporter) liquibase.integration.spring.SpringLiquibase
jbpmLiquibase
(DataSource dataSource) org.springframework.jmx.export.MBeanExporter
-
Constructor Details
-
JbpmDbContext
public JbpmDbContext()
-
-
Method Details
-
jbpmDataSource
- Throws:
NamingException
-
entityManagerFactory
@Bean @DependsOn("jbpmLiquibase") public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory(DataSource dataSource) -
jbpmLiquibase
-
mBeanExporter
@Bean @Conditional(HibernateStatsEnabledCondition.class) public org.springframework.jmx.export.MBeanExporter mBeanExporter() -
hibernateStatistics
@Bean @Conditional(HibernateStatsEnabledCondition.class) public org.hibernate.stat.Statistics hibernateStatistics(javax.persistence.EntityManagerFactory emf, org.springframework.jmx.export.MBeanExporter mBeanExporter) throws MalformedObjectNameException - Throws:
MalformedObjectNameException
-