configuration of process engine
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2014 07:09 AM
how can i configure process engine in activiti cfg xml file so that The processes should deploy in memory and not in DB type h2. Or how can I configure my own db.
book cdi app from activiti in action has the following configuration. Can someone tel me how to change it?
<?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">
<!– lookup the JTA-Transaction manager –>
<bean id="transactionManager" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:jboss/TransactionManager"></property>
<property name="resourceRef" value="true" />
</bean>
<!– process engine configuration –>
<bean id="processEngineConfiguration" class="org.activiti.cdi.CdiJtaProcessEngineConfiguration">
<property name="dataSourceJndiName" value="java:jboss/datasources/ExampleDS" />
<property name="databaseType" value="h2" />
<property name="transactionManager" ref="transactionManager" />
<property name="transactionsExternallyManaged" value="true" />
<property name="databaseSchemaUpdate" value="true" />
<property name="customPostBPMNParseListeners">
<list>
<bean class="org.activiti.cdi.impl.event.CdiEventSupportBpmnParseListener" />
</list>
</property>
</bean>
</beans>
book cdi app from activiti in action has the following configuration. Can someone tel me how to change it?
<?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">
<!– lookup the JTA-Transaction manager –>
<bean id="transactionManager" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:jboss/TransactionManager"></property>
<property name="resourceRef" value="true" />
</bean>
<!– process engine configuration –>
<bean id="processEngineConfiguration" class="org.activiti.cdi.CdiJtaProcessEngineConfiguration">
<property name="dataSourceJndiName" value="java:jboss/datasources/ExampleDS" />
<property name="databaseType" value="h2" />
<property name="transactionManager" ref="transactionManager" />
<property name="transactionsExternallyManaged" value="true" />
<property name="databaseSchemaUpdate" value="true" />
<property name="customPostBPMNParseListeners">
<list>
<bean class="org.activiti.cdi.impl.event.CdiEventSupportBpmnParseListener" />
</list>
</property>
</bean>
</beans>
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2014 02:38 AM
Hi,
Default activiti H2 configuration is memory. Activiti uses in memory database.
How to change DB configuration:
http://www.activiti.org/userguide/#databaseConfiguration
Regards
Martin
Default activiti H2 configuration is memory. Activiti uses in memory database.
How to change DB configuration:
http://www.activiti.org/userguide/#databaseConfiguration
Regards
Martin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2014 02:53 AM
the problem I am facing is that I want to use a new DB table. And "databaseSchemaUpdate: true" mean If the schema doesn't exist, it is created. But i am getting exception. It only works with the existing one and not with new one.
Can tel me how to generate a new table of H2 type within activiti-cfg.xml file ?
Can tel me how to generate a new table of H2 type within activiti-cfg.xml file ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2014 03:36 AM
What kind of exception are you getting?
databaseSchemaUpdate should work fine with existing schema's as well.
Best regards,
databaseSchemaUpdate should work fine with existing schema's as well.
Best regards,
