In some pages I found that following configuration can be added, but I can't find a resource for jbpm.pvm.cache.xml:
<!-- other config -->
<cache-configuration resource="jbpm.pvm.cache.xml" usage="nonstrict-read-write" />
Is there any example of the jbpm.pvm.cache.xml?
And from what version of jbpm4 is this available?
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.
jbpm.pvm.cache.xml 2.6 KB
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.