[go: up one dir, main page]

CN1239998C - Method of reolizing multi-protocol service by software construction member - Google Patents

Method of reolizing multi-protocol service by software construction member Download PDF

Info

Publication number
CN1239998C
CN1239998C CN 03101898 CN03101898A CN1239998C CN 1239998 C CN1239998 C CN 1239998C CN 03101898 CN03101898 CN 03101898 CN 03101898 A CN03101898 A CN 03101898A CN 1239998 C CN1239998 C CN 1239998C
Authority
CN
China
Prior art keywords
protocol
component
software
client
components
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 03101898
Other languages
Chinese (zh)
Other versions
CN1430143A (en
Inventor
王千祥
黄罡
梅宏
杨芙清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
Original Assignee
Peking University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University filed Critical Peking University
Priority to CN 03101898 priority Critical patent/CN1239998C/en
Publication of CN1430143A publication Critical patent/CN1430143A/en
Application granted granted Critical
Publication of CN1239998C publication Critical patent/CN1239998C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

本发明提供了一种软件构件实现多协议服务的方法,该方法包括以下步骤:(1)部署时为构件生成不同的骨架程序;(2)向查找服务器注册不同的构件引用;(3)启动不同的交互协议监听器。在此基础上,本发明还提供了在运行时刻增加构件对新交互协议的支持方法,以及在客户访问期间根据用户的请求调整交互协议的方法。采用本发明的方法,通过提高软件构件对交互协议的适应能力,使得需要访问多个构件的客户程序可以按照单一协议的方式访问不同的构件,不仅大大简化了客户端的程序,还提高了整个软件系统的灵活性。

The invention provides a method for software components to realize multi-protocol services. The method includes the following steps: (1) generating different skeleton programs for the components during deployment; (2) registering different component references with the search server; (3) starting Different interaction protocol listeners. On this basis, the present invention also provides a method for adding components to support new interactive protocols at runtime, and a method for adjusting interactive protocols according to user requests during client visits. By adopting the method of the present invention, by improving the adaptability of software components to interactive protocols, client programs that need to access multiple components can access different components according to a single protocol, which not only greatly simplifies the program of the client, but also improves the overall software efficiency. System flexibility.

Description

Software component is realized the multi-protocols service method
Technical field:
The present invention is a kind of flexible implementation of software component, belongs to software technology field, is applicable to the integrated and evolution of software.
Background technology:
Software is from being core with the product to being that core transforms (Software AsService) with the service.A software product can provide the multiple service of being mutually related usually, and these services finally generally are achieved by different software components.When software component provided service, it must be described the service that is provided, and for example comprised what operation, may produce what exception, or the like.Simultaneously, because present software component all can only be supported a kind of interaction protocol, so it generally also will be illustrated the interaction protocol of service.Along with the development of technology such as computer network and Distribution calculation, increasing interaction protocol occurs and be inevitably, and these different agreements may be present in one large-scale, especially those subsystems are distributed in the software systems on the Internet.Like this, if each software component all can only provide service by a kind of interaction protocol, the CLIENT PROGRAM that needs so to visit a plurality of members just needs to be grasped multiple access protocal and in client corresponding supporting mechanism is installed, final form a kind of new " fat client ", this with software development process in the basic concept of maintenance " thin client " be inconsistent.
Summary of the invention:
The purpose of this invention is to provide a kind of software component and realize the multi-protocols service method, make and member has externally provides service by multiple interaction protocol ability specifically adopt any agreement to determine by CLIENT PROGRAM.
On this basis, the present invention also provides increases the support method of member to new interaction protocol in the time of running.
On this basis, the present invention also provides the method for adjusting interaction protocol during client access according to user's request.
Technical scheme of the present invention is as follows:
Software component is realized the multi-protocols service method, may further comprise the steps:
Be that member generates different skeleton programs when (1) disposing.In order to improve the dirigibility of system, do not comprise code in the application program of forming by member about the component interactive agreement.When in a concrete running environment, disposing a concrete application, the multiple interaction protocol that can specify the member in the application to support by the deployment personnel, the interaction protocol of extensively having been supported at present as IIOP, JRMP, SOAP etc.System layer software (as application server) is that member generates a plurality of skeleton programs specific to interaction protocol automatically according to this information.The skeleton program is used to resolve from the message client, that meet specific interaction protocol, and the message branch is tasked concrete member example.Then, after member is finished service, result is returned to the client by the message format of interaction protocol.
(2) quote to searching the different member of server registration.It is the information with special format for client accurate align member that member is quoted, it can be in the member client space to a kind of concrete expression of member, also can be to be stored in a record of searching in the server.Member in the network environment is quoted and has been comprised many details, for example the network address of the type of interaction protocol and version, member place node, communication port, instance identification or the like.Have different forms or manifestation mode because the member of distinct interaction agreement is quoted, therefore, system layer software need be quoted for same member generates a plurality of members specific to different agreement, and registers to searching server.Like this, different clients searches in the server to searching of correspondence according to the interaction protocol that own institute grasps or understands, and the member that can retrieve required member is quoted, and utilize the information of member in quoting to set up and being connected of member, send concrete message to member then.
(3) start different interaction protocol audiomonitors.The interaction protocol audiomonitor is to be specifically designed to the mechanism of monitoring client's message, generally speaking, for certain concrete interaction protocol, can allow a plurality of or whole members in the application program share a protocol listening device, to save system resource, as communication port etc., and help the centralized control that realizes that some is special, as safe access control etc.Like this, the system layer software of an application program generates a protocol listening device for each interaction protocol, be responsible for receiving the client and quote the request message that sends to member according to member, and when receiving concrete client's message, according in the message about the information of member name, decision is by the work of treatment of the skeleton program continuation message of which member, and the function that provides of final component invoking.
If member finds some client and adopted a kind of new agreement, and this agreement promptly needs to increase the support to this agreement when important.Therefore ingredient owing to the support scheme of interaction protocol being belonged to system layer software, need carry out off-line or online evolution to system layer software.The off-line evolution method need stop system, increases the code of supporting New Deal, restarts application system then; And the online evolution method is keeping application system to continue to increase the support to New Deal online under the prerequisite of operation.On function, quality and the scope of application, all be better than off-line method at line method, the large software system of the uninterrupted service of carrier-class, 7 * 24 (7 days weekly, 24 hours every days) especially need be provided those.The support of online increase New Deal comprises following key step in system software: at first, system layer software need obtain the detail content about New Deal, for example data representation mode, various message format, to the mapping of lower layer protocol, member reference formats or the like; Then,, write skeleton program generator corresponding and protocol listening device with agreement according to protocol contents, and after compiling dynamic load in system software; At last, for existing software component generates the skeleton program of supporting New Deal respectively, startup New Deal audiomonitor also will be quoted to be registered to and search in the server specific to the member of New Deal.At this moment, the agreement that the member in the system promptly can be new externally provides and has served.
In addition, the client owing to special demand, may need to adjust some attribute of interaction protocol in reciprocal process.At this moment, interaction protocol is constant, only adjust some attribute of agreement, can adjust to the ssl protocol that adopts safety from adopting common TCP host-host protocol as IIOP, perhaps increase IIOP message max cap. to improve transfer efficiency, this moment, the client only need be responsible for proposing to adjust requirement, was supported by interaction protocol realization mechanism (for example controllability of skeleton program).
Advantage of the present invention and good effect: adopt method of the present invention, by improving the adaptive faculty of software component to interaction protocol, making needs the CLIENT PROGRAM of a plurality of members of visit to visit different members according to the mode of single-protocol, not only simplify the program of client greatly, also improved the dirigibility of whole software system.On this basis, also providing in the time of running increases the support method of new interaction protocol and adjusts the method for interaction protocol during the visit according to user's request, can carry out the upgrading or the adjustment of interaction protocol under the current system of maintenance continuous service, the impregnable prerequisite of service quality.This at present based on the large software system of Web integrated, developing has crucial meaning.In addition, another patent---" the online evolution method of component-based software " (application number: 01136385.1) have complementary effect of the present invention and applicant application.
Description of drawings:
Fig. 1 is the synoptic diagram based on the multi-protocols service of application server realizing software component.
Embodiment:
This section provides a realization based on the J2EE application server, and Fig. 1 has provided synoptic diagram.
Application server is the high-rise operation platform of application program in the network environment, makes that the code of application system is more succinct, the exploitation is more convenient.Application server is considered to after operating system, data base management system (DBMS), the landmark system software that occurs along with the development of computer network environment.In application server based on J2EE, the agreement that can adopt member in the deployment descriptor (Application.xml) of the descriptor (ejb-jar.xml) of member or application system describes, and needn't comprise the information about agreement in the piece code.In this example, by the support of multi-protocols support platform (application server), services component wherein can provide service by four kinds of agreements altogether.These four kinds of agreements are respectively: IIOP, SOAP, JRMP and RPC agreement.
When the concrete application of one of application server deploy, each agreement that application server will be at first intended supporting for this member in using generates audiomonitor, and makes them enter active state, promptly can receive client's solicited status; Then, search in the deployment descriptor statement, support member skeleton, the member of different agreement to quote, and member quoted to be registered to search in the server (utilizing the JNDI interface) for each member generates about agreement.In this example, each member is quoted and has been registered to respectively in CORBA name service, UDDI registration table, RMI registration table and the COM registration table.
When CLIENT PROGRAM need be used the service that member provides, the member of at first searching required member is quoted, information in quoting according to member then, for example: the network address of member place computing machine, the port that this protocol listening device uses, the binding name of member, and possible member example, or the like.Then, CLIENT PROGRAM is sent various requests to member, for example connection request, concrete service request or the like.In this example, these clients are respectively CORBA client, service requester, RMI client and COM client.
If the client searches in searching server less than the quoting of member, show that this member do not support the employed agreement of client at present, can consider to increase support by the system manager of other approach notice member place system to New Deal.
When CLIENT PROGRAM need be adjusted agreement, for example when the HOP based on TCP becomes HOP based on SSL, the agency by agreement of client will set up that SSL is connected with the member skeleton and by this connections exchange IIOP message, thereby realize safe transmission of messages.

Claims (3)

1.软件构件实现多协议服务的方法,包括以下步骤:1. A method for realizing multi-protocol services by software components, comprising the following steps: (1)部署时为构件生成不同的骨架程序,即:当在一个具体的运行环境中部署一个具体的应用时,由部署人员指定应用中的构件所支持的多种交互协议,系统层软件根据这个信息为构件自动生成多个特定于交互协议的骨架代码;(1) Generate different skeleton programs for components during deployment, that is, when deploying a specific application in a specific operating environment, the deployer specifies the multiple interaction protocols supported by the components in the application, and the system layer software according to This information automatically generates several skeleton codes specific to the interaction protocol for the component; (2)向查找服务器注册不同的构件引用,即:系统层软件为同一个构件生成多个特定于不同协议的构件引用,并向查找服务器进行注册;(2) Register different component references with the search server, that is, the system layer software generates multiple component references specific to different protocols for the same component, and registers with the search server; (3)启动不同的交互协议监听器,即:系统层软件为每一个交互协议生成一个协议监听器,协议监听器负责接收客户根据构件引用向构件发出的请求消息,并在接收到具体的客户消息后,根据消息内关于构件名字的信息决定由哪一个构件的骨架程序继续消息的处理工作,并最终调用构件提供的功能。(3) Start different interactive protocol listeners, that is, the system layer software generates a protocol listener for each interactive protocol, and the protocol listener is responsible for receiving the request message sent by the client to the component according to the component reference, and when receiving the specific client After the message, the skeleton program of which component will continue to process the message will be determined according to the information about the component name in the message, and finally the function provided by the component will be invoked. 2.如权利要求1所述的软件构件实现多协议服务的方法,其特征在于所述方法还包括在线增加新协议支持,即:如果构件发现某些客户采用了一种新的协议,系统层软件首先获取关于新协议的细节内容,然后根据协议内容编写与协议对应的骨架程序生成程序以及协议监听器,并在编译后动态加载到系统层软件中。2. The method for realizing multi-protocol services by software components as claimed in claim 1, is characterized in that said method also includes adding new protocol support online, that is: if the component finds that some clients have adopted a new protocol, the system layer The software first obtains the details of the new protocol, and then writes a skeleton program corresponding to the protocol to generate a program and a protocol listener according to the content of the protocol, and dynamically loads it into the system layer software after compilation. 3.如权利要求1或2所述的软件构件实现多协议服务的方法,其特征在于所述方法还包括在会话过程中调整交互协议的某些属性,即:客户提出调整要求,由交互协议实现机制支持。3. The method for implementing multi-protocol services by software components as claimed in claim 1 or 2, characterized in that the method also includes adjusting some attributes of the interaction protocol during the session, that is: the client proposes an adjustment request, and the interaction protocol Implement mechanism support.
CN 03101898 2003-01-29 2003-01-29 Method of reolizing multi-protocol service by software construction member Expired - Fee Related CN1239998C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03101898 CN1239998C (en) 2003-01-29 2003-01-29 Method of reolizing multi-protocol service by software construction member

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03101898 CN1239998C (en) 2003-01-29 2003-01-29 Method of reolizing multi-protocol service by software construction member

Publications (2)

Publication Number Publication Date
CN1430143A CN1430143A (en) 2003-07-16
CN1239998C true CN1239998C (en) 2006-02-01

Family

ID=4789961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03101898 Expired - Fee Related CN1239998C (en) 2003-01-29 2003-01-29 Method of reolizing multi-protocol service by software construction member

Country Status (1)

Country Link
CN (1) CN1239998C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1322420C (en) * 2004-01-18 2007-06-20 北京大学 Method for on-line increasing new function for member software system

Also Published As

Publication number Publication date
CN1430143A (en) 2003-07-16

Similar Documents

Publication Publication Date Title
JP3853592B2 (en) Distributed web application server
Krishnan et al. GSFL: A workflow framework for grid services
Foster et al. Modeling and managing state in distributed systems: The role of OGSI and WSRF
US6879995B1 (en) Application server message logging
US6687761B1 (en) Process control methods and apparatus with distributed object management
US7647523B2 (en) Dynamic binding and fail-over of comparable web service instances in a services grid
US7882501B1 (en) System and method for enabling dynamic modifed class reloading in an application server environment
US6697849B1 (en) System and method for caching JavaServer Pages™ responses
CN1205565C (en) Workload management between server objects in a client/server network
US20050149294A1 (en) Services search method
US20080140857A1 (en) Service-oriented architecture and methods for direct invocation of services utilizing a service requestor invocation framework
US7607128B2 (en) Method and system for enabling a server application to be executed in the same virtual machine as a client application using direct object oriented programming method calls
US20080140760A1 (en) Service-oriented architecture system and methods supporting dynamic service provider versioning
US20080140759A1 (en) Dynamic service-oriented architecture system configuration and proxy object generation server architecture and methods
US6708171B1 (en) Network proxy
WO2001013228A9 (en) Graceful distribution in application server load balancing
CN102347959B (en) Resource access system and method based on identity and session
JP2004512592A (en) Real-time configuration updates and software distribution for active client positions
KR20050084802A (en) Remote dynamic configuration of a web server to provide capacity on demand
EP1210662A2 (en) System and method for enabling application server request failover
US20040139144A1 (en) Using web services to access computational grids by non-members of the grid
US20080281969A1 (en) Controlling access to versions of application software by a server, based on site ID
CN1239998C (en) Method of reolizing multi-protocol service by software construction member
US6631424B1 (en) Distributing information using a computer
CN100407145C (en) Access to feature objects based on uniform resource locators

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060201

Termination date: 20100129