[jboss-user] [jBPM] New message: "seam/jbpm and session closed error"
Sascha Janz
do-not-reply at jboss.com
Mon Feb 15 06:06:15 EST 2010
User development,
A new message was posted in the thread "seam/jbpm and session closed error":
http://community.jboss.org/message/526311#526311
Author : Sascha Janz
Profile : http://community.jboss.org/people/AJanz
Message:
--------------------------------------------------------------
i am using seam 2.0.2 SP1
i try to execute jbpm commands with following code.
JbpmContext jbpmContext = null;
try {
// AJ 11.2.2010 muss jedesmal neu erzeugt werden!!!
// da n Threads hierauf zugreifen!
jbpmContext = cfg.createJbpmContext();
if (jbpmContext == null) {
File f = new File("test.xml");
log.debug("Path for context " + f.getAbsolutePath());
jbpmContext = cfg.createJbpmContext();
}
if (jbpmContext == null)
throw new Exception("Error now jbpm context!");
returnValue = cmd.execute(jbpmContext);
} catch (Exception e) {
log.error("Error executeCommand",e);
}
finally {
if ( jbpmContext != null ) {
jbpmContext.close();
jbpmContext = null;
}
}
it sometimes works fine.
but on every cancelprocessesinstance or endprocessinstance command i got later an "session is closed" error.
when i execute the commands over the commandservicebean everything is ok.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/526311#526311
More information about the jboss-user
mailing list