|By Scott Cranton||
|March 25, 2011 01:45 PM EDT||
OSGi technology brings a number of much needed benefits to the Java enterprise application market, and is disruptive in that it impacts the software development, deployment, and management practices of many organizations. OSGi impacts deployment given the shared, modular nature of OSGi, meaning application code must be written differently to capitalize on the benefits of OSGi. Equally important, application management processes need to be adjusted, given the highly shared nature of OSGi modules across many applications. This article provides a high-level overview of OSGi, and the impact this framework is having on the software lifecycle.
What Is OSGi?
What started life as an acronym for the telecommunication industry's Open Services Gateway initiative (OSGi) has today expanded to cover Java development across industries and enterprises. Originally conceived and designed as a Java software framework to make it easier to build modular applications able to support always on, constrained environments such as a cell tower switch, OSGi is now being adopted by all the major enterprise Java software providers including all the major Java EE application server vendors (e.g., Oracle, IBM, JBoss). But what prompted the evolution of OSGi? Much like telecommunications services providers, most, if not all, enterprises are running applications or infrastructure that must stay "on" and support dynamic updating of new versions.
The OSGi framework covers three major areas: Bundles, Lifecycle, and Services. The Bundle layer is the most visible, and most used part of the OSGi framework. In short, the Bundle layer is represented as a JAR file (Java ARchive) that includes extra information about which parts of its content can be used by other applications, as well as its dependencies. The Lifecycle layer defines a sequence of steps that the bundles (your code) go through when installed, started, updated, stopped, and uninstalled. Having the lifecycle explicitly defined allows the code in the bundle to start managing its own resources. Equally important, the Lifecycle layer helps administrators catch issues early as OSGi mandates that all external dependencies be resolved before a bundle can be used. If the dependencies cannot be resolved, an error is logged before the bundle starts. Clearly, this is a much better process than getting a phone call in the middle of the night during a critical process run. The Services layer exposes services running code objects that can be called from other code running in the OSGi server. The big difference for OSGi Services is that the framework allows the service implementation to change at runtime - the concept of dynamic updating referenced earlier.
The positive impacts of OSGi on the application development process are clear, but what about application deployment and management? And why is deployment and management even important to the developer?
Impact on Developing Applications
The most visible OSGi change for Java developers is the OSGi Bundle layer. As indicated earlier, this is extra information that is included with the code that explicitly says which Java packages others can use (export), and which Java packages are needed at runtime from others (imports). This additional information allows a developer to be more explicit in code dependencies than ever before, making it significantly easier for teams of developers to work together, and benefitting the overall code maintenance process. In fact, OSGi has been described as providing true Java application modules.
There is also version information about imports and exports, which allows multiple versions of Java libraries (e.g., hibernate or log4j) to be deployed on the same server at the same time and not cause of the traditional conflicts which developers encountered.
As developers get more sophisticated with OSGi, they will better understand the critical importance of the Lifecycle layer. At the most basic, it's a great place to get (start) and release (stop) external resources such as database connections. This eliminates the need to generate the often complicated code required to safely manage connections in the middle of your code.
Some will eventually look at the OSGi Service layer; most to access existing capabilities such as configuration management and logging. Some will share and consume code in different bundles (modules) using OSGi services to take full advantage of runtime versioning of components. Imagine the ability to install a patch to an application module in a running system without needing to write lots of fancy code into your application. That's what OSGi services offer the enterprise developer.
Deploying an OSGi Application
We've already talked about developers putting dependency information into their code bundles, streamlining the deployment process. When you install an OSGi bundle into a server, you can ask the server if all of the dependencies are present, what those dependencies are, and if some are missing, what (and what versions) are missing. All this dependency checking happens before the code is started, so you can catch issues early (before you pager goes off). It also enables the ability to record the full dependency tree, including versions, of an application at any point so you can better track changes to your system and how that relates to application changes.
Several OSGi servers, such as Apache ServiceMix (http://servicemix.apache.org) or the productized distribution Fuse ESB (http://fusesource.com), allow OSGi bundles to be installed and upgraded from Apache Maven repositories. Maven is a build system that can keep software artifacts within a set of locations (repositories) with a number of build time advantages for automatically downloading all dependent code libraries such that a code build can run. For deployment teams, this allows for much closer coordination between themselves and the development team as all team members are working against a common repository. This allows deployment teams to update running systems with a single command once a patch has passed all QA tests.
Managing an OSGi Application
One of the biggest advantages, and potential challenges, for managing an OSGi-based application is the amount of code (bundle) sharing between applications. This can present a challenge for traditional management processes as extra consideration must be given to updating a bundle. For example, how will one update impact other bundle(s)? The good news is that there are a growing number of tools for OSGi that make it much easier to understand the dependencies, and the potential impact, of updating or removing code bundles from a system.
Another advantage of OSGi-based applications is the ability to leverage the OSGi Configuration Admin service, which allows systems administrators to package, change and audit changes to the configuration of bundle properties. For example, the host name and port of the database that a given bundle should access can be managed as OSGi configuration properties giving the administrator a common way to see those properties, make runtime changes, and audit changes.
This article provides a high-level overview of the impact of OSGi to the enterprise software development, deployment, and management lifecycle. The impact of OSGi across the software development lifecycle means that applications can be more robust and dynamic than ever before, including to the ability to develop and deploy applications that never, ever are unavailable. Getting ready for OSGi will involve changes to how you write applications and how you deploy and manage those applications, so try to think of both technology and process changes as you learn more about OSGi.
One of the bewildering things about DevOps is integrating the massive toolchain including the dozens of new tools that seem to crop up every year. Part of DevOps is Continuous Delivery and having a complex toolchain can add additional integration and setup to your developer environment. In his session at @DevOpsSummit at 18th Cloud Expo, Miko Matsumura, Chief Marketing Officer of Gradle Inc., will discuss which tools to use in a developer stack, how to provision the toolchain to minimize onboa...
Feb. 11, 2016 10:00 PM EST Reads: 119
Cognitive Computing is becoming the foundation for a new generation of solutions that have the potential to transform business. Unlike traditional approaches to building solutions, a cognitive computing approach allows the data to help determine the way applications are designed. This contrasts with conventional software development that begins with defining logic based on the current way a business operates. In her session at 18th Cloud Expo, Judith S. Hurwitz, President and CEO of Hurwitz & ...
Feb. 11, 2016 07:00 PM EST Reads: 270
SYS-CON Events announced today that Interoute, owner-operator of one of Europe's largest networks and a global cloud services platform, has been named “Bronze Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2015 at the Javits Center in New York, New York. Interoute is the owner-operator of one of Europe's largest networks and a global cloud services platform which encompasses 12 data centers, 14 virtual data centers and 31 colocation centers, with connections to 195 ad...
Feb. 11, 2016 03:45 PM EST Reads: 409
SYS-CON Events announced today that Alert Logic, Inc., the leading provider of Security-as-a-Service solutions for the cloud, will exhibit at SYS-CON's 18th International Cloud Expo®, which will take place on June 7-9, 2016, at the Javits Center in New York City, NY. Alert Logic, Inc., provides Security-as-a-Service for on-premises, cloud, and hybrid infrastructures, delivering deep security insight and continuous protection for customers at a lower cost than traditional security solutions. Ful...
Feb. 11, 2016 02:45 PM EST Reads: 441
The Quantified Economy represents the total global addressable market (TAM) for IoT that, according to a recent IDC report, will grow to an unprecedented $1.3 trillion by 2019. With this the third wave of the Internet-global proliferation of connected devices, appliances and sensors is poised to take off in 2016. In his session at @ThingsExpo, David McLauchlan, CEO and co-founder of Buddy Platform, will discuss how the ability to access and analyze the massive volume of streaming data from mil...
Feb. 11, 2016 01:45 PM EST
Join us at Cloud Expo | @ThingsExpo 2016 – June 7-9 at the Javits Center in New York City and November 1-3 at the Santa Clara Convention Center in Santa Clara, CA – and deliver your unique message in a way that is striking and unforgettable by taking advantage of SYS-CON's unmatched high-impact, result-driven event / media packages.
Feb. 11, 2016 01:45 PM EST
SYS-CON Events announced today that Commvault, a global leader in enterprise data protection and information management, has been named “Bronze Sponsor” of SYS-CON's 18th International Cloud Expo, which will take place on June 7–9, 2016, at the Javits Center in New York City, NY, and the 19th International Cloud Expo, which will take place on November 1–3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. Commvault is a leading provider of data protection and information management...
Feb. 11, 2016 01:30 PM EST Reads: 439
WebSocket is effectively a persistent and fat pipe that is compatible with a standard web infrastructure; a "TCP for the Web." If you think of WebSocket in this light, there are other more hugely interesting applications of WebSocket than just simply sending data to a browser. In his session at 18th Cloud Expo, Frank Greco, Director of Technology for Kaazing Corporation, will compare other modern web connectivity methods such as HTTP/2, HTTP Streaming, Server-Sent Events and new W3C event APIs ...
Feb. 11, 2016 12:00 PM EST
With an estimated 50 billion devices connected to the Internet by 2020, several industries will begin to expand their capabilities for retaining end point data at the edge to better utilize the range of data types and sheer volume of M2M data generated by the Internet of Things. In his session at @ThingsExpo, Don DeLoach, CEO and President of Infobright, will discuss the infrastructures businesses will need to implement to handle this explosion of data by providing specific use cases for filte...
Feb. 11, 2016 12:00 PM EST Reads: 211
SYS-CON Events announced today that Avere Systems, a leading provider of enterprise storage for the hybrid cloud, will exhibit at SYS-CON's 18th International Cloud Expo®, which will take place on June 7-9, 2016, at the Javits Center in New York City, NY. Avere delivers a more modern architectural approach to storage that doesn’t require the overprovisioning of storage capacity to achieve performance, overspending on expensive storage media for inactive data or the overbuilding of data centers ...
Feb. 11, 2016 11:30 AM EST
SYS-CON Events announced today that Pythian, a global IT services company specializing in helping companies adopt disruptive technologies to optimize revenue-generating systems, has been named “Bronze Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2015 at the Javits Center in New York, New York. Founded in 1997, Pythian is a global IT services company that helps companies compete by adopting disruptive technologies such as cloud, Big Data, advanced analytics, and DevO...
Feb. 11, 2016 11:30 AM EST Reads: 248
Fortunately, meaningful and tangible business cases for IoT are plentiful in a broad array of industries and vertical markets. These range from simple warranty cost reduction for capital intensive assets, to minimizing downtime for vital business tools, to creating feedback loops improving product design, to improving and enhancing enterprise customer experiences. All of these business cases, which will be briefly explored in this session, hinge on cost effectively extracting relevant data from ...
Feb. 11, 2016 11:00 AM EST Reads: 129
Companies can harness IoT and predictive analytics to sustain business continuity; predict and manage site performance during emergencies; minimize expensive reactive maintenance; and forecast equipment and maintenance budgets and expenditures. Providing cost-effective, uninterrupted service is challenging, particularly for organizations with geographically dispersed operations.
Feb. 11, 2016 10:15 AM EST
With the Apple Watch making its way onto wrists all over the world, it’s only a matter of time before it becomes a staple in the workplace. In fact, Forrester reported that 68 percent of technology and business decision-makers characterize wearables as a top priority for 2015. Recognizing their business value early on, FinancialForce.com was the first to bring ERP to wearables, helping streamline communication across front and back office functions. In his session at @ThingsExpo, Kevin Roberts...
Feb. 11, 2016 10:00 AM EST Reads: 398
As enterprises work to take advantage of Big Data technologies, they frequently become distracted by product-level decisions. In most new Big Data builds this approach is completely counter-productive: it presupposes tools that may not be a fit for development teams, forces IT to take on the burden of evaluating and maintaining unfamiliar technology, and represents a major up-front expense. In his session at @BigDataExpo at @ThingsExpo, Andrew Warfield, CTO and Co-Founder of Coho Data, will dis...
Feb. 11, 2016 09:15 AM EST Reads: 204
SYS-CON Events announced today that iDevices®, the preeminent brand in the connected home industry, will exhibit at SYS-CON's 18th International Cloud Expo®, which will take place on June 7-9, 2016, at the Javits Center in New York City, NY. iDevices, the preeminent brand in the connected home industry, has a growing line of HomeKit-enabled products available at the largest retailers worldwide. Through the “Designed with iDevices” co-development program and its custom-built IoT Cloud Infrastruc...
Feb. 11, 2016 09:00 AM EST Reads: 114
Eighty percent of a data scientist’s time is spent gathering and cleaning up data, and 80% of all data is unstructured and almost never analyzed. Cognitive computing, in combination with Big Data, is changing the equation by creating data reservoirs and using natural language processing to enable analysis of unstructured data sources. This is impacting every aspect of the analytics profession from how data is mined (and by whom) to how it is delivered. This is not some futuristic vision: it's ha...
Feb. 11, 2016 06:45 AM EST Reads: 447
Silver Spring Networks, Inc. (NYSE: SSNI) extended its Internet of Things technology platform with performance enhancements to Gen5 – its fifth generation critical infrastructure networking platform. Already delivering nearly 23 million devices on five continents as one of the leading networking providers in the market, Silver Spring announced it is doubling the maximum speed of its Gen5 network to up to 2.4 Mbps, increasing computational performance by 10x, supporting simultaneous mesh communic...
Feb. 11, 2016 05:00 AM EST
The cloud promises new levels of agility and cost-savings for Big Data, data warehousing and analytics. But it’s challenging to understand all the options – from IaaS and PaaS to newer services like HaaS (Hadoop as a Service) and BDaaS (Big Data as a Service). In her session at @BigDataExpo at @ThingsExpo, Hannah Smalltree, a director at Cazena, will provide an educational overview of emerging “as-a-service” options for Big Data in the cloud. This is critical background for IT and data profes...
Feb. 11, 2016 01:15 AM EST Reads: 218
SYS-CON Events announced today that Men & Mice, the leading global provider of DNS, DHCP and IP address management overlay solutions, will exhibit at SYS-CON's 18th International Cloud Expo®, which will take place on June 7-9, 2016, at the Javits Center in New York City, NY. The Men & Mice Suite overlay solution is already known for its powerful application in heterogeneous operating environments, enabling enterprises to scale without fuss. Building on a solid range of diverse platform support,...
Feb. 11, 2016 01:00 AM EST Reads: 240