Quote Originally Posted by costin
Overriding the jbpmSchema is a really ugly hack - I can't extend the problematic method (createConnection) since it's private so I basically have to duplicate code which is not just hard to maintain but may actually create an license issue and will fall under the LGPL license which is not compatible with Apache/BSD.
I didn't examine the sources that closely. But if it is indeed as you said, you're right. A simple subclassing with a few extensions would be fine, but reimplementing half of the class is indeed ugly.

I'm not happy with the outcome and that's why I recommend using the methods on LocalSessionFactory since they offer IMO a clean solution that exists already and moreover, that is available during the whole lifetime of the HB/jBPM factoryBeans.
Ok, so that should be the way to proceed then.

Thanks again,
Andreas