OSGI Beginners tutorials are out of date. Is there a new standard?

I tried to start learning OSGI for peace of mind in a few days. I tried many tutorials to work on eclipse, especially for beginners with apache felix or Equinox, but the walkthroughs never lead me to the end of creating even one package.

I even tried console commands with no luck. Is OSGI deprecated? All training materials on the alliance website are also very old, and I could not follow them to the end. I also tried BndTools Totorial here , but on eclipse it wasn’t able to enable "@Component" when it reached 4.3, so I stopped there. When I read the preview of the Osgi Book, I also could not find the “Make Bundle”, so I stopped again. I'm very sad. Is there a way for beginners to get into OSGI?

UPDATE:

For other people who are interested in getting started with OSGI, I found the Osgi in Action book very useful and useful for beginners,

+6
source share
6 answers

The Bndtools tutorial was mentioned and fired in the original question; however, we were able to solve the problem. So I am posting this as an answer for others who might be looking for an OSGi introductory tutorial: check out the Bndtools Tutorial !

+4
source

You can check out tutorials to help you get started with the OSGi OSGi Guide: from project structure to version and OSGi Tutorial: 4 ways to activate code in the OSGi package

+2
source

Apache Karaf is an OSGi container that I believe makes OSGi "easier" to understand and work with. You might consider installing this and just trying. The documentation is pretty good too. Spend some time learning about the running OSGi container; watch it run by first trying a few commands, and then expand a few simple bundles by putting your tail on karaf.log.

Observing Karaf's launch will help you understand more about OSGi and what it takes to build and deploy a package.

IMHO: Both the BndTools and the Maven Bundle plugin are fantastic resources for developing OSGi.

+2
source

If you are mainly looking for the server side of OOGi, then using maven and the maven bundle plugin works very well. See http://www.liquid-reality.de/display/liquid/2011/02/15/Karaf+Tutorial+Part+1+-+Installation+and+First+application

+1
source

In fact, here are two questions that I asked myself most recently, one in the title and one in the content. The question in the title seems rather rhetorical. He expresses a conditional answer to the real question that you will find at the end of the text: "I'm really upset. Is there no way for beginners to get into OSGI?"

Answer: There are ways, but they are not as simple as they should be. The “update” to the question mentions “OSGi in Action”. This is a good book (which I discovered too late, not at the very top of the search results), but quite outdated in terms of tools (for example, Bndtools appears only in the application).

Finding an easy way for beginners, I eventually began to delve into this topic using an eclectic collection of resources found on the Internet. I have documented my experience in what you can call a journal of my (current) journey in the hope that it can be useful to others. I will leave it to you to judge whether this can be considered a shy yes to the question. Finally.

Not having reached the “end of my journey”, I'm not quite sure why there are so few resources for beginners to get into OSGi. I believe that the attention that OSGi received from many people because it was used in Eclipse was one of the first problems. The attempt of the OSGi alliance to combine with the capabilities of the corporate release was different (there are links for this, but I am not allowed to post more than two links). Both incidents led to deception (and many articles), and then to disappointment. In subsequent years, experts better understood this technology and successfully applied it to problem areas where it is used. (And this is less than the intended initial advertisement - or different, OSGi may attract some attention using IoT.) But, as is often the case in such cases, experts (now) have never been tempted to write the kind of introduction that you find during the phases new technology.

Which brings me back to the question from the title, after all: "Is there a new standard?" (which implies whether it is worth wasting time searching in OSGi). The answer depends on which aspects of OSGi are important to you. The JigSaw project aims to introduce modules to the Java platform and developers. With the scheduled date of March 2017 for the central JSR 376, I would say that this can be called the “upcoming standard” (provided that it is completed). But OSGi is more than just modules. Other key features are dynamic configuration (I don't see any competing standard for this feature) and microservices (be careful with this term, it seems they currently have two different interpretations). In the end, you need to take a little look at OSGi to determine its usefulness for your project.

+1
source

There are a lot of obsolete textbooks, outdated documentation and other things that are deep in the thinking of Java EE, it is not clear if you are not familiar with the problems that arise as a result of solving problems arising from the solution of some implicit Java solution in the previous millennium that you are stuck in its mammoth app EE.

Today there are OSGi enRoute projects that provide a set of pretty good tutorials, as well as an OSGi “distribution” that makes resolution dependency easier. I understand that many of the additional services in enRoute are on the way (ha!) To become the OSGi Release 7 standard.

If you want to do a new development in OSGi, this is what I would go for. In fact, even if you want to use OSGi in some obsolete support function, I first read about it on enRoute before I get into all the ugly trade-offs needed to achieve goals.

+1
source

All Articles