I'm using a customized activiti.cfg.xml as below, but seems the ActivitiTestCase cannot load it because it cannot get the real value of ${jdbc.driverClassName}. Is there anyway I can work around this? At least, the uesrname and password part, I could like to externalize it.
Also, in order to use Activiti REST service, do I have to use activiti.cfg.jar? Can I just use a regular Spring applicatonContext.xml under classpath?
In order to *use* the REST API, you dont need any config file, just an HTTP client. Of course to tweak, the functioning of the REST api, you need a config file.
Externalizing the properties shoiudl just work, as we are simply leveraging Spring there. Are you sure the properties file are accessible?
Just found out that Activiti is using BeanFactory instead of ApplicationContext to instanciate beans in Spring. See the source code BeansConfigurationHelper.java. But BeanFactory misses some necessary features for working with the place-holder feature.
Can we switch to use ApplicationContext instead? Or any suggest work around?