The present invention generally relates to the field of computer technology, and more particularly to a method, apparatus and system for converging a desktop application and a Web application.
In the present information technology (IT) field, Web technology is widely applied because of its simplification, lightweight and based on open standards. More and more software vendors are dedicated to developing their applications based on Web technology. Compared with traditional desktop applications, Web applications have plenty of advantages, for example, Web applications do not require software installation and maintenance, which makes them easy to be distributed.
However, Web applications also have their limitations. A major problem thereof is that their HTML based user interface can't support advanced user interaction. Due to this problem, desktop applications still need to be used in many cases. In some cases, an end user needs to switch between a Web application and a desktop application to finish his work. For example, when a user is editing his BLOG, if he wants to add some photos or pictures, then firstly, he needs to find some required photos or pictures, and then he possibly needs to edit them. To do so, he must install some photo or picture editing software (i.e., a desktop application). After that, he needs to upload the edited photos or pictures to a Web application. However, such user experience is not so good because of some of the following reasons: (1) the integrity of the user's experience is broken; (2) the user must switch between different consoles; (3) Web application data and desktop application data can't be shared; (4) the user must install the required desktop application and maintain it periodically.
To enhance Web application capability, some technologies such as Java script, AJAX, ActiveX and Applet are widely used. For a Java script/AJAX approach, its idea is to write a Web application with the help of Java script, which is a script language providing interactive programming features. However, the use of Java script also has great limitations. For example, the first limitation is that Java script is executed by a translator and has poor performance; the second limitation is that some programming logic can't be implemented using Java script. For an ActiveX/Applet approach, it is not adopted very widely because of its poor compatibility. On the other hand, the user needs to download different plug-ins for different applications and the file size of some plug-ins may be so big that it needs a lot of time to be downloaded.
In view of the above situations, a technology is thus urgently required that can overcome defects in the prior art and converge a Web application and a desktop application so as to use the desktop application to process files of the Web application.
A brief summary on the present invention is given hereinafter to provide basic understanding of some aspects of the present invention. However, it should be understood that this summary is not an exhaustive description of the present invention. Moreover, it is not intended to determine critical or important parts of the present invention and to limit the scope of the present invention either. The summary is only used to give some concepts in a simplified form, which is taken as prolegomenon of the following more detailed description discussed later.
To resolve the above problems existing in the prior art, in a preferred aspect of the present invention there is provided a method for converging a desktop application and a Web application.
In accordance with another aspect of the present invention there is provided a Web server that facilitates convergence of a desktop application and a Web application, as well as a corresponding computer system.
In accordance with another aspect of the present invention there is to provided a computer readable storage medium on which computer program codes for realizing the above method are stored or encoded, as well as a corresponding computer program product.
Viewed from a first aspect, the present invention provides a method for converging a desktop application and a Web application, the Web application being included in a Web server, the method comprising steps of: in response to a request from a client user for using a target desktop application, starting a desktop application initialization process on the Web server and determining an appropriate corresponding hosting server for the user; preparing and provisioning desktop application environment on the corresponding hosting server and starting the target desktop application; transmitting the corresponding hosting server's address to the client so as to make desktop application interaction between the client and the corresponding hosting server; and in response to the completion of the desktop application interaction, stopping and exiting the target desktop application on the corresponding hosting server.
Viewed from a second aspect, the present invention provides a Web server for converging a desktop application and a Web application, the Web server being capable of communicating with a client and one or more hosting servers and including a Web application and a desktop application service, wherein, the Web application generates a desktop application initialization request in response to a request from a user of the client for using a target desktop application, and generates a desktop application exit request in response to the completion of desktop application interaction; in response to the desktop application initialization request, the desktop application service starts a desktop application initializing process on the Web server, determines an appropriate corresponding hosting server for the user, prepares and provisions desktop application environment on it so that the corresponding hosting server could start the target desktop application and transmit the corresponding hosting server's address to the client, thereby making the desktop application interaction between the client and the corresponding hosting server; and in response to the desktop application exit request, the desktop application service stops and exits the target desktop application on the corresponding hosting server.
Viewed from a third aspect, the present invention provides a computer system for converging a desktop application and a Web application, comprising: a client with a Web browser installed thereon; one or more hosting servers each including a terminal service for capturing the hosting server's user interface and a control agent for starting a desktop application on the hosting server; a Web server capable of communicating with the client and the one or more hosting servers and including a Web application and a desktop application service, wherein, the Web application generates a desktop application initialization request in response to a request for using a target desktop application from a user of the client through the Web browser, and generates a desktop application exit request in response to a request from the user of the client for ending the desktop application, in response to the desktop application initialization request, the desktop application service starts a desktop application initializing process, determines an appropriate corresponding hosting server for the user, and prepares and provisions desktop application environment on it so that the control agent could start the target desktop application on the corresponding hosting server and the Web application could transmit the corresponding hosting server's address to the client, the browser plug-in is started at the client side, so as to intercept user input at the client side and provide it to the terminal service on the corresponding hosting server, and display the corresponding hosting server's user interface in the Web browser, and via the browser plug-in and the terminal service on the corresponding hosting server, the desktop application interaction is made between the client end and the corresponding hosting server, and in response to the desktop application exit request, the desktop application service stops and exits the target desktop application on the corresponding hosting server.
Viewed from a fourth aspect, the present invention provides a computer program product loadable into the internal memory of a digital computer, comprising software code portions for performing, when said product is run on a computer, to carry out the invention as describe above.
In accordance with other aspects of the present invention, a corresponding computer readable storage medium and computer program product are also provided.
In those solutions according to the present invention, by embedding a remote desktop application's user interface (UI) into a Web application (e.g., Web browser), it is possible for an end user to use the remote desktop application to process files of the Web application. This means that the user could use the desktop application to edit Web files within a Web page. When a user at the client side is using a certain Web application, he may send to a Web server a request for initializing a certain desktop application. After the Web server receives this request, firstly, it finds an existing server which has been installed with the requested desktop application. Such a server that has already installed with or is capable of being installed with the requested desktop application to provide this desktop application is referred to as a hosting server hereinafter. If such a server can't be found, then the Web server will allocate a new hosting server for the user and provide it with the required operation system and the requested desktop application. After the hosting server is ready, the Web server will replicate Web files into the hosting server and start the desktop application with these files. When the desktop application is started, the Web server will return the address of the hosting server (for example, IP address and port number) to the client. At the same time, a terminal plug-in, which can be acquired from the Web server, is downloaded or launched within the same Web browser at the client side. This plug-in immediately connects to the hosting server by using the above terminal addresses and makes the remote desktop application's user interface to be shown in the Web browser at the client side. Then the user could interact with the remote desktop application through the terminal plug-in. In the end, when the user closes the desktop application, those Web files modified and changed during the desktop application interaction will be replicated to the Web server. In this way, Web applications and desktop applications can be converged.
The present invention has several advantages. The first advantage is that it provides a unified Web console for end users to access desktop applications and Web applications. Desktop applications could be regarded as a part of Web applications, and they are hardware independent and operation system independent. A Single Sign-On (SSO) feature is ready under the control of Web applications. Moreover, Web files can be shared between desktop applications and Web applications, and all changes made by desktop applications can be quickly reflected on Web applications.
The second advantage is that management effort for desktop applications can be simplified. For end users, there is no need to download, install, update and maintain desktop applications at the client side. Moreover, in most cases, some desktop applications may be rarely used by users. With these solutions of the present invention, users do not need to install desktop applications locally. Binary codes of desktop applications are executed on the hosting server, thus it is easier to control software license issues. For software vendors, there is no need to rewrite corresponding desktop applications using Web programming models. Furthermore, traditional desktop applications can be integrated with Web applications, and the development cycle of desktop applications can also be reduced. For system administrators, it is easier to manage these desktop applications and the applications could be maintained centrally. On the other hand, all files and data can be stored at the Web server, thus data loss risk is reduced to minimal and data backup is also easier. In the mean time, more powerful resource (e.g., hosting server) could be used to provide better performance for users.
The third advantage is that virtualization and automation technology can be utilized to reduce cost in those solutions according to the present invention. Several existing technologies, such as VMWare, Xen, and IBM LPAR etc., support server virtualization. These technologies could simulate a physical server as several logical servers or virtual servers. These virtual servers may share resource of the same physical server, which could improve resource utilization and sharing. Furthermore, desktop applications could be deployed on these virtual servers, thereby saving hosting cost for service providers. On the other hand, automation technology may be used to provision operation systems (OSs) and desktop applications, thereby facilitating to save deployment time and reduce human error.
These and other advantages of the present invention will become more apparent from the detailed description of preferred embodiments of the invention blow given in conjunction with the accompanying drawings.
This invention can be better understood by referring to the description blow given in conjunction with the accompanying drawings, in which the same or similar reference signs are used to indicate the same or similar components throughout the accompanying drawings. These drawings together with the following detailed description form a part of the present specification, and serve to further illustrate preferred embodiments of the present invention and explain principles and advantages thereof, in which:
Exemplary embodiments of the present invention will be described in conjunction with the accompanying drawings hereinafter. For the sake of clarity and conciseness, not all the features of actual implementations are described in the specification. However, it should be appreciated that, during developing any of such actual implementations, numerous implementation-specific decisions must be made to achieve the developer's specific goals, for example, compliance with system-related and business-related constraints which will vary from one implementation to another. Moreover, it should also be appreciated that, such a development effort might be very complex and time-consuming, but may nevertheless be a routine task for those skilled in the art having the benefit of this disclosure.
It still needs to be explained herein that the accompanying drawings only show device structures and/or processing steps that are closely related to the solution of the present invention and other details that have little relation with the present invention are omitted, so that the present invention will not be obscured by unnecessary details.
Reference is made to the accompanying drawings hereinafter to give a detailed description of preferred embodiments in accordance with the present invention.
First, referring to
A Web application and related supporting components are deployed in the Web server. In the hosting server, one or more desktop applications possibly requested by the client have been or can be deployed. For general Web application interaction, a client browser communicates with the Web application deployed on the Web server. When certain desktop application interaction is needed, a corresponding hosting server will be allocated for the user by the Web server. Then, the client communicates with the desktop application deployed on the hosting server. After desktop application interaction finishes, the hosting server is released. After that, the client continues to interact with the Web server. This above procedure might be repeated for many times, depending on client's needs on desktop applications.
Next referring to
As shown in
For example, in case of using the Java applet approach, when the applet is initialized, it will connect to a corresponding terminal service 310 running on the hosting server 300, as shown in
Turn back to
Besides these components, as shown in
The request handler 240 provides several interfaces to the Web application 210, which are as follows:
(1) Desktop Application Initialization
In the desktop application initialization request sent from the Web application 210 to the desktop application service 230, the client needs to send version information of the desktop application and a list of files which need to be opened by the desktop application. In addition, a file synchronization option and a restore options could be included in the initialization request. Furthermore, Web session information could also be included so that the request handler 240 could reuse the same hosting server for the same user. For example, the following is an exemplary XML initialization request:
From the initialization response of the desktop application service 230 to the above initialization request, the client could know whether this request is handled successfully or not. The address of the hosting server can also be known so that the client browser could know how to connect to the hosting server. For example, the following is an exemplary XML initialization response:
(2) Desktop Application Exit
After the user has finished using the desktop application, the Web application 210 may request to exit the desktop application so that related resource could be recycled. The Web session information could be included in the exiting request so that the request handler 240 can know which hosting server needs to be recycled. Moreover, a backup option could also be included in the exiting request so that the hosting server environment could be backed up as necessary. For example, the following is an exemplary XML exiting request:
From the response to the exiting request, the Web application 210 could know the result of the operation. For example, the following is an exemplary XML exiting response:
(3) Query
The query function enables the Web application 210 to check the status of the current environment. For example, the following status could be checked:
In the Web application, when there is a need to utilize a desktop application, it could firstly query available desktop applications and then list them, for example, in the form of a list.
For each desktop application, the following attributes could be displayed for the user's selection: application name, version, vendor and operation system (OS). The above information can be obtained from the resource manager 270, the detailed description of which will be given below. In the Web application 210, the list of available desktop applications could be modified according to the user's authority and demand.
When the user requests to use a certain desktop application through the Web browser 100 and submits the form, the Web application 210 will generate a desktop application initialization request and send it to the request handler 240. The request handler 240 will firstly check the session manager 260 to determine whether there is already a running hosting server for this current session or not. If such a hosting server is determined as not present, then it will request the resource manager 270 to allocate one hosting server from the resource pool 400, for example, hosting server 300, to run the requested desktop application. After the resource allocation is done, the request handler 240 will request the deployment controller 280 to prepare and provide hosting server environment and acquire the hosting server's address, such as IP address and port number. Then, the session manager 260 saves the hosting server address information and user session information. At last, the request handler 240 sends the hosting server address back to the Web application 210. The Web application 210 sends to the user browser side a page which includes plug-in (i.e., the terminal agent 110) information and the hosting server address. After the user browser 100 receives the response, it will start the plug-in, i.e., terminal agent 110. Here, it needs to be noted that the plug-in is only required to be downloaded from the Web server when the client accesses the remote desktop application via the browser for the first time; and as the case may be, the plug-in could be stored on the Web server or anywhere else on the network accessible by the Web server (For the sake of simplicity, it isn't shown in
After finishing the desktop application interaction as described above, the user may, for example, send a request to the Web application 210, which then generates a desktop application exit request and send it to the request handler 240 of the desktop application service 230. If the user wants to save his/her hosting server currently allocated for future use, the deployment controller 280 may store the entire server image of this hosting server to the image and software repository 500. After that, the request handler 240 calls the deployment controller 280 to clean up the target hosting server, for example, clear some files generated during the user's usage so that they would not be seen by other users later, and asks the resource manager 270 to release the hosting server. This above process will be described in detail hereinafter with reference to the flowchart shown in
Turn back to
In the resource pool 400, there may be one or more servers of different types, such as Intel/AMD PC server and UNIX server, etc. These servers might have already installed an operation system and desktop applications, but it is also possible that no operation system and desktop application is installed therein. In addition to physical servers, the resource pool 400 might also include one or more virtual servers.
The resource manager 270 maintains the resource pool 400 and handles resource allocation requests and resource release requests. The resource manager 270 keeps track of all servers in the resource pool 400 and saves their detailed information. Such information may include the servers' hardware type and configuration, IP address, OS type, name and version information of desktop applications installed or stored in the server, etc. Based on this information, the resource manger 270 could allocate or determine the best suitable server with respect to a resource allocation request. When a certain resource allocation request is received, the resource manger 270 may find a matched server in the resource pool 400 based on the desktop application and its required OS name. If a matched server (i.e. hosting server) is found, then the matched server will be marked as “in use”, and its IP address and port number will be returned. If no matched server is found, then the resource manger 270 will select a suitable hosting server from the resource pool 400 for provisioning and mark it as “in use”. This above process will be described in detail with reference to the flowchart shown in
In other words, both physical servers and virtual servers could be managed by the resource manager 270. For a physical server, it is managed by the resource manager 270 at a box level, which means only one physical server could be allocated for a single user each time. For a virtual server, the host platform on which it runs could be shared by different users. Each user may only use a virtual server, which only consumes part of physical server resource. Virtual servers could be prepared in the resource pool 400 prior to allocation or provided on demand.
The deployment controller 280 is an automation engine for auto-installation. It could install a remote system automatically. The installation work includes OS installation, application program installation, software configuration, system updating, and server backup etc. Installation software is generally stored in the image and software repository 500. The deployment controller 280 could be implemented by several existing products, such as IBM's Director for Windows/Linux provisioning or IBM's NIM for AIX provisioning.
The major function of the file controller 250 is synchronizing files between the Web server 200 and the hosting server 300. The file controller 250 communicates with a control agent 330 in the hosting server 300 to finish this task. During the desktop application initialization, it replicates those files specified in the desktop application initialization request to the home directory of hosting server 300. During exiting the desktop application, it replicates all files modified or updated during the desktop application interaction from the hosting server 300 to original locations on the Web server 200 or other locations. During the desktop application initialization and the desktop application exit, the file controller 250 could replicate all the modified or updated files on the hosting server 300 to a certain temporary location on the Web server 200 repeatedly. This is for the purpose of backup to prevent these files from being lost after the hosting server 300 crashes for some reasons. Of course, as an alternative, the file controller 250 may also directly replicate all the modified or updated files to original locations on the Web server 200 to overwrite those original files, so that the modification or updating made can be reflected immediately. It can be set by the user based on his requirements.
In the image and software repository 500, two kinds of data are stored, that is, desktop application/OS installation software and server images. Installation software is used for first time installation of a corresponding desktop application or operation system on a hosting server (it may be either physical or virtual). Server images are snapshot/backup of existing servers. Installation software may have the following attributes: software name, version, vendor and installation script. Server images may have the following attributes: software list, image creation date, user ID and hardware type.
On each hosting server (e.g., hosting server 300 shown in
The terminal service 310 communicates with the terminal agent 110 to obtain user input at the client side and reproduce it on the hosting server 300 side. It also captures the UI on the hosting server and sends it to the terminal agent 110 at the client side. In this way, the user could call and control the remote desktop application through the Web browser. Similar to the terminal agent 110, the terminal service 310 could also be implemented by several existing technologies such as VNC and Java applet, etc.
The control agent 330 mainly has file synchronization and application controlling functions. The control agent 330 interacts with the file controller 250 on the Web server 200 to synchronize files. The control agent 330 could also monitor the user's local directory on the hosting server and track file change events. When a certain file is modified or updated, it may notify the file controller 250 to replicate the modified or updated file. In the desktop application initialization stage, the control agent 330 needs to start the target application and load input files. In the desktop application exit stage, the control agent 330 needs to stop and exit the desktop application in use. Herein, the control agent could also be implemented by means of script or program.
Detailed description will be given in conjunction with the flowcharts as shown in
As described above, after the Web application 210 generates the desktop application initialization request, the desktop application initialization process 500 will be started, as shown in
After the user has finished the desktop application interaction, he/she may send a request to the Web application 210, then the Web application 210 sends a desktop application exit request and thus the desktop application exit process 600 as shown in
As shown in
Detailed description of the processing of step S520 shown in
As shown in
From the above description of the computer system and method in accordance with exemplary embodiments of the present invention, it can be easily seen that, according to the present invention, the end user could call the remote desktop application via his/her Web browser at the client side, just as if this desktop application is a part of the Web application. Files can be synchronized between the Web server and the hosting server and all the files and data can be stored on the Web server, therefore, these files and data can be shared by many users and it is easier to manage and backup data on the Web server. In addition, according to the present invention, traditional desktop applications and the Web application can be converged or integrated together, therefore, more plentiful desktop applications can be provided for the Web application of the end user, thereby making the user's Web experience more plentiful and interesting.
Of course, there might have other advantages besides those described above, which will not be enumerated one by one.
Although description is given in conjunction with the flowcharts shown in
Moreover, at step S715 shown in
Although no complete flowchart of the method according to the exemplary embodiments of the present invention is given in the accompanying drawings, it is obvious that those skilled in the art could draw the corresponding flowchart without any efforts based on the literal description of the present invention and the flowcharts in
Furthermore, it is obvious that the operation procedures of the method according to the present invention described above can also be implemented in the form of a computer executable program stored in various machine readable storage media.
Moreover, the objects of the present invention can also be implemented by providing a storage medium with codes of the above executable program stored thereon directly or indirectly to a system or device, and then reading out and executing the program codes by a computer or center processing unit (CPU) of the system or device.
At this time, as long as the system or device has a function of executing a program, implementing modes of the present invention are not limited to the program, and the program can be in any form of, for example, an object program, program executed by an interpreter, or script program provided to an operating system, etc.
The machine readable storage media mentioned above may include but not be limited to various memories and storage units, semiconductor devices, magnetic disk units such as optical, magnetic and magneto-optic disks, and other media suitable for storing information, etc.
In addition, the present invention may be achieved by a client computer by connecting to corresponding websites on the Internet, downloading the computer program codes according to the present invention and installing the same into the computer and then executing the program codes.
Finally, it is also noted that, in this document, relational terms such as left and right, first and second, and the like are used merely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms “comprise”, “comprising,” “include” or any other variations thereof, are intended to cover a non-exclusive inclusion so that a process, method, article, or device that comprises a list of elements does not only include these elements but also may include other elements not explicitly listed or inherent to such process, method, article, or device. An element preceded by “a” or “an” does not, without more constraints, preclude the existence of additional identical elements in the process, method, article, or device that comprises the element.
Although the embodiments of the present invention have been described in detail with reference to the accompanying drawings, it should be noted that, these embodiments are only used to illustrate the present invention but not to limit the present invention. Various modifications and changes can be made by those skilled in the art without departing from the scope of the present invention. Therefore, the scope of the present invention is only defined by the appended claims and the equivalents thereof.
Number | Date | Country | Kind |
---|---|---|---|
2007 1 0147118 | Aug 2007 | CN | national |
This application is a Continuation application of co-pending U.S. patent application Ser. No. 13/534,819 filed Jun. 27, 2012, which is a Divisional application of U.S. patent application Ser. No. 12/675,456 filed on Aug. 20, 2010, incorporated herein by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
6598067 | Wydra et al. | Jul 2003 | B1 |
6950991 | Bloomfield et al. | Sep 2005 | B2 |
6981041 | Araujo | Dec 2005 | B2 |
7330872 | Peart | Feb 2008 | B2 |
7400322 | Urbach | Jul 2008 | B1 |
7577722 | Khandekar | Aug 2009 | B1 |
9047130 | Chen | Jun 2015 | B2 |
20030187983 | Rajic | Oct 2003 | A1 |
20040205101 | Radhakrishnan | Oct 2004 | A1 |
20040221065 | Banerjee et al. | Nov 2004 | A1 |
20060132489 | Blaho | Jun 2006 | A1 |
Number | Date | Country |
---|---|---|
1755041 | Feb 2007 | EP |
2005505051 | Feb 2005 | JP |
2005517254 | Jun 2005 | JP |
2010531488 | Sep 2010 | JP |
0215604 | Feb 2002 | WO |
WO0215604 | Feb 2002 | WO |
2006107531 | Oct 2006 | WO |
WO2006107531 | Oct 2006 | WO |
Entry |
---|
Office Action for U.S. Appl. No. 13/534,819 mailed on May 30, 2014. |
International Search Report for International Application No. PCT/EP2008/061313 dated Feb. 23, 2009. |
Arno Puder, “Extending Desktop Applications to the Web,” symposium, 2004, 8-13, ACM International Conference Proceeding Series, vol. 90; Trinity College Dublin, Las Vegas, NV. |
Huajun Zhang et al., “Converting an ArcGIS Desktop Application to ArcGIS Server Web Application,” 2006 ESRI Federal User Conference, Washington, DC. |
Ron Miller, “Get Rich Online: Rich Internet Applications Pay Big Dividens,” EContent, Apr. 1, 2006. |
Stefan Paal et al., “A Cross-Platform Application Environment for Nomadic Desktop Computing,” book, 2004, 185-200, vol. 3263/2004, Springer Berlin / Heidelberg. |
Patent Cooperation Treaty. “International Search Report and Written Opinion of the International Searching Authority” Issued on Feb. 23, 2009 for International Application No. PCT/EP2008/061313. (8 Pages). |
Number | Date | Country | |
---|---|---|---|
20150256590 A1 | Sep 2015 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12675456 | US | |
Child | 13534819 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13534819 | Jun 2012 | US |
Child | 14717874 | US |