Just use something on the lines of what is specified below: Of course you WILL have to tweak it to suite all your needs,
| <?xml version="1.0" encoding="UTF-8"?> | | <jbpm-configuration> | | <import resource="jbpm.jpdl.cfg.xml"/> | <process-engine-context> | <repository-service/> | <repository-cache/> | <execution-service/> | <history-service/> | <management-service/> | <identity-service/> | <task-service/> | | <script-manager default-expression-language="juel" | default-script-language="juel" | read-contexts="execution, environment, process-engine, spring" | write-context=""> | <script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory"/> | </script-manager> | | <authentication/> | <id-generator/> | <types resource="jbpm.variable.types.xml"/> | | <address-resolver/> | | <business-calendar> | <monday hours="9:00-12:00 and 12:30-17:00"/> | <tuesday hours="9:00-12:00 and 12:30-17:00"/> | <wednesday hours="9:00-12:00 and 12:30-17:00"/> | <thursday hours="9:00-12:00 and 12:30-17:00"/> | <friday hours="9:00-12:00 and 12:30-17:00"/> | <holiday period="01/07/2008 - 31/08/2008"/> | </business-calendar> | | <command-service> | <retry-interceptor/> | <environment-interceptor/> | <spring-transaction-interceptor current="true"/> | </command-service> | </process-engine-context> | | <transaction-context> | <repository-session/> | <db-session/> | <message-session/> | <timer-session/> | <history-session/> | <hibernate-session current="true"/> | | <!-- Custom Identity implementation--> | <object class="com.urcompany.IdentitySessionImpl"/> | </transaction-context> | </jbpm-configuration> | If you note the config above, the transaction-context is not inside the process-context. It is a node by itself. So either use the config from above or change yours to something more like: | <process-engine-context> | <identity-service/> | </process-engine-context> | <transaction-context> | <object class="be.mypackage.MyIdentitySession" /> | </transaction-context> | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239601#4239601 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239601 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
