This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing 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
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

OSGI Bundle with a Tomcat/WebSphere application

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a requirement where I need to update the JAR file(may be multiple times a year) within a web application.
Currently this JAR file is into bundled into the application through a Maven dependency and every time I change it, it forces the consuming app to be rebuild and redeployed. The consuming application is deployed on Tomcat/WebSphere.

Now I am looking for an option/solution where I can have the web application consume multiple versions of this JAR file without being redeployed.

I heard about OSGI and thought I would check with the experts on this.

Is OSGI is a good fir for my requirement?

Can I build my JAR as a OSGI plugin and have my Tomcat application consume multiple versions of it without redeployment?

Is it possible to do that way? How do I do that? any documentation/link help?

Appreciate your response.

Thanks.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, OSGi can do this. It's one of the most common (and most basic) things to use OSGi for.

You can find introductory material about OSGi at: https://coderanch.com/how-to/java/OSGiLinks
 
Anju Nadendla
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, thanks for the reply.
But the link doesn't seem to be working.
I get a page not found.
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you get to other sites? The link works fine.
 
Anju Nadendla
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's funny. This link just works fine from the computer but fails when launch this on my smart phone.
Thnaks I will read through the link.
 
All of life is a contant education - Eleanor Roosevelt. 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!