|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.
What a difference a year makes. Organizations aren’t just talking about IoT possibilities, it is now baked into their core business strategy. With IoT, billions of devices generating data from different companies on different networks around the globe need to interact. From efficiency to better customer insights to completely new business models, IoT will turn traditional business models upside down. In the new customer-centric age, the key to success is delivering critical services and apps wit...
May. 24, 2016 06:15 AM EDT Reads: 424
SYS-CON Events announced today BZ Media LLC has been named “Media Sponsor” of SYS-CON's 19th International Cloud Expo, which will take place on November 1–3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. BZ Media LLC is a high-tech media company that produces technical conferences and expositions, and publishes a magazine, newsletters and websites in the software development, SharePoint, mobile development and Commercial Drone markets.
May. 24, 2016 06:00 AM EDT Reads: 3,355
WebRTC is bringing significant change to the communications landscape that will bridge the worlds of web and telephony, making the Internet the new standard for communications. Cloud9 took the road less traveled and used WebRTC to create a downloadable enterprise-grade communications platform that is changing the communication dynamic in the financial sector. In his session at @ThingsExpo, Leo Papadopoulos, CTO of Cloud9, will discuss the importance of WebRTC and how it enables companies to fo...
May. 24, 2016 04:30 AM EDT Reads: 2,367
SYS-CON Events announced today TechTarget has been named “Media 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. TechTarget is the Web’s leading destination for serious technology buyers researching and making enterprise technology decisions. Its extensive global networ...
May. 24, 2016 04:00 AM EDT Reads: 2,984
With major technology companies and startups seriously embracing IoT strategies, now is the perfect time to attend @ThingsExpo 2016 in New York and Silicon Valley. Learn what is going on, contribute to the discussions, and ensure that your enterprise is as "IoT-Ready" as it can be! Internet of @ThingsExpo, taking place Nov 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 17th Cloud Expo and will feature technical sessions from a rock star conference faculty ...
May. 23, 2016 05:00 PM EDT Reads: 4,600
The essence of data analysis involves setting up data pipelines that consist of several operations that are chained together – starting from data collection, data quality checks, data integration, data analysis and data visualization (including the setting up of interaction paths in that visualization). In our opinion, the challenges stem from the technology diversity at each stage of the data pipeline as well as the lack of process around the analysis.
May. 23, 2016 04:30 PM EDT Reads: 738
The 19th International Cloud Expo has announced that its Call for Papers is open. Cloud Expo, to be held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, brings together Cloud Computing, Big Data, Internet of Things, DevOps, Containers, Microservices and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding business opportunity. Submit y...
May. 23, 2016 04:00 PM EDT Reads: 1,809
SYS-CON Events announced today that ContentMX, the marketing technology and services company with a singular mission to increase engagement and drive more conversations for enterprise, channel and SMB technology marketers, has been named “Sponsor & Exhibitor Lounge Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2016, at the Javits Center in New York City, New York. “CloudExpo is a great opportunity to start a conversation with new prospects, but what happens after the...
May. 23, 2016 03:00 PM EDT Reads: 595
Internet of @ThingsExpo, taking place November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with the 19th International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world and ThingsExpo New York Call for Papers is now open.
May. 23, 2016 03:00 PM EDT Reads: 1,651
In his keynote at 18th Cloud Expo, Andrew Keys, Co-Founder of ConsenSys Enterprise, will provide an overview of the evolution of the Internet and the Database and the future of their combination – the Blockchain. Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life ...
May. 23, 2016 02:30 PM EDT Reads: 1,687
There are several IoTs: the Industrial Internet, Consumer Wearables, Wearables and Healthcare, Supply Chains, and the movement toward Smart Grids, Cities, Regions, and Nations. There are competing communications standards every step of the way, a bewildering array of sensors and devices, and an entire world of competing data analytics platforms. To some this appears to be chaos. In this power panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists will discuss the vast to...
May. 23, 2016 02:00 PM EDT Reads: 2,331
SYS-CON Events announced today that Enzu, a leading provider of cloud hosting 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. Enzu’s mission is to be the leading provider of enterprise cloud solutions worldwide. Enzu enables online businesses to use its IT infrastructure to their competitive advantage. By offering a suite of proven hosting and management services, Enzu wants companies to foc...
May. 23, 2016 01:45 PM EDT Reads: 2,046
Customer experience has become a competitive differentiator for companies, and it’s imperative that brands seamlessly connect the customer journey across all platforms. With the continued explosion of IoT, join us for a look at how to build a winning digital foundation in the connected era – today and in the future. In his session at @ThingsExpo, Chris Nguyen, Group Product Marketing Manager at Adobe, will discuss how to successfully leverage mobile, rapidly deploy content, capture real-time d...
May. 23, 2016 12:45 PM EDT Reads: 1,312
IoT generates lots of temporal data. But how do you unlock its value? How do you coordinate the diverse moving parts that must come together when developing your IoT product? What are the key challenges addressed by Data as a Service? How does cloud computing underlie and connect the notions of Digital and DevOps What is the impact of the API economy? What is the business imperative for Cognitive Computing? Get all these questions and hundreds more like them answered at the 18th Cloud Expo...
May. 23, 2016 12:30 PM EDT Reads: 2,022
A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, wh...
May. 23, 2016 12:30 PM EDT Reads: 1,783
SYS-CON Events announced today that 24Notion has been named “Bronze Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2016, at the Javits Center in New York, New York. 24Notion is full-service global creative digital marketing, technology and lifestyle agency that combines strategic ideas with customized tactical execution. With a broad understand of the art of traditional marketing, new media, communications and social influence, 24Notion uniquely understands how to con...
May. 23, 2016 09:15 AM EDT Reads: 1,651
Whether your IoT service is connecting cars, homes, appliances, wearable, cameras or other devices, one question hangs in the balance – how do you actually make money from this service? The ability to turn your IoT service into profit requires the ability to create a monetization strategy that is flexible, scalable and working for you in real-time. It must be a transparent, smoothly implemented strategy that all stakeholders – from customers to the board – will be able to understand and comprehe...
May. 23, 2016 08:15 AM EDT Reads: 2,370
The demand for organizations to expand their infrastructure to multiple IT environments like the cloud, on-premise, mobile, bring your own device (BYOD) and the Internet of Things (IoT) continues to grow. As this hybrid infrastructure increases, the challenge to monitor the security of these systems increases in volume and complexity. In his session at 18th Cloud Expo, Stephen Coty, Chief Security Evangelist at Alert Logic, will show how properly configured and managed security architecture can...
May. 23, 2016 08:00 AM EDT Reads: 1,914
When it comes to IoT in the enterprise, namely the commercial building and hospitality markets, a benefit not getting the attention it deserves is energy efficiency, and IoT's direct impact on a cleaner, greener environment when installed in smart buildings. Until now clean technology was offered piecemeal and led with point solutions that require significant systems integration to orchestrate and deploy. There didn't exist a 'top down' approach that can manage and monitor the way a Smart Buildi...
May. 23, 2016 07:30 AM EDT Reads: 2,011
Korean Broadcasting System (KBS) will feature the upcoming 18th Cloud Expo | @ThingsExpo in a New York news documentary about the "New IT for the Future." The documentary will cover how big companies are transmitting or adopting the new IT for the future and will be filmed on the expo floor between June 7-June 9, 2016, at the Javits Center in New York City, New York. KBS has long been a leader in the development of the broadcasting culture of Korea. As the key public service broadcaster of Korea...
May. 23, 2016 03:45 AM EDT Reads: 1,666