4 Replies Latest reply on May 14, 2009 4:19 AM by elhanan

    can jbpm work with more then one cfg file?

    elhanan

      it seemd so at first, becouse we can provide the location of said cfg file in api, however there is a call in a usertype converters to static configuratrion which only searches for the default location (which is the root).

      how could this be?

        • 1. Re: can jbpm work with more then one cfg file?
          tejjbpm

          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

            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

              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

                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.