-
1. Re: can jbpm work with more then one cfg file?
tejjbpm May 13, 2009 9:01 AM (in response to elhanan)Could you please explain which config file are you talking about..
usually if you put your custom config file in the class path (web-inf/classes) folder that will override the default jbpm config..
is that what you are asking? -
2. Re: can jbpm work with more then one cfg file?
elhanan May 13, 2009 9:26 AM (in response to elhanan)yes, but in our case we place the file in the EAR,
however our ear is divided into logical applications which seperated by package names so each application needs it's own jbpm.cfg.xml file like so:
name.ear/classes/com/pnx/app1/jbm.cfg.xml
name.ear/classes/com/pnx/app2/jbm.cfg.xml
...
but code in hibernate converter of usertype also calls static configuration method... which always looks for a jbpm.cfg.xml in the root class path -
3. Re: can jbpm work with more then one cfg file?
kukeltje May 13, 2009 12:49 PM (in response to elhanan)you can pas on a jbpm config when constructing a jbpmconfguraton object. Or you can put multiple configs in one file and pass a name to the jbpm context when retrieving one.
-
4. Re: can jbpm work with more then one cfg file?
elhanan May 14, 2009 4:19 AM (in response to elhanan)how do you specify that in class Converters, it has a static method getConvertersMao which does not have a name, and actually is a part of jbpm itself (so it can't changed by us). since we don't have a jbpm.cfg.xml in our root class path, we fail becouse jbpm can't find it.