[jboss-user] [jBPM] New message: "Re: integrating spring 2.5.6 with jbpm 4.3"

praneet nandan do-not-reply at jboss.com
Sun Mar 7 23:23:43 EST 2010


User development,

A new message was posted in the thread "integrating spring 2.5.6 with jbpm 4.3":

http://community.jboss.org/message/530438#530438

Author  : praneet nandan
Profile : http://community.jboss.org/people/praneet

Message:
--------------------------------------------------------------
this is my applicationcontext.xml
 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>      xmlns:aop="http://www.springframework.org/schema/aop"
>      xsi:schemaLocation="http://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-2.5.xsd
>           http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>           http://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsd
>           http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
>           http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"
>      xmlns:context="http://www.springframework.org/schema/context"
>      xmlns:p="http://www.springframework.org/schema/p"
>      xmlns:tx="http://www.springframework.org/schema/tx"
>      xmlns:util="http://www.springframework.org/schema/util">
>      
> <tx:annotation-driven transaction-manager="transactionManager"/>
>  
>      
>      
> <bean id="ds"
>           class="org.springframework.jdbc.datasource.DriverManagerDataSource">
>           <property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
>           <property name="url" value="jdbc:mysql://localhost/praneetjbpm43" />
>           <property name="username" value="root"></property>
>           <property name="password" value="root"></property>
>           
>      </bean>
>  
>  
> <bean
>   id="transactionManager"
>   class="org.springframework.orm.hibernate3.HibernateTransactionManager"
>   p:sessionFactory-ref="sf" />
>  
> <bean id="sf" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
>  
> <property name="dataSource" ref="ds"></property>
> <property name="schemaUpdate" value="true"></property>
>  
> <property name="hibernateProperties">
> <props>
> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</prop>
> <prop key="hibernate.show_sql">true</prop>
> <prop key="hibernate.hbm2ddl.auto">update</prop>
> <prop key="hibernate.query.substitutions">true 1, false 0</prop>
>  
> </props>
> </property>
>  
> <property name="mappingLocations">
> <list>
> <value>classpath:jbpm.execution.hbm.xml</value>
> <value>classpath:jbpm.history.hbm.xml</value>
> <value>classpath:jbpm.task.hbm.xml</value>
> <value>classpath:jbpm.repository.hbm.xml</value>
> <value>classpath:jbpm.identity.hbm.xml</value>
> </list>
> </property>
>  
> <!--  <property name="configLocation" value="classpath:jbpm.hibernate.cfg.xml" />
>  
> -->
>  
>  
> </bean>
>  
>  
> <util:list id="annotatedHibernateClasses"></util:list>
>  
> <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
> <property name="sessionFactory" ref="sf"></property>
> </bean>
>  
>  
> <!-- ========================= Configuring JBPM4.3 ============================= -->
>  
> <bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper">
>  
> <property name="jbpmCfg" value="jbpm.cfg.xml"></property>
>  
> </bean>
>  
> <bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" >
> </bean>
>  
>  
>  
>  
>  
> </beans>
>  
>  
this is my jbpm.cfg.xml
 
> <?xml version="1.0" encoding="UTF-8"?>
> <jbpm-configuration>
>      <import resource="jbpm.jpdl.cfg.xml" />
>      <import resource="jbpm.identity.cfg.xml" />
>      <!-- <import resource="jbpm.jobexecutor.cfg.xml" /> -->
>      
>      <process-engine-context>
>      
>     <string name="spring.cfg" value="applicationContext.xml" />
>           <repository-service />
>           <repository-cache />
>           <execution-service />
>           <history-service />
>           <management-service />
>           <identity-service />
>           <task-service />
>           <command-service>
>                <retry-interceptor />
>                <environment-interceptor />
>                <spring-transaction-interceptor />
>           </command-service>
>           <script-manager default-expression-language="juel"
>                default-script-language="juel"
>                read-contexts="execution, environment, process-engine, spring"
>                write-context="">
>                <script-language name="juel"
>                     factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
>           </script-manager>
>           <authentication />
>           <id-generator />
>           <types resource="jbpm.variable.types.xml" />
>           <address-resolver />
>           <business-calendar>
>                <monday hours="9:00-12:00 and 12:30-17:00" />
>                <tuesday hours="9:00-12:00 and 12:30-17:00" />
>                <wednesday hours="9:00-12:00 and 12:30-17:00" />
>                <thursday hours="9:00-12:00 and 12:30-17:00" />
>                <friday hours="9:00-12:00 and 12:30-17:00" />
>                <holiday period="01/07/2008 - 31/08/2008" />
>           </business-calendar>
>      </process-engine-context>
>      <transaction-context>
>      <transaction type="spring" />
>           <repository-session />
>           <db-session />
>           <message-session />
>           <timer-session />
>           <history-session />
>           <hibernate-session current="true" />
>           <mail-session>
>     <mail-server>
>       <session-properties>
>         <property name="mail.smtp.host" value="localhost" />
>         <property name="mail.smtp.port" value="25" />
>         <property name="mail.from" value="mailto:system at localhost.com" />
>       </session-properties>
>     </mail-server>
>   </mail-session>
>      </transaction-context>
> </jbpm-configuration>
>  

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/530438#530438




More information about the jboss-user mailing list