This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

how too add runtime pluggins?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi guys,

We have been building a Blog Writer desktop application using java and swing.

You can take a look at our 1.0 version using this link -> http://www.psiqueware.com/girasol/launch.jnlp or http://www.psiqueware.com/pw/scope.do?doc=downloads_en

We have reach the stage where we want add plugin functionality.

My concerns are about it are the following:

About Loading and Downloading

  • Should we just download them using https from our site to our temporal directory and create a custom classloader .
  • How do you recommend us to download and load the pluggins?
  • Do you know any other mecanism that we can benefit from?

Security

  • Is it posible to isolate attached jars? How? I mean if two pluggins contain 2 separated versions of spring it could be problematic.
  • Is it posible to partially isolate downloaded pluggins? It would be great have comunication between a limited number of clases.
  • Our application uses jnlp, can we reuse something in that area?

Reusability

  • Does anybody knows about an existing library for us to use?


I have no experience with custom classloaders therefore I think I can benefit from every one of your comments,

thank you
-- Angel


PS: I leave you with some screenshots of our project.





 
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For automatic downloading, you can use the java webstart technology.

And for having separate versions of the same component in jars, and still making things to work perfectly - Welcome to the world of OSGi !!!
 
Angelica Soto
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to use OSGi for that?

I saw a demo of knopplerfish... can this be used without the interface? We would like to keep ours :P

Do you happen to have an URL to a good tutorial?

A custom classloader won't do?
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure you can go for OSGi... there are a lot of implementations available.... Equinox, Knopplerfish, Felix.... and just try google to find a tutorial suitable for your requirement.
OSGi is all about classloading mechanisms at runtime, and pluggable entities. But the look of your situation I suppose it can come handy for you.
 
Sheriff
Posts: 22644
123
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
PsiqueWare PublicRelations,

Please read your private messages regarding an important announcement.

Also, please refrain from posting links to your own software. We have our Blatant Advertising forum for that.

Thank you,

Rob
 
Nothing up my sleeve ... and ... presto! A tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic