[JBoss jBPM] - Re: Job Executor and Spring
by kukeltje
Warning: Partly threadjacking although it is related to the question
You know... maybe I missed something in my upbringing, but maybe now is the time to 'learn' that.
I can understand that you want to be able to inject other pojo's at some moment in time or in a speciic situation and use e.g. seam, guice, spring etc for that. What I do not understand is that people also want to move the config's (that are already in xml) for which you can have (or 'inject') different ones for different environments to a new xml file (a spring config).... In seam people do not do this, they just leverage, but spring users most always want this (or is that my impression?). What is the advantage of this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181454#4181454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181454
16 years, 1 month
[JBoss jBPM] - Re: Job Executor and Spring
by ssljivic
The provided solution worked, but I had to extract all jBPM *.hbm.xml files to the source/classes folder, because Spring was unable to load them from the JAR file.
I have another question. I have Job Executor configured in jbpm.cfg.xml file like this:
<bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor">
| <field name="jbpmConfiguration"> <ref bean="jbpmConfiguration" /> </field>
| <field name="name"><string value="JbpmJobExecutor" /></field>
| <field name="nbrOfThreads"><int value="1" /></field>
| <field name="idleInterval"><int value="5000" /></field>
| <field name="maxIdleInterval"><int value="3600000" /></field> <!-- 1 hour -->
| <field name="historyMaxSize"><int value="20" /></field>
| <field name="maxLockTime"><int value="600000" /></field> <!-- 10 minutes -->
| <field name="lockMonitorInterval"><int value="60000" /></field> <!-- 1 minute -->
| <field name="lockBufferTime"><int value="5000" /></field> <!-- 5 seconds -->
| </bean>
How can I move that definition into the Spring XML configuration? Is it possible to entirely ignore jbpm.cfg.xml and move entire jBPM configuration into the Spring XML files?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181445#4181445
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181445
16 years, 1 month