Marcel de Koster [
http://community.jboss.org/people/marcel.de.koster] replied to the
discussion
"How to configure 4.3 the right way?"
To view the discussion, visit:
http://community.jboss.org/message/536570#536570
--------------------------------------------------------------
Hi Christian,
You are missing the class attribute in your class-cache tags.
I am currently testing with following hbm files for jbpm4. In my hibernate config I map
these files instead of the standard hbm files that are in JBPM.
To make the JobExecutor not use a query with a :now (timestamp) in it I needed to change
the DbSessionImpl, to make the query cacheable. I now use current_timestamp() in the named
query instead of the :now, that will be replaced by a timestamp parameter. I also added
setCacheable on some of the queries that were in the DbSessionImpl.
I am not running your tests, I do however see, the database isn't called as many times
as before from the JobExecutor. Now the cache is being hit each time. Still need to test
more though, but this was what I was testing. Using jbpm with ehcache does not yet seem to
give any problems in our application.
Regards,
Marcel
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/536570#536570]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]