[JBoss Seam] - Re: jBPM and LIE
by pbrewer_uk
Thanks for the tip, is there a jBPM sub-forum of the Seam forum? I can't find a link to it :(
I thought it was more relevant to the Seam forum than the jBPM forum as my question is more about how to access jBPM database objects through Seam in a conversation safe manner. Perhaps I wasn't clear in my original post...
I obtain a hibernate Session, capable of querying jBPM entities:
| @In
| private JbpmContext jbpmContext ;
| ...
| Session hibernateSession = jbpmContext.getSession() ;
|
but this session does not remain active for the duration of the Seam conversation (like a Seam Managed Persistence Context would) - so I get a LIE.
My question is really: Can I access jBPM entites using a SMPC? If so, how do I configure it? If not, are there any alternatives/ workarounds.
Thanks in advance, Pete.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029716#4029716
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029716
19Â years, 1Â month
[JBoss Seam] - How to disable Auto Flushing ?
by denis-karpov
Is there a consistent way to control FlushMode?
I have tried this, but it does not do what i expected.
persistence.xml
... <property name="hibernate.transaction.flush_before_completion" value="false"/> ...
Yes. There is the annotation attribute @Begin(flushMode=MANUAL), but not always you can use an annotations. For instance, if you start a conversation through <s:link> there is no such option.
It is this code that partially works for me:
PersistenceContexts.instance().changeFlushMode(FlushModeType.MANUAL);
If i call this code somewhere in my home object it works. BUT when i use DROOLS node in my pageflow, flushing occur anyway.
Can someone illumine me?
How to disable auto flushing in seam?
Thanks for your time.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029707#4029707
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029707
19Â years, 1Â month