Oh, I'm sorry. That's actually unrelated to process instances. You really should take a look at the User Guide and the source code examples for tips on proper use of the API. I'll answer this question though. This is what you want to do....create the context like below and then put your code in a try-finally block so that the context is always closed before your method exits: JbpmContext context = JbpmConfiguration.getInstance().createJbpmContext(); | try | { | // do some stuff | } | finally | { | context.close(); | }
I think that tip is even described in the javadocs. So if you are new to jBPM, look at the User Guide, look at the javadocs, and then look at the code examples that can be found in the jBPM distribution that you downloaded. That's what I had do, and I was able to figure most of it out. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953324#3953324 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953324 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user