NetBpm 配置篇(2)
转载注明出处:http://www.cnblogs.com/anbylau2130/p/3877353.html
上一篇中介绍了Netbpm在IIS和CassiniWebServer服务器的安装
通过上节的配置应该可以打开主页了

到这里要说的是数据库配置了

1,修改数据库连接
Netbpm下数据库映射是通过NHibernate来实现的,目录中 app_config.xml是NHibernate的配置文件
<configuration>
<components> <!-- This classloader loads classes from assemblies in the database.
Different versions of the same process can have use different assemblies. -->
<component id="ClassLoader"
service="NetBpm.Workflow.Delegation.ClassLoader.IClassLoader, NetBpm"
type="NetBpm.Workflow.Delegation.ClassLoader.Impl.DBClassLoader, NetBpm" /> <!-- This classloader loads only classes from the local assemblies -->
<!--
<component id="ClassLoader"
service="NetBpm.Workflow.Delegation.ClassLoader.IClassLoader, NetBpm"
type="NetBpm.Workflow.Delegation.ClassLoader.Impl.DefaultClassLoader, NetBpm" />
--> <component id="OrganisationSession"
service="NetBpm.Workflow.Organisation.EComp.IOrganisationSessionLocal, NetBpm"
type="NetBpm.Workflow.Organisation.EComp.Impl.OrganisationEComp, NetBpm" /> <component id="SchedulerSession"
service="NetBpm.Workflow.Scheduler.EComp.ISchedulerSessionLocal, NetBpm"
type="NetBpm.Workflow.Scheduler.EComp.Impl.SchedulerEComp, NetBpm" /> <component id="DefinitionSession"
service="NetBpm.Workflow.Definition.EComp.IDefinitionSessionLocal, NetBpm"
type="NetBpm.Workflow.Definition.EComp.Impl.DefinitionEComp, NetBpm" /> <component id="ExecutionSession"
service="NetBpm.Workflow.Execution.EComp.IExecutionSessionLocal, NetBpm"
type="NetBpm.Workflow.Execution.EComp.Impl.ExecutionEComp, NetBpm" /> <component id="LogSession"
service="NetBpm.Workflow.Log.EComp.ILogSessionLocal, NetBpm"
type="NetBpm.Workflow.Log.EComp.Impl.LogEComp, NetBpm" /> <component id="SchedulerThread"
service="NetBpm.Workflow.Scheduler.EComp.Impl.SchedulerThread, NetBpm"
type="NetBpm.Workflow.Scheduler.EComp.Impl.SchedulerThread, NetBpm" /> </components> <facilities>
<facility
id="transactions"
type="Castle.Facilities.AutomaticTransactionManagement.TransactionFacility, Castle.Facilities.AutomaticTransactionManagement"/> <facility id="nhibernate"
type="Castle.Facilities.NHibernateIntegration.NHibernateFacility, Castle.Facilities.NHibernateIntegration">
<factory id="nhibernate.factory">
<!-- MYSQL Config -->
<!--<settings>
<item key="hibernate.connection.provider">NHibernate.Connection.DriverConnectionProvider</item>
<item key="hibernate.connection.driver_class">NHibernate.Driver.MySqlDataDriver</item>
<item key="hibernate.connection.connection_string">Database=nbpm;Data Source=localhost;User Id=nbpm;Password=nbpm</item>
<item key="hibernate.dialect">NHibernate.Dialect.MySQLDialect</item>
</settings>-->
<!-- MSSql Config--> <settings>
<item key="hibernate.connection.driver_class">NHibernate.Driver.SqlClientDriver</item>
<item key="hibernate.dialect">NHibernate.Dialect.MsSql2000Dialect</item>
<item key="hibernate.connection.provider">NHibernate.Connection.DriverConnectionProvider</item>
<item key="hibernate.connection.connection_string">Data Source=.;uid=sa;pwd=123;database=MyTest</item>
</settings> <assemblies>
<assembly>NetBpm</assembly>
</assemblies>
</factory>
</facility>
</facilities> </configuration>
我们需要改的只是hibernate.connection.connection_string节点的字符串连接改为我们需要的数据库就行了
<settings>
<item key="hibernate.connection.driver_class">NHibernate.Driver.SqlClientDriver</item>
<item key="hibernate.dialect">NHibernate.Dialect.MsSql2000Dialect</item>
<item key="hibernate.connection.provider">NHibernate.Connection.DriverConnectionProvider</item>
<item key="hibernate.connection.connection_string">Data Source=.;uid=sa;pwd=123;database=MyTest</item>
</settings>
2,在你给定的数据库中运行Sql目录下的sql文件--建表
3,运行Organisation.sql 增加数据库数据即可登录,出现这个界面表示登录成功

