[jboss-user] [jBPM] - How to configure 4.3 the right way?
Maciej Swiderski
do-not-reply at jboss.com
Fri Apr 9 04:20:00 EDT 2010
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion
"How to configure 4.3 the right way?"
To view the discussion, visit: http://community.jboss.org/message/536480#536480
--------------------------------------------------------------
Hi,
I have created very basic cache configuration for jbpm 4.3 in jbpm.hibernate.cfg.xml, as follows:
<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
<property name="hibernate.cache.use_second_level_cache">true</property>
<property name="hibernate.cache.use_query_cache">true</property>
<class-cache \class="org.jbpm.pvm.internal.repository.DeploymentImpl" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.repository.DeploymentProperty" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.id.PropertyImpl" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.model.ExecutionImpl" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.job.JobImpl" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.task.TaskImpl" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.task.ParticipationImpl" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.task.SwimlaneImpl" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.identity.impl.UserImpl" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.identity.impl.MembershipImpl" usage="nonstrict-read-write"/>
<class-cache \class="org.jbpm.pvm.internal.identity.impl.GroupImpl" usage="nonstrict-read-write"/>
P.S. Please remove \ from class attribute.
By doing that execution of 50 process instances took about 150 - 200 ms less than without it.
Perhaps you could give it a try on your test to see if that makes any difference.
Cheers
Maciej
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536480#536480]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100409/d6228ec0/attachment.html
More information about the jboss-user
mailing list