-
1. Re: Jbpm 4 and ehcache
marcel.de.koster Apr 8, 2010 11:59 AM (in response to marcel.de.koster)In some pages I found that following configuration can be added, but I can't find a resource for jbpm.pvm.cache.xml:
<hibernate-configuration>
<!-- other config -->
<cache-configuration resource="jbpm.pvm.cache.xml" usage="nonstrict-read-write" />
</hibernate-configuration>Is there any example of the jbpm.pvm.cache.xml?
And from what version of jbpm4 is this available?
-
2. Re: Jbpm 4 and ehcache
rebody Apr 8, 2010 8:36 PM (in response to marcel.de.koster)Hi Marcel,
At this moment, jBPM4 does not support ehcache configuration for hibernate. The configuration you have found is included by jBPM-4.0-Alpha2. It is removed by some reason(Maybe). There is a huge change from jBPM-4.0-alpha2 to jBPM-4.3, so I don't think it could be used in jBPM-4.3 directly.
The configuration for jBPM-4.0-alpha2 is in the attach, maybe you could let it be used in jBPM-4.3.
Best regards.
-
jbpm.pvm.cache.xml 2.6 KB
-
-
3. Re: Jbpm 4 and ehcache
marcel.de.koster Apr 9, 2010 4:18 AM (in response to rebody)Hi Huisheng,
Thank you for your quick reply.
I will look into what I can do with that file. jBPM indeed is pretty fast. But what I see in oracle is that the Get jobs query, done by the JobExecutor is done each 5 seconds. Not using ehcache or some other caching will result in executing this query every 5 seconds. It would be nice if the query was only executed when the cache is flushed by a new job being added, changed or deleted. In other cases it could be served from the cache.
If I find any kind of way of caching in jbpm I will post it here.
Regards,
Marcel
-
4. Re: Jbpm 4 and ehcache
swiderski.maciej Apr 9, 2010 4:28 AM (in response to marcel.de.koster)Take a look at this post http://community.jboss.org/thread/150387
Maybe it can do help you a bit or at least be a starting point.
Cheers
Maciej
-
5. Re: Jbpm 4 and ehcache
marcel.de.koster Apr 9, 2010 7:19 AM (in response to swiderski.maciej)Hi Maciej,
I posted a reply on the other post http://community.jboss.org/thread/150387
Thanx for the link.
Best Regards,
Marcel