Version
1.3 [2006-11-12]
Brief introduction
This tutorial shows you how to develop a distributed Web application based on the NBearV3 IOC module, based on the--IOC chapter of the NBearV3 step through step tutorial. You will see that the development of distributed systems is as easy as developing a single-server system based on the Nbear IOC component. This tutorial will also guide you through the considerations of distributed development and non-distributed development in the entity definition.
Note 1:NBEARV3 provides distributed support, from the user perspective, as long as in accordance with the "NBearV3 Step through step tutorial--ioc" way to define the local service interface and implement the same method to define and implement the service interface, and then make a certain configuration and deployment, can not modify the code, It makes it easy to have distributed capabilities without recompiling, and can deploy multiple servers in service units, and can be controlled by SERVICEMQ server to automate load balancing. Within the logic of the Nbear package, SERVICEMQ server is the message center, message delivery is based on. Net remoting, and Castle is implemented as an IOC container.
Note 2: Before reading this article, it is recommended that readers read the NBearV3 step by step tutorial--ioc to master the basics of ORM and IOC in NBearV3.
Goal
Through this tutorial, readers should be able to fully understand the entire process of developing a single-server/Distributed application using the NBearV3 IOC module.
Code
This tutorial shows all the projects and code you created, contained in the Tutorials\ioc_adv_tutorial directory in the NBearV3 latest source code ZIP package that you can download from sf.net. Therefore, if you have any questions in the course of using this tutorial, you can refer to the code directly.
Time
<30 minutes.
Body
Step 1 Download the latest version of NBEARV3 and prepare
1.1 Access to Http://sf.net/projects/nbear, download the latest version of NBearV3 to the local directory.
1.2 Extract the downloaded zip file to C:\, you will see that the NBearV3 directory after the compression includes: Dist, doc, cases, SRC, tutorials directory. In this tutorial, you will use the IOC basic tutorials in all releases of the compiled versions of DLLs and EXE and tutorials directories in the Dist directory.
1.3 Copy the entire ioc_tutorial directory in the tutorials directory to any other location and name it ioc_adv_tutorial, and we will be ioc_tutorial based on the knowledge of the IOC based distributed development in NBearV3.