Use Websharp Service Locator to simplify Distributed System Development

Source: Internet
Author: User

Use Websharp Service Locator
Simplify Distributed System Development
What is Websharp Service Locator?
For multi-tier application systems, we usually divide them into clients, application service layers, and databases. At the application service layer, we need to consider at least two aspects:
Ü how to implement business logic
Ü how to provide services to clients.
We may use a variety of technologies to provide services: Webservice,. Net Remoting, and even EJB. So many implementation technologies bring about great flexibility, but they also bring about problems. One of them is how many server technologies are there, the number of client access technologies required. Even in some distributed application systems, application logic is developed using different technologies, which exist on different machines, some exist on the client machine, and some use. net Remoting development exists in the LAN, and some use Web services on the Internet. Sometimes, we want the same business logic to support different clients.
In this case, we need a consistent service access programming model to integrate different service access modes and simplify system development and deployment. Websharp Service Locator (WSL) provides this capability. developers can access these services in a consistent and transparent manner by defining Service access interfaces, ignore the differences between these services. The framework automatically generates a proxy required to access the remote service.
Websharp is a new open-source project on sourceforge. The goal is to provide one. A lightweight Application System Framework in the. Net environment. It contains three main contents: An O/R Mapping Framework, an AOP framework, and a Service Locator. Currently, Service Locator has only been initially developed for local assembly locators, WebService locators, And. Net Remoting locators. However, we can use the framework functions provided by it to help our development. The goal of Websharp Service Locator is to achieve J2EE access. All source code can be downloaded from the http://www.sourceforge.net/projects/websharp.
Main Websharp Service Locator Interfaces
WSL is a lightweight framework that is very easy to use and expand. To use WSL, there is only one class to deal with: ServiceLocator, which is defined as follows:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.