[jboss-user] [jBPM] - How to configure 4.3 the right way?

Marcel de Koster do-not-reply at jboss.com
Fri Apr 9 09:49:46 EDT 2010

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.



Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100409/e079a2c8/attachment.html 

More information about the jboss-user mailing list