Re: AutoUpdate // clear module cache

Peter Hansson <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAC55jYM=DpKQHwZpJTM-tP2h5ijJk88ey09CjJLiDqwKmKeYdw@mail.gmail.com>
You must be doing something wrong. It shouldn't be necessary to clear any
cache.

Are you using NB Platform's out-of-the-box functionality or have you rolled
your own using the NB Auto Update Services API ?

Personally I learned a lot about how this works from "The Definitive Guide
To NetBeans Platform 7" by Heiko Böck (chapter 36 and chapter 25). The book
is rather old and you can possibly find it online now.
If you are creating an NB application where you want to customize how the
module install/update mechanism works, meaning you want full control, then
especially chapter 25 has been an eye opener for me.

Note that for the NB Platform in general there are IMO better books now.
But especially for this topic I haven't seen it covered as good as in that
book.

Peter


On Tue, Feb 2, 2016 at 10:38 AM, nk0d3r <[email protected]> wrote:

> Hello,
>
> i have a working AutoUpdate configuration.
> When i change my module structure (e.g. split up or add modules), the
> update file on the server will be changed, too.
>
> Existing Modules are updating fine.
> but new modules aren`t installed automatically, it seemed at first.
>
> But then I looked into the Problem and found that the module nbms are
> up-to-date but the module cache of the App still contains the old
> modules and loads those.
>
> This is a Problem when we deliver to our Customers. It's not really an
> option to tell all our users to clear the cache manually when we deliver
> an update.
>
> I would like to refresh the module cache or make it refresh itself after
> each update. I already looked into the AutoUpdate API and read the
> sources but could not find any event that is thrown or Object that is
> put into the lookup when an update is done to hook some code into - or
> did i miss something?
>
> Any help would be appreciated,
> Nico
>
>
> --
> jabber: [email protected]
> web: www.mensch-und-maschine.de
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.