Method for versioning classes loaded in an OSGi-enabled J2EE environment
Abstract
According to exemplary embodiments, a method is provided for versioning classes in an OSGi-enables J2EE environment. A first version of code is packaged into a first OSGi (Open Service Gateway initiative) bundle, and the first version of code is marked for export. A second version of code is packaged into a second OSGi bundle, and the second version of code is not marked for export. A determination is made whether an application needs the first version of code or the second version of code. If the application needs the first version of code, a classloader hierarchy is constructed using existing classloaders. If the application needs the second version of code, a new classloader is created which is able to load application classes and unversioned application server classes normally, while only loading the correct version of versioned code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for versioning classes in an Open Service Gateway initiatve (OSGI)-enabled Java 2 Platform Enterprise Edition J2EE environment, comprising: packaging a first version of code into a first OSGi bundle, wherein the first version of code is marked for export; packaging a second version of code into a second OSGi bundle, wherein the second version of code is not marked for export; determining whether an application needs the first version of code or the second version of code; if the application needs the first version of code, constructing a classloader hierarchy using existing classloade
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (2)
- The IP.com Journal, v6n9B, pp. 13, 118, 119, Sep. 13, 2006.
- Understanding the Java ClassLoader, Greg Travis, pp. 1-18, Apr. 24, 2001.