NetBpm 配置篇(2)的更多相关文章
- 自定义HttpModule的一些经验--配置篇
http://www.cnblogs.com/MyaSky/articles/2134954.html 自定义HttpModule的一些经验--配置篇 自定义web模块,需继承System.Web.I ...
- maven 配置篇 之pom
maven 配置篇 之pom.xml(一) 博客分类: pm mavenXML配置管理项目管理junit 说完了settings.xml配置,下来说一下maven2的主要配置pom.xml ...
- Linux配置mysql (centos配置java环境 mysql配置篇 总结四)
♣安装的几种方法和比较 ♣配置yum源 ♣安装mysql ♣启动mysql ♣修改密码 ♣导入.sql文件 ♣缓存设置 ♣允许远程登录(navicat) ♣配置编码为utf8 1.关于Linux系统 ...
- Linux配置tomcat (centos配置java环境 tomcat配置篇 总结三)
♣下载安装tomcat7 ♣设置启动和关闭 ♣设置用户名和密码 ♣发布java web项目 声明:这篇教程是建立在前两篇教程的基础上的,所以,还没安装工具和jdk,可以先看这个系列的前面两篇(去到文末 ...
- maven 配置篇 之pom.xml
http://www.blogjava.net/zyl/archive/2006/12/30/91055.html http://maven.apache.org/pom.html的翻译. m ...
- 【Cocos2d-Js基础教学(1)JS -Mac配置篇】
一.准备工作 Windows配置篇请见 http://cn.cocos2d-x.org/tutorial/show?id=1396 1.安装python 2.下载Android SDK Android ...
- 【cocos2d-x 3.0-Mac配置篇】
就在昨天触控正式发布了3.0正式版本... 在这个喜大普奔的日子里,我们又开始了新一轮的革命,先不说其他的,再来看看3.0目录文件里面有什么? 首先是精简了很多,无论是从目录结构,和所用到的工具类,都 ...
- (转)Linux-HA开源软件Heartbeat(配置篇)
原文:http://ixdba.blog.51cto.com/2895551/548625 http://gzsamlee.blog.51cto.com/9976612/1828870 Linux-H ...
- MyBatis框架的使用及源码分析(三) 配置篇 Configuration
从上文<MyBatis框架中Mapper映射配置的使用及原理解析(二) 配置篇 SqlSessionFactoryBuilder,XMLConfigBuilder> 我们知道XMLConf ...
随机推荐
- oozie 客户端常用命令
1.提交作业,作业进入PREP状态 oozie job -oozie http://localhost:11000/oozie -config job.properties -submit job: ...
- Android开发,在Activity启动时,默认隐藏软键盘。和遮挡Edittext时的处理
在Activity启动时,默认隐藏软键盘: 在AndroidManifest.xml中找到你得Activity ,为它添加属性: android:windowSoftInputMode="s ...
- background-size 导致的背景不居中问题
1. 理想中的效果是这样的 2. 然后想改一下圆圈的大小 3. 容器大小为偶数,图片大小为奇数,就会使图片并不真正居中,如果仔细量一下,会发现图片上面比下面多1px! 貌似只有 backgro ...
- Unicode编码:保存中文cookie
中文和英文字符不同,中文属于Unicod字符,在内存中站4个字符,而英文属于ASCII字符,内存中只占2个字符.Cookie中使用Unicode字符时需要对Unicode字符进行编码,否则会乱码.编码 ...
- Eureka 高可用
spring: profiles: eureka1 server: port: 8001 eureka: instance: hostname: eureka1 client: serviceUrl: ...
- Redis 学习笔记2
数据类型: string 字符串类型 一个键最多存储512MB 1> SET :设置key对应的value,如果key存在,同名会产生覆盖 SET key va ...
- SAP NUMBER RANGE维护配置object FBN1 Deletion only possible if status is initial
背景: 错误日志: SAP FBN1 Deletion only possible if status is initial 场景: 如果目标机已有NUMBER RANGE 不为0,需要删除配置年为9 ...
- SAP Process Integration - High Level ERP/Integration Process --- Cargill Process Concept Design
Customer Industry: Commercial off-the-shelf (COTS) application ,, Food Ingredients or Agricultural S ...
- Couchbase 如何设置密码;bucketPassword设置密码
Couchbase 默认创建的 bucket(桶)是没有密码的,那么在 web.config 里面的连接字符串是这样的 <!--配置缓存开始--> <configSection ...
- Spring7种事务传播行为类型--PROPAGATION_REQUIRED及其他6种事务传播行为种类
PROPAGATION_REQUIRED及其他6种事务传播行为种类,有需要的朋友可以参考下. Spring在TransactionDefinition接口中规定了7种类型的事务传播行为,它们规定了事务 ...