• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Adding dynamic class loading (OSGi) to a Spring project

 
Ranch Hand
Posts: 54
Eclipse IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a Spring MVC project to which I would like to add and update a number of classes without having to restart the server. From what I have read, OSGi is the way to go. The obvious choice of implementation is Spring DM (or it's replacement Gemini Blueprint). What I can't work out is how you actually add it to a Spring project. Does Spring run within Gemini Blueprint or does Gemini Blueprint run within Spring? The official documentation has left me somewhat confused. I don't mind getting a book on the subject but not until I know it will do what I want it to.
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You would run Spring in an OSGI container. See the Virgo website
http://www.eclipse.org/virgo/

Gemini Blueprint supports both Spring DM and Blueprint programming models.
http://www.eclipse.org/virgo/documentation/virgo-documentation-3.5.0.RELEASE/docs/virgo-user-guide/htmlsingle/virgo-user-guide.html#concepts.springdm


You need the Spring enterprise service bundles which support OSGI. These come bundled with Virgo but you can easily use different versions of Spring if you want to:
http://www.eclipse.org/virgo/documentation/virgo-documentation-3.5.0.RELEASE/docs/virgo-user-guide/htmlsingle/virgo-user-guide.html#repository-brits

I think reading over that document and checking out their samples will give you a good start. Any examples/blogs you find online regarding Spring DM server will most likely work with little to no changes on Virgo as well.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic