[jboss-user] [JBoss jBPM] - Re: About loading of hibernate configuration in HibernateHel

2007-10-18 Thread QuePasa
Damn, xml formatted data is not supported in this forum :( so, those xml is: string name=resource.hibernate.cfg.xml value=/hibernate.cfg.xml View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4096405#4096405 Reply to the post :

[jboss-user] [JBoss jBPM] - Re: About loading of hibernate configuration in HibernateHel

2007-10-18 Thread QuePasa
*So... in jBPM config-file (jbpm.cfg.xml) exists a string: View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4096404#4096404 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096404

[jboss-user] [JBoss jBPM] - Re: About loading of hibernate configuration in HibernateHel

2007-10-18 Thread mputz
by default, the hibernate.cfg.xml and jbpm.cfg.xml files are residing in the same directory, often bundled within a jar: [EMAIL PROTECTED] lib]$ jar -tvf jbpm-configs.jar | 0 Thu Aug 30 01:05:28 CEST 2007 META-INF/ | 71 Thu Aug 30 01:05:28 CEST 2007 META-INF/MANIFEST.MF | 18765

[jboss-user] [JBoss jBPM] - Re: About loading of hibernate configuration in HibernateHel

2007-10-18 Thread QuePasa
And what ? Ok, there my mistake with leading slash in configuration property resource.hibernate.cfg.xml. But i've tested it without this slash too - and the algorithm of hibernate's config file loading was same as described before, in my previous post. What if i do not want to store

[jboss-user] [JBoss jBPM] - Re: About loading of hibernate configuration in HibernateHel

2007-10-18 Thread mputz
If you don't want the *cfg.xml files in a separate jar, you could include it in the classpath, for a web-app this would be WEB-INF/classes. Here is a (partial) listing of a modified jbpm-console.war, where the configs are taken from the WEB-INF/classes folder. ./jboss-console.war | images