1. Technical Field
The present invention relates generally to communication between applications in different execution environments and, more particularly, to application service exchange across different execution environments.
2. History of Related Art
In many embedded systems, all applications execute in the same native execution environment. The execution environment defines the possibilities and constraints for applications in terms of how services are accessed and used, how events are received, how shared resources such as memory are used, how operating systems work and are used, how parallelity in execution in the system is achieved, and how the application is controlled in terms of start and stop. In other words, the execution environment defines the possibilities and constraints for execution and installation of the application. Use of the same execution environment for all applications implies that the rules for all applications are the same throughout the system and that execution-environment specifications are controlled from a single organization.
However, in mobile devices, additional execution environments (e.g., the non-native execution environment JAVA) are being introduced that exist in parallel with the mobile device's native execution environment. In addition, many mobile-device platform customers have proprietary execution environments that are ported onto a mobile-device platform in order to preserve the customers' investments in legacy applications.
Standardized execution environments, such as JAVA, may impose requirements on other execution environments that coexist with standardized execution environments via, for example, the JAVA Specification Request (JSR) specifications. For instance, JSR 75 states that when an end user of a JAVA application edits a phone number, an existing phonebook on the system is to be invoked in order to be able to select the desired contact and then copy the phone number back to an edit field in the JAVA application. Thus, the JAVA execution environment puts requirements on an arbitrary application, which might execute in the native execution environment or in another commercial/proprietary execution environment. Since the specific design of such applications are not under the control of, for example, platform manufacturers, these requirements call for techniques that allow applications in different execution environments to exchange services across execution-environment boundaries.
A method of application service exchange across different execution environments includes receiving a registration to handle a service from a server application operating in a first execution environment, receiving a request for the service from a client application operating in a second execution environment, requesting the service from the server application, receiving a result from the server application responsive to the requesting step, and delivering the result to the client application.
A system for application service exchange across different execution environments includes a first execution environment, a server application adapted to execute on the first execution environment, a second execution environment, a client application adapted to execute on the second execution environment, and a platform service management support. The platform service management support is adapted to receive a request for the service by the client application, request the service from the server application, and deliver a result responsive to the request to the client application.
A more complete understanding of the present invention may be obtained by reference to the following Detailed Description of Exemplary Embodiments of the Invention, when taken in conjunction with the accompanying Drawings, wherein:
Embodiment(s) of the invention will now be described more fully with reference to the accompanying Drawings. The invention may, however, be embodied in many different forms and should not be construed as limited to the embodiment(s) set forth herein. The invention should only be considered limited by the claims as they now exist and the equivalents thereof.
In accordance with principles of the invention, information is exchanged between a client and a server at a service level using a platform service management support. For example, a server registers itself as being able to handle a particular service or set of services, such as, for example, “SupplyPhoneNumber” in the example discussed above. If a client in any execution environment requests the phone number and there exists a server registration, a request is forwarded via mobile-device platform service management support to the server that is registered for handling the service. When the server has carried out the service, the result is forwarded via the platform service management support to the client.
By defining a connection between client and server applications in completely different execution environments on the service level instead of on their respective execution-environment-specific levels, a generic mechanism for exchanging information across execution-environment boundaries may be defined. The endpoints (i.e., the client and the server) need not know of each other and are compile-time and link-time independent of one another. The endpoints need only have knowledge of and be adapted towards the platform service management support. Thus, the platform service management support may act as a service router. From a server perspective, the platform simply publishes a set of requested services. From a client perspective, the platform publishes a set of potentially-accessible services. The client may specify the service and the server may decide whether it is able to handle a request for such a service. If so, the server registers itself as being able to handle the service.
The client (e.g., in an example represented by the JAVA standardization) specifies the service and the server decides whether the server is able to handle such a request. The client-specified solution is somewhat opposite of most client-server designs, in which the client checks to determine if the specification of a service by a specific server fulfills the needs of the client. A method in accordance with various embodiments of the invention addresses both cases. Two exemplary cases regarding how the service and its functional interface are specified and represented are as follows:
The platform service management support includes two parts: (a) a service registration part that keeps track of which server implements which services; and (b) a service broker part that acts as a connection point for the client and the server. The service request is forwarded from the client to the server and the service result is forwarded from the server to the client by the platform service management support.
Three exemplary cases regarding where the platform service management support is located and implemented in a system are described below. The choice of where the platform service management support is located need not affect how the client or the server uses the platform service management support. Three exemplary platform-service-management-support locations are as follows:
Each of the three platform-service-management-support location cases listed above offers different pros and cons relative to external visibility, integration, process and company-strategic decisions. For example, if the platform service management support is located according to case 2 or case 3 above, development of, for example, JAVA JSRs, which requires native services, does not have to be synchronized with overall platform development.
Referring now to the FIGURES,
The platform 302 includes a platform service management support 305. Also shown as part of the system 300 are an execution environment 304, an execution environment 306, and an execution environment 308. As an example, the execution environment 304 could be a JAVA execution environment, the execution environment 306 could be a customer legacy execution environment, and the execution environment 308 could be a platform-defined execution environment.
Shown within the execution environment 304 is a client application 310. A server application 312 is shown within the execution environment 308. Various other applications are also illustrated within each of the execution environments 304, 306, and 308. The platform service management support 305 includes a service broker part 314 and a service registration part 316. Also shown as part of the platform 302 are a plurality of platform services 318, 320, 322, and 324. Arrows 326 and 328 generally illustrate communication between the client application 310 and the server application 312 via the platform service management support 305, the arrows 326 and 328 indicating a service request being forwarded by the client application 310 to the platform service management support 305 and the service request being forwarded by the platform service management support 305 to the server application 312.
At a message 114, the server application 108 uses the platform service management support 112 of the platform 106 in order to register as a handler for a given service. The platform service management support 112 stores this information. The service is specified in a semantically generic way. At a message 116, the client application 110 uses the platform service management support 112 of the platform 106 to request the service. The client application 110 does not know which server application or execution environment implements the service; however, the identity of the server application that implements the requested service is known by the platform service management support 112. The platform service management support 112 knows which server application implements the service and, at a message 118, transfers the service request to the appropriate server application (i.e., the server application 108).
At a message 120, the server application 108 carries out the service and delivers a result of the service to the platform service management support 112. The platform service management support 112 knows that the client application 110 requested the service and delivers the result of the service at a message 122 to the client application 110.
Referring again to the FIGURES,
At a message 203, the client application 110 uses the platform service management support 112 of the platform 106 to request the service. The client application 110 does not know which server application or execution environment implements the service; however, the identity of the server application that implements the requested service is known by the platform service management support 112. The platform service management support 112 keeps track of which server application implements the service (i.e., the server application 108). If, as in
If it is not desired that the platform service management support 112 automatically start the server application 108 as shown in
Various embodiments of the invention serve to permit fundamentally different execution environments to be interconnected, bypass implementation differences, and offer a dynamic way for an embedded mobile-device platform to open up a specification of required services that can be met by any application server. In addition, various embodiments of the invention may be used in a generic way for communications between applications in arbitrary execution environments. Implementation differences between different execution environments may be bridged in terms of information exchange. In addition, a set of services required by a client may be specified, as opposed to specifying a set of services offered by a server. The information exchange between the execution environments may take place using, for example, characters/strings to avoid representation dependencies. In addition, the server and the client need not be aware of each other. A generic service request channel can be established between two endpoints in different execution environments. Moreover, various embodiments of the invention support both server-driven and client-driven service specification.
The previous Detailed Description is of embodiment(s) of the invention. The scope of the invention should not necessarily be limited by this Description. The scope of the invention is instead defined by the following claims and the equivalents thereof.
This patent application claims priority from, and incorporates by reference the entire disclosure of, U.S. Provisional Application No. 60/532,235, filed on Dec. 22, 2003 and bearing Docket No. 53807-00092USPL.
Number | Date | Country | |
---|---|---|---|
60532235 | Dec 2003 | US |