[JBoss jBPM] - Re: Jbpm + CMT + Hibernate : Session Is Closed..
by alex.guizar@jboss.com
jBPM is not aware of the current Hibernate session. It merely creates a new one if none is set in the jbpmContext. The session returned by:
sessionFactory.getCurrentSession()
differs from the one in
jbpmContext.getSession()
unless you call
jbpmContext.setSession(sessionFactory.getCurrentSession())
before you do any persistent operation with the jbpmContext. Otherwise, the jbpmContext opens a separate Hibernate session.
In your case it seems the current session remains open, while the jbpm-mantained session has already been closed.
Note that when you inject an external session (with jbpmContext.setSession()) jBPM no longer closes the session for you. This is definitely what you want in a managed environment. Hibernate takes care of closing the session when the JTA transaction completes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972683#3972683
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972683
19 years, 7 months
[JBoss Messaging] - Re: JBoss Messaging locked up
by clebert.suconic@jboss.com
release-admin.xml will copy your all configuration as messaging, replace the old MQ files by new descriptors.
Probably you had changed your ALL configuration before, and maybe you have your connectionFactory configured on /deploy or some other .xml file not replaced by release-admin.xml, what would cause your old configuration being copied as release-admin.xml.
If you do the same procedure on a brand new ALL configuration release-admin.xml will certainly work.
If your ALL configuration is so specifically customaized, you will probably have to apply changes manually. (You will have to look at documentation for that).
Or maybe it will be easier just create a messaging configuration based on a brand new configuration and place your other descriptors manually. (You will have to choose the shorter path depending in your situation).
Cheers,
Clebert Suconic
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972680#3972680
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972680
19 years, 7 months