用java web start来发布jbpm(三)

三、  将项目打包成Deployable features  

1. 找到一个 startup.jar 文件( startup.jar 是rcp的入口,里面有main函数。你把第一步可运行的rcp应用中的 eclipse.exe 用这个startup.jar代替,运行startup.jar也可启动你的rcp应用 )。在 org.jdbm.gd.jpdl.feature 新建一个文件夹rootfiles(作为应用的根),并将刚才的startup.jar放在rootfiles下面(在附件中下载)

2. org.jdbm.gd.jpdl.feature 中build.properties文件内容改为

bin.includes = feature.xml

root = rootfiles

3. 用jdk的keytool工具生成一个key文件

在目录D:\xvxv\jbpm\下用控制台执行命令keytool -genkey -alias myjbpm -keyalg RSA -keystore D:\xvxv\jbpm\key跟据提示执行,记往输入的密码

在D:\xvxv\jbpm\下生成了一个文件key

4. 打包:

右键org.jdbm.gd.jpdl.feature工程,选择Export,选择Deployable features

出现一个窗口,在Destination中配置生成包的路径

在options中选择第二个

 

 

在jar signing中使用你生成的key文件

 

在java web start中配置你的java web start信息,并完成配置

 

在你的桌面会生成一个myRcp1文件夹,打包成功。

 

 四、用java web start来发布你的 Deployable features  

在myeclipse下建一个web工程

jbpmJws.jnlp



<?xml version="1.0" encoding="UTF-8"?>

<jnlp codebase="http://192.168.32.28:8080/jbpm-cn/jbpm">

<information>

<title>JBPM in web start</title>

<vendor>Lively Corporation</vendor>

<description>HelloWorld Test Example for WebStart.</description>

<homepage href="http://192.168.32.28:8080/jbpm/index.jsp" />

<offline-allowed />

</information>

<security>

<!-- 设置此RCP应用对文件系统进行完全的访问权限 -->

<all-permissions />

</security>

<!-- 设置此应用程序的启动类,RCP应用总是由此类来引导启动 -->

<application-desc

main-class="org.eclipse.core.launcher.WebStartMain">

<!--  这里可以设置应用程序启动时所要传递的参数,

与eclipse.exe所使用的参数类似 -->

<argument>-nosplash</argument>

</application-desc>

<resources>

<!--  指定此应用程序所使用的JRE版本 -->

<j2se version="1.5+" />

<!--  指定启动类所在的Jar包,发布RCP应用时总是要下载此Jar包 -->

<jar href="startup.jar" />

<!--  这里设置扩展配置文件的地址,对于JWS管理器来说,

一个扩展配置文件即对应一个库,主应用程序可以使用多个库来完成特定的功能。

扩展配置文件也是可以再包含扩展配置文件的,即可以递归使用 -->

<extension name="Examples RCP Feature"

href="features/org.jdbm.gd.jpdl.feature_1.0.0.jnlp" />

<!--

<extension name="Examples RCP Feature"

href="./jar/jws/features/org.eclipse.rcp_3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG.jnlp" />

-->

<!--  这里设置RCP应用程序的工作空间目录与普通RCP应用中config.ini的配置项类似 -->

<property name="osgi.instance.area"

value="C:/Documents and Settings/jbpm-jws/WorkSpace/jbpm" />

<!--  设置RCP应用的配置文件目录 -->

<property name="osgi.configuration.area"

value="C:/Documents and Settings/jbpm-jws/configuration" />

<!--  设置RCP应用启动时所要运行的产品Id,与config.ini中的配置相同 -->

<property name="osgi.splashPath"

value="platform:/base/plugins/org.jbpm.gd.jpdl" />

<property name="eclipse.product" value="org.jbpm.gd.jpdl.product" />

<property name="osgi.bundles"

value="org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start"/>

<property name="osgi.bundles.defaultStartLevel" value="4" />

</resources>

</jnlp>
 

 

org.jdbm.gd.jpdl.feature_1.0.0.jnlp


<?xml version="1.0" encoding="UTF-8"?>

<jnlp codebase="http://192.168.32.28:8080/jbpm-cn/jbpm">

<information>

<title>Feature Feature</title>

<vendor>Lively Corporation</vendor>

<offline-allowed/>

</information>

<security>

<all-permissions/>

</security>

<component-desc/>

<resources>

<j2se version="1.5+" />

</resources>

<resources>

<jar href="plugins/com.genuitec.javascript.debug.mozilla_6.0.0.zmyeclipse60020070820.jar"/>

<jar href="plugins/com.ibm.icu_3.6.1.v20070417.jar"/>

<jar href="plugins/org.apache.xerces_2.8.0.v200705301630.jar"/>

<jar href="plugins/org.apache.xml.resolver_1.1.0.v200705310020.jar"/>

<jar href="plugins/org.eclipse.compare_3.3.0.I20070606.jar"/>

<jar href="plugins/org.eclipse.core.commands_3.3.0.I20070605-0010.jar"/>

<jar href="plugins/org.eclipse.core.contenttype_3.2.100.v20070319.jar"/>

