Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: RCP & dynamic Modules

  1. #1
    Join Date
    Oct 2006
    Location
    Germany, Berlin
    Posts
    11

    Default RCP & dynamic Modules

    Hi everyone,

    some months ago we shipped a client application, based on Spring RCP, to our customer. A new requirement is that some addons can be downloaded and installed dynamic without restart.
    Is there a way to load modules dynamic? I'd like to have a dialog where I can check which module shall be downloaded from a server and installed. NetBeans has a API for this scenario.
    Now I have to choices: porting the application to NetBeans, which means a lot of code needs to be rewritten. Or using OSGi for the existing application.
    I prefer the second option, because it sounds like a challenge
    But I simply don't know where to start with embedding an OSGi Platform in a Spring RCP. Had anyone ever a similar problem?

    Thanks in advance.

  2. #2
    Join Date
    Mar 2007
    Location
    Oudenaarde
    Posts
    294

    Default

    OSGi is currently not yet supported and as such, dynamic module loading is currently not possible.
    MSN: PM me please
    Skype: doclo_lieven

    Spring Rich Client Project Lead

  3. #3
    Join Date
    Feb 2006
    Posts
    118

    Default

    I'd suggest taking a look at Spring DM, which is a fusion of Spring and OSGi, targeted at webapps.

    Also take a look at http://www.sip-communicator.org/inde...riteGuiPlugins, which is a Swing + OSGi based app.

    Please post on the forum if you make any progress, as I'm sure many people would be interested in what you achieve. (I would be)

  4. #4
    Join Date
    Jun 2008
    Location
    Germany
    Posts
    67

    Default

    Any progress on how to enable plugin stuff in spring rc or does anyone know "where to start" like gomtuohe904 said?

    Maybe we could learn from this example and this setup information?

  5. #5
    Join Date
    Mar 2007
    Location
    Oudenaarde
    Posts
    294

    Default

    At the moment there's nothing planned for OSGi based development. I'm looking into some technologies myself, but merging OSGi with Spring RCP isn't that easy.
    MSN: PM me please
    Skype: doclo_lieven

    Spring Rich Client Project Lead

  6. #6
    Join Date
    Jun 2008
    Location
    Germany
    Posts
    67

    Default

    > but merging OSGi with Spring RCP isn't that easy.

    Yes, I am looking into this at the moment too and recognize the difficulties. But at the moment I have some time to investigate on this.
    I posted an email on the dev list as well.

    Did you know how to solve the application-context changing problems?
    For my application it would be okay to restart the whole app on installing plugins, so it would be okay to merge the application-contexts on startup.

  7. #7
    Join Date
    Mar 2007
    Location
    Oudenaarde
    Posts
    294

    Default

    The problem with OSGi is that it doesn't really play well with the concept of a webstart application (the main target platform for Spring RC). If you're installing a plugin, you'd want to do that on the server (so that everyone has that plugin), but in reality you'd only be installing it on your pc.
    You don't have that problem with webapps as everything is server-side.
    The mailinglist is something I tend to forget due to the excessive amount of spam on that list (trying to find the real mails between all the crap isn't easy).
    Personally, I'm quite biased on OSGi usage on rich clients. I have yet to see a big Java enterprise rich client application with plugin needs (how are software firms going to charge for professional services otherwise if all it takes is to install a plugin?). Plugins are great in an IDE, but enterprise applications? I don't know. But I'm looking into the possibilities to keep an open mind.
    MSN: PM me please
    Skype: doclo_lieven

    Spring Rich Client Project Lead

  8. #8
    Join Date
    Jun 2008
    Location
    Germany
    Posts
    67

    Default

    only f.y.i I finally got it "working" so that felix says:

    Code:
    The bundle could not be resolved. Reason: Missing Constraint: Import-Package: ca.odell.glazedlists; version="0.0.0"
    So, the problem might be now to osgify all the available bundles, puh ...

    Although there seems to be other workarounds:
    http://www.nabble.com/Unresolved-sun.io-td19631558.html

    And maybe it is worth mentioning that others successfully used Spring DM and Swing:
    https://spar.dev.java.net/

    http://sourceforge.net/projects/agilercp/

    http://max-server.myftp.org/trac/mp3m/ (eclipse rcp) or http://max-server.myftp.org/trac/pm (swing app framework)

  9. #9
    Join Date
    Jun 2008
    Location
    Germany
    Posts
    67

    Default

    Oh, you were faster :-)

    Here is the webstart enabled version of Kai Tödters app:

    http://www.toedter.com/blog/?p=45

  10. #10
    Join Date
    Mar 2007
    Location
    Oudenaarde
    Posts
    294

    Default

    Indeed, I saw that one too, but it's using JSR-296, which is by a meanings of the word dead. But the ideas are sound.
    The only that bothers me when looking into OSGi samples with Swing is the bundle hell. People talk about JAR hell, well, with OSGi you're gonna have bundle hell. Such a simple example, and you already have 10+ bundles. Might be nice to have as an end user, but as a developer this looks unpleasant to say the least...
    MSN: PM me please
    Skype: doclo_lieven

    Spring Rich Client Project Lead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •