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 ...
随机推荐
- 【LINUX】——gvim中如何配置字体和背景
打开你的.vimrc文件,添加如下内容: set gfn=Tlwg\ Typist\ 16 colorscheme desert 然后保存退出,source .vimrc.如此,每次打开gvim时,加 ...
- 【javascript】js 检验密码强度
最近一直在做通行证项目,里面的注册模块中输入密码需要显示密码强度(低中高).今天就把做的效果给大家分享下,代码没有网上搜索的那么复杂,能够满足一般的需求. html 代码如下: <!DOCTYP ...
- CSS3圆角,阴影,透明
CSS实现圆角,阴影,透明的方法很多,传统的方法都比较复杂,用CSS3就方便很多了,虽然现在各浏览器对CSS3的支持还不是很好,但不久的将来CSS3就会普及. 1.圆角 CSS3实现圆角有两种方法. ...
- Qt判断操作系统代码
Qt4的时候是如下宏定义.Qt5,有所不同. #include <QtGlobal> ... #ifdef Q_OS_MAC // mac #endif #ifdef Q_OS_LIN ...
- 关于Unity中Cg的基本语法和使用
Cg是类似于C语言的发展起来的图形编程语言,Cgraphics,它的很多表达式if...else...和C语言非常相像,也和C#非常相像. 由于Shader是写给显卡执行的,所以没有输出语句来调试,很 ...
- Ubuntu上CUDA环境搭建
1.下载CUDA:https://developer.nvidia.com/cuda-toolkit-archive (如果已经安装了N卡驱动,最好用.deb,如果没有安装,可以用.run) 2.根据 ...
- 提供openssl -aes-256-cbc兼容加密/解密的简单python函数
原文链接:http://joelinoff.com/blog/?p=885 这里的示例显示了如何使用python以与openssl aes-256-cbc完全兼容的方式加密和解密数据.它是基于我在本网 ...
- SpringMVC系列(十二)自定义拦截器
Spring MVC也可以使用拦截器对请求进行拦截处理,用户可以自定义拦截器来实现特定的功能,自定义的拦截器必须实现HandlerInterceptor接口– preHandle():这个方法在业务处 ...
- e867. 获取和设置外观
To change the look and feel, you need to know the class name of the new look and feel. This example ...
- Asp.net WebApi下载文件
1,图片 var result = new HttpResponseMessage(HttpStatusCode.OK) { Content = new ByteArrayContent(stream ...