Re: AutoUpdate // clear module cache
nk0d3r <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Peter, thank you for your reply. I will read the chapters and see if i`m doing something wrong. i`m using the standard module updater. Nico > Peter Hansson <mailto:[email protected]> > 2. Februar 2016 17:04 > 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 > > > > nk0d3r <mailto:[email protected]> > 2. Februar 2016 10:38 > 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