SAAS结构技术的开源药店管理系统-如何自己部署这种SOA/SAAS结构的应用
一、药店系统内容说明
二、如何一步一步的部署
1: setlocal
2:
3: REM 设置路径
4: set dic=E:\DrugShop
5:
6: REM 编译解决方案
7: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe %dic%\药店系统-源码-VS2010\DrugShop.sln /t:Rebuild /p:Configuration=Release
8:
9: REM 复制文件到发布版本/应用服务器
10: copy %dic%\药店系统-源码-VS2010\Publish\DrugShop.DAL.dll %dic%\药店系统-发布版本\AppServer\Bin /y
11: copy %dic%\药店系统-源码-VS2010\Publish\DrugShop.BLL.dll %dic%\药店系统-发布版本\AppServer\Bin /y
12:
13: REM 复制文件到发布版本/升级版本
14: copy %dic%\药店系统-源码-VS2010\Publish\DrugShop.*.dll %dic%\药店系统-发布版本\AppServer\xClient\Files /y
15:
16: REM 复制文件到发布版本/客户端
17: copy %dic%\药店系统-源码-VS2010\Publish\DrugShop.*.dll %dic%\药店系统-发布版本\WinClient /y
18:
19: pause
1: setlocal
2: set dic=E:\DrugShop
3: %dic%\药店系统-发布版本\AppServer\Bin\EAS.WindowsService /i /name=DrugShop
4: pause
我们看到一个命名实例为DrugShop的AgileEAS.NET Application Service,在这个服务实例之中运行药品系统的业务逻辑,可以通过服务管理进行启动和停止它。
1: <?xml version="1.0"?>
2: <configuration>
3: <configSections>
4: <section name="eas" type="EAS.ConfigHandler,EAS.MicroKernel"/>
5: </configSections>
6: <eas>
7: <windowsservices>
8: <config httpPort="8080" tcpPort="6688"/>
9: <services>
10: <service name="EAS.RMIService" key="EAS.RMIService"/>
11: <service name="EAS.SmartUpdateService" key="EAS.SmartUpdateService"/>
12: </services>
13: </windowsservices>
14: <objects>
15: <!--定义数据访问相关组件。-->
16: <object name="DataConnection" assembly="EAS.Data" type="EAS.Data.Access.SqlClientConnection" LifestyleType="Thread">
17: <property name="ConnectionString" type="string" value="Data Source=.;Initial Catalog=drugshop;User ID=sa;Password=sa" />
18: </object>
19: <object name="DataAccessor" assembly="EAS.Data" type="EAS.Data.Access.SqlClientAccessor" LifestyleType="Thread">
20: <property name="Connection" type="object" value="DataConnection" />
21: </object>
22: <object name="OrmAccessor" assembly="EAS.Data" type="EAS.Data.ORM.OrmAccessor" LifestyleType="Thread">
23: <property name="DataAccessor" type="object" value="DataAccessor" />
24: </object>
25: <object name="ServiceBridger" assembly="EAS.MicroKernel" type="EAS.Services.LocalServiceBridger" LifestyleType="Thread" />
26: <!--日志组件。-->
27: <object name="Logger" assembly="EAS.MicroKernel" type="EAS.Services.TextLogger" LifestyleType="Singleton">
28: </object>
29: <object name="EAS.RMIService" assembly="EAS.Distributed.ServiceHost" type="EAS.Distributed.RMIServiceAddIn" LifestyleType="Singleton">
30: <property name="EnableLogging" type="bool" value="false" />
31: </object>
32: <object name="EAS.SmartUpdateService" assembly="EAS.Distributed.ServiceHost" type="EAS.SmartUpdate.ServiceAddIn" LifestyleType="Singleton"/>
33: </objects>
34: </eas>
35: <startup>
36: <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
37: </startup>
38: </configuration>
在本配置文件之中,请根据自己的数据库连接信息修改数据库连接,请根据自己的喜好,修改服务实例的通信端口,共包含两个端口http及tcp端口,默认http端口为8080,tcp端口为6688,请自行修改为两个未必点用的端口。
1: <?xml version="1.0" encoding="utf-8"?>
2: <SmartConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3: <URI>http://www.smarteas.net/</URI>
4: <Name>AgileEAS.NET升级配置文件</Name>
5: <Description>用于AgileEAS.NET平台SmartClient/ActiveX运行容器模块升级之用</Description>
6: <StartEx />
7: <Time>2011-05-17T20:14:27.6537091+08:00</Time>
8: <Files>
9: <SmartFile>
10: <FileName>DrugShop.BLL.dll</FileName>
11: <Version>1.0.0.0</Version>
12: <Time>2011-05-17T19:52:04.5989573+08:00</Time>
13: </SmartFile>
14: <SmartFile>
15: <FileName>DrugShop.DAL.dll</FileName>
16: <Version>1.0.0.0</Version>
17: <Time>2011-05-17T19:52:03.2296807+08:00</Time>
18: </SmartFile>
229: </Files>
230: </SmartConfig>
本文件由智能升级配置程序EAS.SmartUpdateConfig.exe产生,我们打开XClient\Files目录下的EAS.SmartUpdateConfig.exe程序集:
1: # AgileEAS.Net 平台升级控制文件。
2:
3: [config]
4:
5: allow = 1
6: url = net.tcp://localhost:6688/EAS.SmartUpdateService
37: <services>
38: <!--<service name="RMIService" service-type="WebService" singleton="true" url="http://www.agilelab.cn/xservice/rmiservice.asmx" />-->
39: <service name="RMIService" service-type="WcfService" singleton="true" url="net.tcp://localhost:6688/EAS.RMIService" />
40: </services>
三、平台发布下载
四、如何联系
AgileEAS.NET平台交流群:125643764(高级群)[新建]
AgileEAS.NET平台交流群:147168308(高级群)[新建]
系统架构交流群1:124825459(高级群)(已满)
系统架构交流群2:49124441(高级群)(已满)
系统架构交流群3:47025564(高级群)(已满)







