[JBoss jBPM] - Re: Row lock contentions on BPEL_FROM
by mjoglekar
Thanks for your reply.
When we tried setting mutable="false" on the hbm.xml file itself, in some cases, it resulted in exception
| INFO | jvm 1 | 2009/01/29 22:21:08 | java.lang.NullPointerException
| INFO | jvm 1 | 2009/01/29 22:21:08 | at org.jbpm.bpel.graph.basic.assign.FromVariable.extract(FromVariable.java:44)
| INFO | jvm 1 | 2009/01/29 22:21:08 | at sun.reflect.GeneratedMethodAccessor310.invoke(Unknown Source)
| INFO | jvm 1 | 2009/01/29 22:21:08 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|
This was running on JBoss 4.0.5GA with Hibernate 3.2.0GA jars. On other server where we were running newer version of Hibernate, it seemed to work ok.
There is one more thing we tried is creating new ElementType, just for ELEMENT_ column of this table and changed its equals method to always return true. When hibernate calls 'IsDirty' on various objects, this type always says not dirty. After this it didn't run that query anymore. Changing the isMutable method of this new class to return false did not have exact same effect, though it reduced the number of queries.
Can you please suggest what is the right approach to fix this locally for us? The flag on hbm.xml file seemed to be the right one until we got that exception.
I will be filing JIRA issues shortly.
Thanks,
Meghana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205745#4205745
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205745
15 years, 4 months
[JBoss jBPM] - Row lock contentions on BPEL_FROM
by meghanai_99
Hello,
We are using JBPM 3.2 and BPEL extension 1.1GA. It is using Oracle as backend and running quite a bit of load. We are seeing row lock contentions on BPEL_FROM table a lot. The one query we see multiple times is -
update BPEL_FROM set ELEMENT_=:1 where ID_=:2
After investigating further, we found that due to Hibernate's auto flushmode, BPEL_FROM table records are updated every time flush is called. However the data of these records never change in reality.
After adding the mutable="false" flag on From.hbm.xml file, these queries are not run anymore. However we would like to know if it is safe change to make. Was it by design that the rows get updated everytime or is it a bug and we should create JIRA issue for it?
Thank you,
Meghana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205641#4205641
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205641
15 years, 4 months
Is there any complete sample application based on jBPM version 4?
by mai.sun@nordea.com
Hi all,
I'm new to jBPM and I'm in a process of finding a workflow framework
that can be embeded into our application and come with a graphic
designer. I find that jBPM 4 is very interesting and I'd like to learn
more about it. I have already read through the user guide and developer
guide, I also tried samples come with jBPM distribution, but these
examples are quite simple. Is there a more complex sample application
that I can look into?
Thanks in advance.
Best wishes,
Mai Sun
15 years, 4 months