|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
你对java乐观有点盲目。java的关键就是在服务器上表现优异,而且它提供了整个开发所需要的工具。应该是说,看哪天。net网页编程有没有机会赶上java。
Jbpm4.1特征:
4.1与Tomcat集成的很好
4.1供应基于Web的流程编纂功效
在开辟指南中有相干整合章节:
16.2.Configuration
Replacethestandard-transaction-interceptorwiththespring-transaction-interceptor.Thehibernatesessionneedstheattributecurrent=”true”.Also,the<transaction/>mustberemovedfromthetransaction-contextifyouwantthetransactionstobehandledbySpringonly.ThisforcesjBPMtosearchforthecurrentsession,whichwillbeprovidedbySpring.
<process-engine-context>
<command-service>
<spring-transaction-interceptor />
...
</command-service>
...
</process-engine-context>
<transaction-context>
...
<hibernate-session current="true"/>
</transaction-context>
TheSpringintegrationprovidesaspecialcontext,whichisaddedtothesetofcontextwherethejBPMenginewilllookforbeans.UsingthisSpringContext,itisnowpossibletoretrievebeansfromtheSpringApplicationContext.FortheSpringcontexttobeknown,aSpringConfigurationmustbecreated.ThisclassextendstheJbpmConfigurationbutwilladditselfasacontext.ThesingleconstructortakethelocationofthejBPMconfiguration.
<bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
<constructor-arg value="be/inze/spring/demo/jbpm.cfg.xml" />
</bean>
ThejBPMservicescanalsobedefinedintheSpringapplicationContext,asfollowing:
<bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine" />
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
<bean id="executionService" factory-bean="processEngine" factory-method="getExecutionService" />
16.3.Usage
TheprevioussectionalreadyshowedhowthejBPMservicescanbemadeaccessibleforotherSpringservices.TheotherusecaseiscallingSpringbeansfromwithinaprocess.ThiscanbedonebyusinganexpressionwhichresolvestothenameofaSpringbean.
<java name="echo" expr="#{echoService}" method="sayHello" >
<transition name="to accept" to="join1"/>
</java>
ThescriptingenginewilllookintoallcontextsfromthebeannamedechoService.IfyouconfiguredtheScriptManagerasabove,Springwillbethelastcontexttosearchfor.YoucanalsoaddaSpringbeantotheSpringApplicationcontext(egIdentitySessionImplwithididentitySession)anduseitinthejBPMconfig(egbyadding<envclass="identitySession"/>)
整合历程与4基础不异。
jbpm.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="jbpm.default.cfg.xml" />
<import resource="jbpm.tx.spring.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<import resource="jbpm.businesscalendar.cfg.xml" />
<!-- Job executor is excluded for running the example test cases. -->
<!-- To enable timers and messages in production use, this should be included. -->
<!--
<import resource="jbpm.jobexecutor.cfg.xml" />
-->
<import resource="jbpm.jobexecutor.cfg.xml" />
<import resource="jbpm/jbpm.mail.templates.examples.xml" />
</jbpm-configuration>
事情日历从default平分离
整合XML在原生的jbpm.tx.spring.cfg.xml中
关于第二点:俺问问你,如果是企业级项目的话,诸如RMI,EJB,等一些关键技术,这些难道都不需要学么?如果光是使用jsp,servlet,javabean的话。 |
|