IBM® is a registered trademark of International Business Machines Corporation, Armonk, N.Y., U.S.A. Other names used herein may be registered trademarks, trademarks or product names of International Business Machines Corporation or other companies.
1. Field of the Invention
This invention relates to Eclipse-based Rich Clients, and particularly to systems, methods and computer program products for automating packaging and provisioning of J2EE Web Modules to Eclipse-based Rich Clients.
2. Description of Background
Eclipse is an open source community whose projects are focused on building an open development platform comprised of extensible frameworks, tools and runtimes for building, deploying and managing software across the lifecycle. The Rich Client Project (RCP) provides an elegant way to build highly-configurable, GUI-standards-following rich-client applications faster by leveraging the Spring Framework, and a rich library of UI factories and support classes. A portlet container provides a runtime environment for portlets implemented according to the Portlet API. Currently, there exists technology on the Rich Client to run portlet applications in the Portlet Container. In order to run portlet applications in the Portlet Container, a J2EE Web Module is transformed into an OSGI bundle (i.e., to WAB-ify (Web Archive Bundle) the portlet). In addition, a different packaging model is needed to deploy to the Rich Client. However, the web module transformation and the packaging module steps require manual non-automatic steps, which introduce errors into the process. Currently, some toolkits are available to make it easier to package the bundles, however they are very specialized and difficult to use for non-technical users. In addition, once the bundles are created, the deployment to an Eclipse Update Site for provisioning (i.e., sending the features and plugins necessary to run a piece of software from the server to the client) to a rich client can require several manual steps and configuration. Furthermore, the above-discussed steps have to be repeated each time the application is modified by the developers.
Exemplary embodiments include a method for automating packaging and provisioning of J2EE Web Modules to a Eclipse-based Rich Client, the method including deploying a J2EE Web application to an application server being packaged as a plugin sent to the Eclipse-based Rich Client via a dynamic update site having a feature/plugin packager, publishing the J2EE Web Application to the dynamic update site, connecting to the dynamic update site, selecting the J2EE Web application having the J2EE Web Modules for provisioning, versioning each component of the J2EE application, determining interdependencies of each component, determining user access control for each component, generating feature and plugin jar files from each component, signing the feature and plugin jar files with a certificate supplied by an administrator, rewriting descriptor files for each component with contents required by a target platform, performing at least one of implementing a user supplied feature/plugin and triggering the feature/plugin packager for creating a feature/plugin, running the application on the Eclipse-based Rich Client and synchronizing data between the local client and the application server.
System and computer program products corresponding to the above-summarized methods are also described and claimed herein.
Additional features and advantages are realized through the techniques of the present invention. Other embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed invention. For a better understanding of the invention with advantages and features, refer to the description and to the drawings.
As a result of the summarized invention, technically we have achieved a solution which includes provides automated packaging and publishing of the J2EE web application to the dynamic update site that removes problems due to human error, thus increasing developer productivity and reducing administration costs. The solution further includes automated versioning, repackaging and republishing when the J2EE application is modified that increases application availability for customers. For greater flexibility and customization, the system allows for manual packaging and publishing to Eclipse Update Site of choice.
The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other objects, features, and advantages of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
The detailed description explains the preferred embodiments of the invention, together with advantages and features, by way of example with reference to the drawings.
In exemplary embodiments, the systems and methods described herein automate the two above-described steps (i.e., automated packaging and publishing of the J2EE web application to the dynamic update site and automated versioning, repackaging and republishing when the J2EE application is modified that increases application availability for customers) without requiring the user to do any extra steps beyond deploying the application to the J2EE application server. At the same time, the systems and methods described herein provide the flexibility to manually override some of the steps by, for example, allowing code customized to the Rich Client to be included in the generated bundles. In exemplary embodiments, the systems and methods described herein further automatically detect changes made to the application and repackage the bundles appropriately.
In exemplary embodiments, the systems and methods described herein make a J2EE Web Module available for provisioning as an Eclipse Feature, without any extra steps besides deploying the Web Module (i.e., war file) to the application server. In exemplary embodiments, the systems and methods described herein include the following components: 1) a dynamic Update Site, which can be an Eclipse update site that automatically updates itself based on the web modules deployed in the application server as well as the access rights for the current user; and 2) a bundle packager, which packages the web module into an OSGI bundle that contains all the necessary extension points adapted to the target platform. The component also provides the following features: automated dependency management, jar signing, versioning, and ACL management.
In exemplary embodiments, in terms of hardware architecture, as shown in
The processor 105 is a hardware device for executing software, particularly that stored in memory 110. The processor 105 can be any custom made or commercially available processor, a central processing unit (CPU), an auxiliary processor among several processors associated with the computer 101, a semiconductor based microprocessor (in the form of a microchip or chip set), a macroprocessor, or generally any device for executing software instructions. It is appreciated that the processor 105 can include a plurality of registers including GPRs, FPRs, scratch registers, etc.
The memory 110 can include any one or combination of volatile memory elements (e.g., random access memory (RAM, such as DRAM, SRAM, SDRAM, etc.)) and nonvolatile memory elements (e.g., ROM, erasable programmable read only memory (EPROM), electronically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), tape, compact disc read only memory (CD-ROM), disk, diskette, cartridge, cassette or the like, etc.). Moreover, the memory 110 may incorporate electronic, magnetic, optical, and/or other types of storage media. Note that the memory 110 can have a distributed architecture, where various components are situated remote from one another, but can be accessed by the processor 105.
The software in memory 110 may include one or more separate programs, each of which comprises an ordered listing of executable instructions for implementing logical functions. In the example of
The automated packaging and provisioning methods described herein may be in the form of a source program, executable program (object code), script, or any other entity comprising a set of instructions to be performed. When a source program, then the program needs to be translated via a compiler, assembler, interpreter, or the like, which may or may not be included within the memory 110, so as to operate properly in connection with the OS 111. Furthermore, the automated packaging and provisioning methods can be written as an object oriented programming language, which has classes of data and methods, or a procedure programming language, which has routines, subroutines, and/or functions.
In exemplary embodiments, a conventional keyboard 150 and mouse 155 can be coupled to the input/output controller 135. Other output devices such as the I/O devices 140, 145 may include input devices, for example but not limited to a printer, a scanner, microphone, and the like. Finally, the I/O devices 140, 145 may further include devices that communicate both inputs and outputs, for instance but not limited to, a network interface card (NIC) or modulator/demodulator (for accessing other files, devices, systems, or a network), a radio frequency (RF) or other transceiver, a telephonic interface, a bridge, a router, and the like. The system 100 can further include a display controller 125 coupled to a display 130. In exemplary embodiments, the system 100 can further include a network interface 160 for coupling to a network 165. The network 165 can be an IP-based network for communication between the computer 101 and any external server, client and the like via a broadband connection. The network 165 transmits and receives data between the computer 101 and external systems. In exemplary embodiments, network 165 can be a managed IP network administered by a service provider. The network 165 may be implemented in a wireless fashion, e.g., using wireless protocols and technologies, such as WiFi, WiMax, etc. The network 165 can also be a packet-switched network such as a local area network, wide area network, metropolitan area network, Internet network, or other similar type of network environment. The network 165 may be a fixed wireless network, a wireless local area network (LAN), a wireless wide area network (WAN) a personal area network (PAN), a virtual private network (VPN), intranet or other suitable network system and includes equipment for receiving and transmitting signals.
If the computer 101 is a PC, workstation, intelligent device or the like, the software in the memory 110 may further include a basic input output system (BIOS) (omitted for simplicity). The BIOS is a set of essential software routines that initialize and test hardware at startup, start the OS 111, and support the transfer of data among the hardware devices. The BIOS is stored in ROM so that the BIOS can be executed when the computer 101 is activated.
When the computer 101 is in operation, the processor 105 is configured to execute software stored within the memory 110, to communicate data to and from the memory 110, and to generally control operations of the computer 101 pursuant to the software. The automated packaging and provisioning methods described herein and the OS 111, in whole or in part, but typically the latter, are read by the processor 105, perhaps buffered within the processor 105, and then executed.
When the systems and methods described herein are implemented in software, as is shown in
In exemplary embodiments, where the automated packaging and provisioning methods are implemented in hardware, the automated packaging and provisioning methods described herein can be implemented with any or a combination of the following technologies, which are each well known in the art: a discrete logic circuit(s) having logic gates for implementing logic functions upon data signals, an application specific integrated circuit (ASIC) having appropriate combinational logic gates, a programmable gate array(s) (PGA), a field programmable gate array (FPGA), etc.
In exemplary embodiments, the DUS 305 includes several sub-components including but note limited to: 1) feature aggregators 410; 2) a dependencies manager 415; 3) a version manager 420; 4) a pluginID; 5) an ACL manager; 6) a feature/plugin packager 425; and 7) a plugin signer 430. In exemplary embodiments, the feature aggregator 410 is a module used by DUS 305 during the generation of the site.xml. In exemplary embodiments, the dependencies manager 415 is a module used to determine dependencies to other components. Any dependencies detected are referenced in the feature.xml descriptor file, causing the client to provision the other component as well. In exemplary embodiments, the version manager 420 is a module responsible for automatically assigning a version to a feature and plugin. The Dynamic Update Site is using the qualifier technique defined since Eclipse 3.2 to qualify the feature and plugin version packaged for the component: <<pluginID>>_<<version>>.vYYYYMMDDHHmm. In exemplary embodiments, the pluginID and version are taken from the plugin.xml or manifest.mf descriptor file. In the case one of these descriptor file is not present in the J2EE component, a default value is provided as follow: <<componentName>>. Every time the component is updated, the version is recalculated according to the following scheme: YYYYMMDDHHmm. For example: myapp.—1.0.0.v200606060134. Both the pluginID and version can be overridden by the developer user. In exemplary embodiments, the ACL manager is a module responsible for determining user access control to a particular component. If the current user doesn't have enough rights, then the component doesn't appear in the site.xml manifest. In exemplary embodiments, the feature/plugin packager 425 is a module responsible for generating the feature and plugin jar files from the deployed J2EE Component. This module is described in more detail herein. In exemplary embodiments, the plugin signer 430 is an optional module that automatically sign the feature and plugin jar file with a certificate supplied by the administrator.
In exemplary embodiments, the feature/plugin packager 425 is responsible for packaging the feature and plugin jar files that are sent to the client. Besides gathering all the files, the feature/plugin packager 425 also rewrites the descriptor files with the contents required by the target platform. For example, adding the required extension points, package dependencies, etc.
In exemplary embodiments, the system allows for complete customization of the descriptor file rewriting. For example, the application owner can add extension points specific to a particular target platform. In exemplary embodiments, the descriptor files that are rewritten during this phase include but are not limited to: plugin.xml; manifest.mf; web.xml; and portlet.xml. In exemplary embodiments, the plugin/feature options include but are not limited to: a feature Label (a descriptive label for the feature); a provider-name (plugin provider); image (path to an image); copyright; license Information; category definition (category in which the feature appear in the Eclipse Update Manager). In exemplary embodiments, the user can provide eclipse fragments to customize for each support target platform. In exemplary embodiments, fragments must be deployed in a pre-defined directory and follow a specific naming convention, for the DUS to recognize them. An example implementation could be to use the WEB-INF\fragments directory and the name of the component followed by the target platform id, is as follows:
In exemplary embodiments, during provisioning, the DUS 305 looks into the WEB-INF\fragments directory of the application to check if a fragment is present for the client platform being provisioned to and if it's the case, then the fragment is automatically be added to the generated feature.
In exemplary embodiments, the user can provide properties files that contain the translation for all the plugin/feature options described above. Similarly, the user can also provide properties files for all the standard eclipse descriptor files like plugin properties, etc. The DUS automatically recognizes them and package them into the generated features and plugins according to Eclipse conventions.
The capabilities of the present invention can be implemented in software, firmware, hardware or some combination thereof.
As one example, one or more aspects of the present invention can be included in an article of manufacture (e.g., one or more computer program products) having, for instance, computer usable media. The media has embodied therein, for instance, computer readable program code means for providing and facilitating the capabilities of the present invention. The article of manufacture can be included as a part of a computer system or sold separately.
Additionally, at least one program storage device readable by a machine, tangibly embodying at least one program of instructions executable by the machine to perform the capabilities of the present invention can be provided.
The flow diagrams depicted herein are just examples. There may be many variations to these diagrams or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order, or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.
While the preferred embodiment to the invention has been described, it will be understood that those skilled in the art, both now and in the future, may make various improvements and enhancements which fall within the scope of the claims which follow. These claims should be construed to maintain the proper protection for the invention first described.