<jar href="plugins/org.eclipse.core.databinding_1.0.0.I20070606-0010.jar"/>

<jar href="plugins/org.eclipse.core.expressions_3.3.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.core.filebuffers_3.3.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.core.filesystem_1.1.0.v20070606.jar"/>

<jar href="plugins/org.eclipse.core.filesystem.win32.x86_1.1.0.v20070510.jar"/>

<jar href="plugins/org.eclipse.core.jobs_3.3.0.v20070423.jar"/>

<jar href="plugins/org.eclipse.core.net_1.0.0.I20070531.jar"/>

<jar href="plugins/org.eclipse.core.resources_3.3.0.v20070604.jar"/>

<jar href="plugins/org.eclipse.core.resources.compatibility_3.2.100.v20070502.jar"/>

<jar href="plugins/org.eclipse.core.resources.win32_3.3.0.v20070226.jar"/>

<jar href="plugins/org.eclipse.core.runtime_3.3.100.v20070530.jar"/>

<jar href="plugins/org.eclipse.core.runtime.compatibility.registry_3.2.100.v20070316.jar"/>

<jar href="plugins/org.eclipse.core.variables_3.2.0.v20070426.jar"/>

<jar href="plugins/org.eclipse.debug.core_3.3.0.v20070607-1800.jar"/>

<jar href="plugins/org.eclipse.debug.ui_3.3.0.v20070607-1800.jar"/>

<jar href="plugins/org.eclipse.draw2d_3.2.100.v20070529.jar"/>

<jar href="plugins/org.eclipse.emf.common_2.3.0.v200706262000.jar"/>

<jar href="plugins/org.eclipse.emf.ecore_2.3.0.v200706262000.jar"/>

<jar href="plugins/org.eclipse.emf.ecore.xmi_2.3.0.v200706262000.jar"/>

<jar href="plugins/org.eclipse.equinox.app_1.0.0.v20070606.jar"/>

<jar href="plugins/org.eclipse.equinox.common_3.3.0.v20070426.jar"/>

<jar href="plugins/org.eclipse.equinox.preferences_3.2.100.v20070522.jar"/>

<jar href="plugins/org.eclipse.equinox.registry_3.3.0.v20070522.jar"/>

<jar href="plugins/org.eclipse.gef_3.2.100.v20070620.jar"/>

<jar href="plugins/org.eclipse.help_3.3.0.v20070524.jar"/>

<jar href="plugins/org.eclipse.jdt.compiler.apt_1.0.0.v20070510-2000.jar"/>

<jar href="plugins/org.eclipse.jdt.compiler.tool_1.0.0.v_771.jar"/>

<jar href="plugins/org.eclipse.jdt.core_3.3.0.v_771.jar"/>

<jar href="plugins/org.eclipse.jdt.core.manipulation_1.1.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.jdt.debug_3.3.0.v20070530a.jar"/>

<jar href="plugins/org.eclipse.jdt.debug.ui_3.2.100.v20070531-1800.jar"/>

<jar href="plugins/org.eclipse.jdt.launching_3.3.0.v20070510.jar"/>

<jar href="plugins/org.eclipse.jdt.ui_3.3.0.v20070607-0010.jar"/>

<jar href="plugins/org.eclipse.jem.util_2.0.0.v200705302225.jar"/>

<jar href="plugins/org.eclipse.jface_3.3.0.I20070606-0010.jar"/>

<jar href="plugins/org.eclipse.jface.databinding_1.1.0.I20070606-0010.jar"/>

<jar href="plugins/org.eclipse.jface.text_3.3.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.ltk.core.refactoring_3.3.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.ltk.ui.refactoring_3.3.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.osgi_3.3.0.v20070530.jar"/>

<jar href="plugins/org.eclipse.osgi.util_3.1.200.v20070605.jar"/>

<jar href="plugins/org.eclipse.search_3.3.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.swt_3.3.0.v3346.jar"/>

<jar href="plugins/org.eclipse.swt.win32.win32.x86_3.3.0.v3346.jar"/>

<jar href="plugins/org.eclipse.team.core_3.3.0.I20070607.jar"/>

<jar href="plugins/org.eclipse.team.ui_3.3.0.I20070607.jar"/>

<jar href="plugins/org.eclipse.text_3.3.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.ui_3.3.0.I20070614-0800.jar"/>

<jar href="plugins/org.eclipse.ui.console_3.2.0.v20070530.jar"/>

<jar href="plugins/org.eclipse.ui.editors_3.3.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.ui.forms_3.3.0.v20070511.jar"/>

<jar href="plugins/org.eclipse.ui.ide_3.3.0.I20070620.jar"/>

<jar href="plugins/org.eclipse.ui.navigator_3.3.0.I20070605-0010.jar"/>

<jar href="plugins/org.eclipse.ui.navigator.resources_3.3.0.I20070605-0010.jar"/>

<jar href="plugins/org.eclipse.ui.views_3.2.100.I20070319-0010.jar"/>

