Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Why I should use the OSGi platform?

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To someone like me who doesn't know anything about OSGi, but has a lot of experience in the Java world, why I should use the OSGi platform?


Thank you!
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The https://coderanch.com/how-to/java/OSGiLinks page has some links about this; start with Why is OSGi important? and OSGi, and How It Got That Way.
 
Marco Antonio
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Ulf.
 
author
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Marco Antonio wrote:To someone like me who doesn't know anything about OSGi, but has a lot of experience in the Java world, why I should use the OSGi platform?



You should only use it if you suffer from issues (e.g., modularity) that OSGi can resolve or if you might like to take advantage of features (e.g., dynamism) that OSGi provides.
 
Marco Antonio
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Richard!

I will take into accounts your considerations.
 
Ranch Hand
Posts: 8934
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it make sense to use ogsi when we need to maintain multiple versions of applications. Each version deployed as a bundle. Do you agree with this author ?
 
Marco Antonio
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pradeep, when you say "maintain multiple versions of applications", do you main multiple versions of the same third part JARs? If it is like that, if you use Maven you could indicate which version you want use, couldn't you? Which adventages OSGi will provide regarding the Maven solution?

Sorry whether I am asking a no sense question


Thanks you all!
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Marco Antonio wrote:If it is like that, if you use Maven you could indicate which version you want use, couldn't you? Which adventages OSGi will provide regarding the Maven solution?


I think the question is about using multiple versions of a library (or jar file) within the same JVM process. Maven doesn't help with that, whereas OSGi makes it easy to accomplish.
 
Marco Antonio
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Ulf!

Your contributions are always welcome.
 
Pradeep bhatt
Ranch Hand
Posts: 8934
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Ulf is right as always
 
Marco Antonio
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Pradeep.

It is a scenario which I had not been considered (perhaps because I have never needed to solve it) but it is very interesting.
 
Richard S. Hall
author
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Pradeep bhatt wrote:I think it make sense to use ogsi when we need to maintain multiple versions of applications. Each version deployed as a bundle. Do you agree with this author ?



It is not necessarily multiple versions of an application per se, it is just when you need higher levels of modularity and encapsulation than what Java provides by itself. This could include running multiple versions of the same application at the same time, but you may just have a really big application where you want to enforce logical boundaries and enable better separation of concerns allowing different parts of the application to evolve independently. Or it could just be a small highly dynamic application where you want parts of it to be able to easily come and go in response to environmental changes.

Modularity is like object orientation, it doesn't just enable a single thing, it is about design.
 
Marco Antonio
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

...you may just have a really big application where you want to enforce logical boundaries and enable better separation of concerns allowing different parts of the application to evolve independently. Or it could just be a small highly dynamic application where you want parts of it to be able to easily come and go in response to environmental changes.


It is very interesting and all of you have increased my interest in OSGi.

Thank you so much!
 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!