[jBPM Users] - Re: Problem moving from 4.1 to 4.2 using Spring configuratio
by saraswati.santanu
Did you provide the hbm files to spring bean?
jbpm.hibernate.cfg.xml might be there, but you have not mentioned it in your jbpm.cfg.xml file. So jbpm will not get it. Now if you mention something like this in your jbpm.cfg.xml file
| <hibernate-configuration>
| <cfg resource="jbpm.hibernate.cfg.xml" />
| </hibernate-configuration>
|
the it might create some more problem.
When you are using jbpm with spring then you should let spring create the session factory and jbpm use that.
So just to have the jbpm.hibernate.cfg.xml will not help, and more over if you try to use that by giving it directly to jbpm cfg then you might end up in two session factories, one by spring and one by jbpm. That will be extremely messy.
The correct thing to do here is to provide the jbpm hbm files to spring local sessionfactory bean. The spring bean should have these entries, assuming the hbm files are in classpath:
| <property name="mappingLocations">
| <list>
| <value>classpath:jbpm.execution.hbm.xml</value>
| <value>classpath:jbpm.repository.hbm.xml</value>
| <value>classpath:jbpm.task.hbm.xml</value>
| <value>classpath:jbpm.history.hbm.xml</value>
| </list>
| </property>
|
Hope this will see you through to success :)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265393#4265393
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265393
16 years, 6 months
[JBoss Tools Users] - Some dumb questions from a n00b
by StormTAG
I've been bebopping back and forth between NetBeans and JBDS for a bit but I'm coming to realize that maybe JBDS isn't getting updated often enough for my ADD-like-tastes. So here are a wad of questions that hopefully isn't too stupid. :D Also, I know some of these are subjective so feel free to chime in!
1) I have JBDS Portfolio edition. Can I upgrade to latest JBoss Tools plugins? Is doing so going to blow everything up? Do you do this?
2) I like Maven2. It's pretty keen. Does JBoss Tools/JBDS support Maven2? If so, have you used it and how well do you feel it works? Ifin you have an alternative to Maven2 that is just so swifty that you can't stop yourself from gushing about it... Please feel free to do so. ;)
3) There are a ton and a half of awesome things coming down the pipeline. JSF 2 (with its myriad of things). Bean Validation. CDI w/Weld. RichFaces 4. Seam 3. The first three, of course, having RIs already released! Is there tooling for those that are already released? If so, is there documentation or presentations on how to use these tooling features?
The impetuous behind this is I'm still struggling to get to the point where I'm really productive with some of the newer technologies for a new project. I need to bust the learning curve.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265389#4265389
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265389
16 years, 6 months