<jar href="plugins/org.eclipse.ui.views.properties.tabbed_3.3.0.I20070605-0010.jar"/>

<jar href="plugins/org.eclipse.ui.win32_3.2.100.I20070319-0010.jar"/>

<jar href="plugins/org.eclipse.ui.workbench_3.3.0.I20070608-1100.jar"/>

<jar href="plugins/org.eclipse.ui.workbench.texteditor_3.3.0.v20070606-0010.jar"/>

<jar href="plugins/org.eclipse.update.configurator_3.2.100.v20070615.jar"/>

<jar href="plugins/org.eclipse.update.core_3.2.100.v20070615.jar"/>

<jar href="plugins/org.eclipse.update.core.win32_3.2.100.v20070615.jar"/>

<jar href="plugins/org.eclipse.update.ui_3.2.100.v20070615.jar"/>

<jar href="plugins/org.eclipse.wst.common.core_1.1.101.v200706120315.jar"/>

<jar href="plugins/org.eclipse.wst.common.environment_1.0.200.v200705302225.jar"/>

<jar href="plugins/org.eclipse.wst.common.frameworks_1.1.102.v200706071630.jar"/>

<jar href="plugins/org.eclipse.wst.common.project.facet.core_1.2.0.v200706071740.jar"/>

<jar href="plugins/org.eclipse.wst.common.ui_1.1.200.v200705302225.jar"/>

<jar href="plugins/org.eclipse.wst.common.uriresolver_1.1.201.v200705302225.jar"/>

<jar href="plugins/org.eclipse.wst.sse.core_1.1.201.zmyeclipse60020070820.jar"/>

<jar href="plugins/org.eclipse.wst.sse.ui_1.0.302.zmyeclipse60020070820.jar"/>

<jar href="plugins/org.eclipse.wst.validation_1.1.101.zmyeclipse60020070820.jar"/>

<jar href="plugins/org.eclipse.wst.xml.core_1.1.200.zmyeclipse60020070820.jar"/>

<jar href="plugins/org.eclipse.wst.xml.ui_1.0.300.zmyeclipse60020070820.jar"/>

<jar href="plugins/org.jbpm.gd.common_3.2.0.alpha1.jar"/>

<jar href="plugins/org.jbpm.gd.jpdl_3.2.0.alpha1.jar"/>

<jar href="plugins/org.mozilla.xpcom_1.8.1.3-20070320.jar"/>

<jar href="plugins/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20070502.jar"/>

<jar href="plugins/org.eclipse.core.databinding.beans_1.0.0.I20070606-0010.jar"/>

</resources>

</jnlp>
 

 

Config.ini


#Product Runtime Configuration File

osgi.splashPath=platform:/base/plugins/org.jbpm.gd.jpdl

eclipse.product=org.jbpm.gd.jpdl.product

osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start

osgi.bundles.defaultStartLevel=4
 

 

 

将你打的包按上图中的目加入到你的web工程中,发布到服务器中,在index.jsp中加入一个超链接到你的jbpmJws.jnlp中。

 

(附件中的jbpm.rar中有org.jbpm.gd.common,org.jbpm.gd.common,org.jdbm.gd.jpdl.feature三个工程)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
2017年jBPM 正式发布了全新的 7版本。jBPM 是一个完全开源的业务流程管理(BPM)和案例管理解决方案。它支持流程和案例的完整生命周期,从编写工具到执行一直到监控和管理。 在核心引擎之上,提供了许多功能和工具来支持整个生命周期中的业务流程: 基于Eclipse和基于Web的编辑器,用于支持业务流程的图形化创建(拖放)。 基于JPA / JTA的可插拔持久性和事务。 基于WS-HumanTask的可插拔人工任务服务,用于包含需要由人类执行者执行的任务。 管理控制台支持流程实例管理,任务列表和任务表单管理以及报告。 部署流程的可选流程仓库(和其他相关知识)。 历史记录(用于查询/监视/分析)。 与Seam,Spring,OSGi等集成 BPM通过以业务用户和开发人员喜欢的方式提供流程管理功能和工具,从而实现业务分析师,开发人员和最终用户之间的桥梁。域特定的节点可以插入调色板,使业务用户更容易理解这些过程。 jBPM支持自适应和动态过程,需要灵活性来模拟复杂的现实生活中的情况,这些情况不能用刚性过程轻松描述。我们通过允许他们控制进程的哪些部分来执行,动态地偏离进程等,使控制回到终端用户。 jBPM也不仅仅是一个独立的流程引擎。复杂的业务逻辑可以被建模为业务流程与业务规则和复杂事件处理的组合。jBPM可以与Drools项目相结合,以支持将这些范例集成到一起的统一环境,您可以将业务逻辑作为过程,规则和事件的组合进行建模。 工作是MAVEN+eclipse jBPM jars也可以在中央maven仓库中使用 (也可以在JBoss maven仓库中)。 如果您使用Maven,只需添加一个依赖关系pom.xml: org.jbpm jbpm-test 7.3.0.Final 这与Gradle,Ivy和Buildr类似。
经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值