[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    [jboss-user] [jBPM] - Re: jbpm 3.2.2 in Jboss AS 4.2.2 -
From:       "Harry P." <do-not-reply () jboss ! com>
Date:       2011-04-29 5:38:08
Message-ID: 2-391067-3-60080-1203539685000-2-602635-3-79053-1304055451442.jivesbs.jivemailuser () http://community ! jboss ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Harry P. [http://community.jboss.org/people/harishpandya] created the discussion

"Re: jbpm 3.2.2 in Jboss AS 4.2.2 - Transaction Problems"

To view the discussion, visit: http://community.jboss.org/message/602635#602635

--------------------------------------------------------------
Hi Markus,

I was facing "Unable to Locate current JTA transaction" error.
So i changed the 

 <field name="isCurrentSessionEnabled"><*true* /></field> 

property of jbpm.cfg.sml to *false.* 
** 
Now my jbpm transactions are not getting commited.
I tried following thing
* Saved process Instance
* Inserted session manually through hibernate SessionFactory
* Explicitally commited jbpm transaction

But nothing helped me out.
I am using JTA transaction.

So can you help me.
My jbpm.cfg.xml file is as follow




<jbpm-configuration>
   <!-- 
       The default configurations can be found in org/jbpm/default.jbpm.cfg.xml 
       Those configurations can be overwritten by putting this file called 
       jbpm.cfg.xml on the root of the classpath and put in the customized values.
   -->
 
   <jbpm-context>
     <service name="persistence">
           <factory>
               <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
                   <field name="isTransactionEnabled"><false /></field>
                   <field name="isCurrentSessionEnabled"><false /></field>
               </bean>
           </factory>
       </service>
       <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
       <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
       <service name="scheduler" \
                factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
       <service name="authentication" \
factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />  \
</jbpm-context>  <!-- configuration resource files pointing to default configuration \
files in jbpm-{version}.jar -->  <string name="resource.hibernate.cfg.xml" \
                value="/hibernate.cfg.xml" />
     <string name="resource.business.calendar" \
value="org/jbpm/calendar/jbpm.business.calendar.properties" />  <string \
name="resource.default.modules" \
value="org/jbpm/graph/def/jbpm.default.modules.properties" />  <string \
name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />  \
<string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" \
/>  <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
   <string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
   <string name="resource.varmapping" \
value="org/jbpm/context/exe/jbpm.varmapping.xml" />  <bean \
name="jbpm.task.instance.factory" \
class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" />  \
<bean name="jbpm.variable.resolver" \
                class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" \
                />
     <bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor"> 
   <field name="jbpmConfiguration"> <ref bean="jbpmConfiguration"/> </field> 
   <field name="name"> <string value="JbpmJobExector"/> </field> 
   <field name="nbrOfThreads"> <int value="1"/> </field> 
   <field name="idleInterval"> <int value="5000"/> </field> 
   <field name="maxIdleInterval"> <int value="3600000"/> </field> <!-- 1 hour --> 
   <field name="historyMaxSize"> <int value="20"/> </field> 
   <field name="maxLockTime"> <int value="600000"/> </field> <!-- 10 minutes --> 
   <field name="lockMonitorInterval"> <int value="60000"/> </field> <!-- 1 minute --> \
  <field name="lockBufferTime"> <int value="5000"/> </field> <!-- 5 seconds --> 
 </bean>
   <long name="jbpm.msg.wait.timout" value="5000" singleton="true" />
</jbpm-configuration>



HIbernate.cfg.xml is::>

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
   "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
   " http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd \
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> \
<hibernate-configuration>  <session-factory>
       <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
  <property name="connection.driver_class">oracle.jdbc.xa.client.OracleXADataSource</property>
  
       <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
  
 <property name="hibernate.jdbc.batch_size">0</property>
         
         <property name="hibernate.connection.datasource">java:datasource</property>
         
   <property name="hibernate.connection.pool_size">10</property>
   <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property> \
  <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
  <property name="hibernate.hbm2ddl.auto">update</property>
 
         <property name="hibernate.format_sql">true</property>
       <property name="hibernate.use_sql_comments">true</property>
 
 <property name="hibernate.show_sql">true</property>
 <property name="hibernate.current_session_context_class">managed</property>
             <mapping resource="hibernate.extra.hbm.xml" />
       <mapping resource="hibernate.identity.hbm.xml" />
           <mapping resource="org/jbpm/db/hibernate.types.hbm.xml" />
             <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
             <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
       <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
       <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
       <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
       <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
       <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
       <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
       <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
       <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
       <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
       <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
       <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
       <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
       <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
       <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
       <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
       <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
       <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
       <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
       <!-- bytes mapping files -->
       <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
       <!-- module.def mapping files -->
       <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
       <!-- file.def mapping files -->
       <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
         <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
       <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
       <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
       <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
       <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
       <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
       <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
       <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
       <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
       <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
       <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
       <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
  <mapping resource="org/jbpm/job/Job.hbm.xml"/>
       <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
       <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
       <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
       <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
       <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
       <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
       <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
       <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
       <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
       <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
       <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
       <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
       <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
       <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
       <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
       <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
       <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
       <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
       <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
       <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
                
       <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
  <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
       <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
       <class-cache class="org.jbpm.bytes.ByteArray" usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.bytes.ByteArray.byteBlocks" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.context.def.VariableAccess" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.file.def.FileDefinition.processFiles" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.action.Script.variableAccesses" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.graph.def.Action" usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.graph.def.Event" usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.Event.actions" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.graph.def.ExceptionHandler" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.ExceptionHandler.actions" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.graph.def.Node" usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.Node.events" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.Node.exceptionHandlers" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.Node.leavingTransitions" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.Node.arrivingTransitions" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.graph.def.ProcessDefinition" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.events" \
                usage="nonstrict-read-write" />
       <collection-cache \
collection="org.jbpm.graph.def.ProcessDefinition.exceptionHandlers" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.nodes" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.actions" \
                usage="nonstrict-read-write" />
       <collection-cache \
collection="org.jbpm.graph.def.ProcessDefinition.definitions" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.SuperState.nodes" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.graph.def.Transition" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.Transition.events" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.def.Transition.exceptionHandlers" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.node.Decision.decisionConditions" \
                usage="nonstrict-read-write" />
       <collection-cache \
collection="org.jbpm.graph.node.ProcessState.variableAccesses" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.graph.node.TaskNode.tasks" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.instantiation.Delegation" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.module.def.ModuleDefinition" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.taskmgmt.def.Swimlane.tasks" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.taskmgmt.def.TaskController" \
                usage="nonstrict-read-write" />
       <collection-cache \
collection="org.jbpm.taskmgmt.def.TaskController.variableAccesses" \
                usage="nonstrict-read-write" />
       <class-cache class="org.jbpm.taskmgmt.def.Task" usage="nonstrict-read-write" \
                />
       <collection-cache collection="org.jbpm.taskmgmt.def.Task.events" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.taskmgmt.def.Task.exceptionHandlers" \
                usage="nonstrict-read-write" />
       <collection-cache \
collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes" \
                usage="nonstrict-read-write" />
       <collection-cache collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks" \
usage="nonstrict-read-write" />  </session-factory>
</hibernate-configuration>
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/602635#602635]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]



[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; \
margin: 0; padding: 20px;">

<div>
	<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: \
1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;">  <tbody>
			<tr>

				<td>

					<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" \
style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: \
6px; -webkit-border-radius: 6px;">  <tbody>
							<tr>
								<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px \
solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; \
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; \
                -webkit-border-top-left-radius: 5px;">
									<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; \
                margin: 0; display: block !important;">
									<!-- To have a header image/logo replace the name below with your img tag \
                -->
									<!-- Email clients will render the images when the message is read so any \
                image -->
									<!-- must be made available on a public server, so that all recipients can \
                load the image. -->
									<a href="http://community.jboss.org/index.jspa" style="text-decoration: \
none; color: #E1E1E1">JBoss Community</a></h1>  </td>

							</tr>
							<tr>
								<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; \
color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; \
-moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; \
-webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: \
17px; font-weight: normal;">  Re: jbpm 3.2.2 in Jboss AS 4.2.2 - Transaction Problems
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/harishpandya">Harry P.</a> \
in <i>jBPM</i> - <a href="http://community.jboss.org/message/602635#602635">View the \
full discussion</a> </span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p> Hi Markus,</p><p style="min-height: 8pt; \
height: 8pt; padding: 0px;">&#160;</p><p>I was facing "Unable to Locate current JTA \
transaction" error.</p><p>So i changed the </p><p style="min-height: 8pt; height: \
8pt; padding: 0px;">&#160;</p><p> &lt;field name=<span style="color: \
#ff0000;">"isCurrentSessionEnabled"</span>&gt;&lt;<span style="color: \
#000080;"><strong>true</strong></span> /&gt;&lt;/field&gt; </p><p style="min-height: \
8pt; height: 8pt; padding: 0px;">&#160;</p><p>property of jbpm.cfg.sml to <span \
style="text-decoration: underline;"><strong>false. </strong></span></p><p \
style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="text-decoration: \
underline;"><strong> </strong></span> &#160;</p><p>Now my jbpm transactions are not \
getting commited.</p><p>I tried following thing</p><ul><li>Saved process \
Instance</li><li>Inserted session manually through hibernate \
SessionFactory</li><li>Explicitally commited jbpm transaction</li></ul><p \
style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But nothing helped \
me out.</p><p>I am using JTA transaction.</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;">&#160;</p><p>So can you help me.</p><p>My jbpm.cfg.xml file is as \
follow</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p \
style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: \
8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;">&#160;</p><p>&lt;jbpm-configuration&gt;</p><p>&#160; &lt;!-- \
<br/>&#160;&#160;&#160; The default configurations can be found in \
org/jbpm/default.jbpm.cfg.xml <br/>&#160;&#160;&#160; Those configurations can be \
overwritten by putting this file called <br/>&#160;&#160;&#160; jbpm.cfg.xml on the \
root of the classpath and put in the customized values.<br/>&#160; --&gt;<br/> \
<br/>&#160; &lt;jbpm-context&gt;<br/>&#160;&#160; &lt;service \
name="persistence"&gt;<br/>&#160;&#160;&#160;&#160;&#160; \
&lt;factory&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;bean \
class="org.jbpm.persistence.db.DbPersistenceServiceFactory"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \
&lt;field name="isTransactionEnabled"&gt;&lt;false \
/&gt;&lt;/field&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \
&lt;field name="isCurrentSessionEnabled"&gt;&lt;false \
/&gt;&lt;/field&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; \
&lt;/bean&gt;<br/>&#160;&#160;&#160;&#160;&#160; \
&lt;/factory&gt;<br/>&#160;&#160;&#160; &lt;/service&gt;<br/>&#160;&#160;&#160; \
&lt;service name="tx" factory="org.jbpm.tx.TxServiceFactory" \
/&gt;<br/>&#160;&#160;&#160; &lt;service name="message" \
factory="org.jbpm.msg.db.DbMessageServiceFactory" /&gt;<br/>&#160;&#160;&#160; \
&lt;service name="scheduler" \
factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" \
/&gt;<br/>&#160;&#160;&#160; &lt;service name="authentication" \
factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" \
/&gt;<br/>&#160; &lt;/jbpm-context&gt;</p><p>&#160; &lt;!-- configuration resource \
files pointing to default configuration files in jbpm-{version}.jar --&gt;<br/> \
&lt;string name="resource.hibernate.cfg.xml" value="/hibernate.cfg.xml" \
/&gt;<br/>&#160;&#160; &lt;string name="resource.business.calendar" \
value="org/jbpm/calendar/jbpm.business.calendar.properties" /&gt;<br/>&#160; \
&lt;string name="resource.default.modules" \
value="org/jbpm/graph/def/jbpm.default.modules.properties" /&gt;<br/>&#160; \
&lt;string name="resource.converter" \
value="org/jbpm/db/hibernate/jbpm.converter.properties" /&gt;<br/>&#160; &lt;string \
name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" \
/&gt;<br/>&#160; &lt;string name="resource.node.types" \
value="org/jbpm/graph/node/node.types.xml" /&gt;<br/>&#160; &lt;string \
name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" /&gt;<br/>&#160; \
&lt;string name="resource.varmapping" \
value="org/jbpm/context/exe/jbpm.varmapping.xml" /&gt;</p><p>&#160; &lt;bean \
name="jbpm.task.instance.factory" \
class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" \
/&gt;<br/>&#160; &lt;bean name="jbpm.variable.resolver" \
class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" \
/&gt;<br/>&#160;&#160; &lt;bean name="jbpm.job.executor" \
class="org.jbpm.job.executor.JobExecutor"&gt; <br/>&#160; &lt;field \
name="jbpmConfiguration"&gt; &lt;ref bean="jbpmConfiguration"/&gt; &lt;/field&gt; \
<br/>&#160; &lt;field name="name"&gt; &lt;string value="JbpmJobExector"/&gt; \
&lt;/field&gt; <br/>&#160; &lt;field name="nbrOfThreads"&gt; &lt;int value="1"/&gt; \
&lt;/field&gt; <br/>&#160; &lt;field name="idleInterval"&gt; &lt;int \
value="5000"/&gt; &lt;/field&gt; <br/>&#160; &lt;field name="maxIdleInterval"&gt; \
&lt;int value="3600000"/&gt; &lt;/field&gt; &lt;!-- 1 hour --&gt; <br/>&#160; \
&lt;field name="historyMaxSize"&gt; &lt;int value="20"/&gt; &lt;/field&gt; \
<br/>&#160; &lt;field name="maxLockTime"&gt; &lt;int value="600000"/&gt; \
&lt;/field&gt; &lt;!-- 10 minutes --&gt; <br/>&#160; &lt;field \
name="lockMonitorInterval"&gt; &lt;int value="60000"/&gt; &lt;/field&gt; &lt;!-- 1 \
minute --&gt; <br/>&#160; &lt;field name="lockBufferTime"&gt; &lt;int \
value="5000"/&gt; &lt;/field&gt; &lt;!-- 5 seconds --&gt; <br/> \
&lt;/bean&gt;<br/>&#160; &lt;long name="jbpm.msg.wait.timout" value="5000" \
singleton="true" /&gt;</p><p>&lt;/jbpm-configuration&gt;</p><p style="min-height: \
8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;">&#160;</p><p>HIbernate.cfg.xml is::&gt;</p><p style="min-height: 8pt; height: \
8pt; padding: 0px;">&#160;</p><p>&lt;?xml version='1.0' \
encoding='utf-8'?&gt;<br/>&lt;!DOCTYPE hibernate-configuration PUBLIC<br/>&#160; \
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"<br/>&#160; "<a \
class="jive-link-external-small" \
href="http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">http://hiberna \
te.sourceforge.net/hibernate-configuration-3.0.dtd</a>"&gt;<br/>&lt;hibernate-configuration&gt;<br/>&#160; \
&lt;session-factory&gt;<br/>&#160;&#160;&#160; &lt;property \
name="hibernate.dialect"&gt;org.hibernate.dialect.Oracle10gDialect&lt;/property&gt;<br/> \
&lt;property name="connection.driver_class"&gt;oracle.jdbc.xa.client.OracleXADataSource&lt;/property&gt;<br/> \
<br/>&#160;&#160;&#160; &lt;property \
name="hibernate.cache.provider_class"&gt;org.hibernate.cache.HashtableCacheProvider&lt;/property&gt;<br/>&#160;&#160;&#160; \
<br/> &lt;property name="hibernate.jdbc.batch_size"&gt;0&lt;/property&gt;<br/>&#160;&#160;&#160;&#160; \
<br/>&#160;&#160;&#160;&#160; &lt;property \
name="hibernate.connection.datasource"&gt;java:datasource&lt;/property&gt;<br/>&#160;&#160;&#160;&#160; \
<br/>&#160; &lt;property \
name="hibernate.connection.pool_size"&gt;10&lt;/property&gt;</p><p>&#160; \
&lt;property name="hibernate.transaction.manager_lookup_class"&gt;org.hibernate.transaction.JBossTransactionManagerLookup&lt;/property&gt; \
<br/> &lt;property name="transaction.factory_class"&gt;org.hibernate.transaction.JTATransactionFactory&lt;/property&gt;<br/>&#160;&#160;&#160;&#160; \
&lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt;<br/> \
<br/>&#160;&#160;&#160;&#160; &lt;property \
name="hibernate.format_sql"&gt;true&lt;/property&gt;<br/>&#160;&#160;&#160; \
&lt;property name="hibernate.use_sql_comments"&gt;true&lt;/property&gt;<br/> <br/> \
&lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;<br/> &lt;property \
name="hibernate.current_session_context_class"&gt;managed&lt;/property&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160; \
&lt;mapping resource="hibernate.extra.hbm.xml" /&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="hibernate.identity.hbm.xml" \
/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;mapping \
resource="org/jbpm/db/hibernate.types.hbm.xml" \
/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160; &lt;mapping \
resource="org/jbpm/graph/action/MailAction.hbm.xml"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/def/Node.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/def/Event.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/def/Action.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/node/Join.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/node/State.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;!-- bytes mapping files --&gt;<br/>&#160;&#160;&#160; &lt;mapping \
resource="org/jbpm/bytes/ByteArray.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; &lt;!-- \
module.def mapping files --&gt;<br/>&#160;&#160;&#160; &lt;mapping \
resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;!-- file.def mapping files --&gt;<br/>&#160;&#160;&#160; &lt;mapping \
resource="org/jbpm/file/def/FileDefinition.hbm.xml"/&gt;</p><p>&#160;&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/job/Job.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/job/Timer.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/&gt;<br/>&#160;&#160;&#160; \
&lt;mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/&gt;</p><p>&#160;&#160;&#160; \
&lt;class-cache class="org.jbpm.bytes.ByteArray" usage="nonstrict-read-write" \
/&gt;<br/>&#160;&#160;&#160; &lt;collection-cache \
collection="org.jbpm.bytes.ByteArray.byteBlocks" usage="nonstrict-read-write" \
/&gt;</p><p>&#160;&#160;&#160; &lt;class-cache \
class="org.jbpm.context.def.VariableAccess" usage="nonstrict-read-write" \
/&gt;</p><p>&#160;&#160;&#160; &lt;collection-cache \
collection="org.jbpm.file.def.FileDefinition.processFiles" \
usage="nonstrict-read-write" /&gt;</p><p>&#160;&#160;&#160; &lt;collection-cache \

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a \
href="http://community.jboss.org/message/602635#602635">going to Community</a></p>  \
<p style="margin: 0;">Start a new discussion in jBPM at <a \
href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
 </div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>



_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic