AnsweredAssumed Answered

StandaloneMybatisTransactionContext used with JtaCfg?

Question asked by chris.joelly on Aug 15, 2011
Latest reply on Aug 16, 2011 by frederikheremans1
Hello,

i configured Activiti in the following way:


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee"
   xsi:schemaLocation="
   http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
   http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd">
   <jee:jndi-lookup jndi-name="java:appserver/TransactionManager" id="transactionManager" />
   <bean id="processEngineConfiguration"
      class="org.activiti.engine.impl.cfg.JtaProcessEngineConfiguration">
      <property name="transactionManager" ref="transactionManager"/>
      <property name="transactionsExternallyManaged" value="true" />
      <property name="dataSourceJndiName" value="jdbc/MysqlErp" />
      <property name="databaseSchemaUpdate" value="true" />
      <property name="databaseType" value="mysql" />
   </bean>
</beans>

but when i activate java.util.logging with level FINE then i see lots of messages which writes that the StandaloneMybatisTransactionContext is used
within the engine and commits are done:


[#|2011-08-15T13:19:16.770+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.interceptor.LogInterceptor|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.interceptor.LogInterceptor;MethodName=execute;|— starting GetTaskFormCmd ——————————————————–|#]
[#|2011-08-15T13:19:16.772+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.db.DbSqlSession|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.db.DbSqlSession;MethodName=flush;|flush summary:|#]
[#|2011-08-15T13:19:16.772+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.db.DbSqlSession|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.db.DbSqlSession;MethodName=flush;|now executing flush…|#]
[#|2011-08-15T13:19:16.772+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext;MethodName=commit;|firing event committing…|#]
[#|2011-08-15T13:19:16.772+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext;MethodName=commit;|committing the ibatis sql session…|#]
[#|2011-08-15T13:19:16.772+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext;MethodName=commit;|firing event committed…|#]
[#|2011-08-15T13:19:16.772+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.interceptor.LogInterceptor|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.interceptor.LogInterceptor;MethodName=execute;|— GetTaskFormCmd finished ——————————————————–|#]
[#|2011-08-15T13:19:16.773+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.interceptor.LogInterceptor|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.interceptor.LogInterceptor;MethodName=execute;|                                                                                                    |#]
[#|2011-08-15T13:19:16.774+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.interceptor.LogInterceptor|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.interceptor.LogInterceptor;MethodName=execute;|                                                                                                    |#]
[#|2011-08-15T13:19:16.774+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.interceptor.LogInterceptor|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.interceptor.LogInterceptor;MethodName=execute;|— starting TaskQueryImpl ——————————————————–|#]
[#|2011-08-15T13:19:16.790+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.db.DbSqlSession|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.db.DbSqlSession;MethodName=flush;|flush summary:|#]
[#|2011-08-15T13:19:16.791+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.db.DbSqlSession|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.db.DbSqlSession;MethodName=flush;|now executing flush…|#]
[#|2011-08-15T13:19:16.791+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext;MethodName=commit;|firing event committing…|#]
[#|2011-08-15T13:19:16.791+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext;MethodName=commit;|committing the ibatis sql session…|#]
[#|2011-08-15T13:19:16.791+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext;MethodName=commit;|firing event committed…|#]
[#|2011-08-15T13:19:16.791+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.interceptor.LogInterceptor|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.interceptor.LogInterceptor;MethodName=execute;|— TaskQueryImpl finished ——————————————————–|#]
[#|2011-08-15T13:19:16.792+0200|FINE|glassfish3.1.1|org.activiti.engine.impl.interceptor.LogInterceptor|_ThreadID=21;_ThreadName=Thread-2;ClassName=org.activiti.engine.impl.interceptor.LogInterceptor;MethodName=execute;|    

does this mean that Activiti is triggering commit's to the datasource?

Outcomes