11-11-2011 08:59 AM
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter">
</bean>
</property>
<property name="jpaProperties">
<bean id="jpaProperties"
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
<prop key="eclipselink.weaving">false</prop>
</props>
</property>
</bean>
</property>
</bean>
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
<!– Database configurations –>
<property name="databaseSchemaUpdate" value="true"/>
<property name="jdbcUrl" value="jdbc:h2:tcp://localhost:9092/~/test"/>
<property name="jdbcDriver" value="org.h2.Driver"/>
<property name="jdbcUsername" value="Testuser"/>
<property name="jdbcPassword" value="start"/>
<property name="jpaEntityManagerFactory" ref="entityManagerFactory"/>
<property name="jpaHandleTransaction" value="true"/>
<property name="jpaCloseEntityManager" value="true"/>
<!– job executor configurations –>
<property name="jobExecutorActivate" value="false"/>
</bean>
</beans>
11-12-2011 05:56 AM
11-15-2011 03:15 AM
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="org.h2.Driver" />
<property name="url" value="jdbc:h2:tcp://localhost:9092/~/test?autoReconnect=true;create=true" />
<property name="username" value="Testuser" />
<property name="password" value="start" />
<property name="defaultAutoCommit" value="false" />
</bean>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager"/>
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="true" />
<property name="customFormTypes">
<list>
<ref bean="userFormType"/>
</list>
</property>
<!– Database configurations –>
<property name="jdbcUrl" value="jdbc:h2:tcp://localhost:9092/~/test"/>
<property name="jdbcDriver" value="org.h2.Driver"/>
<property name="jdbcUsername" value="Testuser"/>
<property name="jdbcPassword" value="start"/>
<property name="jpaEntityManagerFactory" ref="entityManagerFactory"/>
<property name="jpaHandleTransaction" value="true"/>
<property name="jpaCloseEntityManager" value="true"/>
</bean>
and also adjusted activiti-context.xml, activiti-ui-context.xml. It compiles fine and says it is using my database [jetty] [DEBUG] org.springframework.jdbc.datasource.SimpleDriverDataSource - Creating new JDBC Driver Connection to [jdbc:h2:tcp://localhost:9092/~/test]
but I'm still not able to see my own tables in the Database within the Explorer. Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.