[jboss-user] [JBoss jBPM] - Re: SessionFactory creation

2007-04-10 Thread iantimothy
hello. yup...like the example code I gave, you would need to create a class (e.g. JbpmUtil.java) and use a static initializer to create an instance of the JbpmConfiguration object. Also, you need a static method to access the created static jbpmConfiguration. Then, you would need a listener.

[jboss-user] [JBoss jBPM] - Re: SessionFactory creation

2007-04-09 Thread iantimothy
Hello. The SessionFactory would are referring to is part of Hibernate. You can read up on the Hibernate site how to create a SessionFactory. For example, you could put the hibernate.cfg.xml file at the root of your classpath. Then to get a SessionFactory, you can use this line of code: Sessi

[jboss-user] [JBoss jBPM] - Re: Changes don't commit on the database

2007-04-08 Thread iantimothy
Hello. I'm guessing that somewhere in your code, you should be having these lines: JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(); JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); // Your code below these lines... I think what you could try doing is put th