You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by Arne Limburg <ar...@openknowledge.de> on 2020/04/23 11:12:09 UTC

AW: Meecrowave auto reload

Switching to dev-list...

It should be easy to implement a (configurable, filewatcher-based) auto-reload based on that setup, shouldn't it?

If there is some interest here, I'll take a look into that.

Wdyt?


Cheers,

Arne


OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Arne Limburg
Gesendet: Donnerstag, 23. April 2020 13:10
An: user@openwebbeans.apache.org
Betreff: AW: Meecrowave auto reload


OK, thank you, that setup works.

Cheers, Arne

________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Donnerstag, 23. April 2020 12:06:03
An: user@openwebbeans.apache.org
Betreff: Re: Meecrowave auto reload

Hi Arne,

personally I don't use the polling but this setup:

1. configure what the reloading recompile through reloadGoals:


<plugin>
  <groupId>org.apache.meecrowave</groupId>
  <artifactId>meecrowave-maven-plugin</artifactId>
  <version>1.2.9</version>
  <configuration>
    <reloadGoals>
      <reloadGoal>process-classes</reloadGoal>
    </reloadGoals>
  </configuration>
</plugin>

2. do the changes you want
3. go in the terminal meecrowave:bake/meecrowave:run is executed and type "r" (or "reload" from memory)
4. test your changes

It just executes mvn <reload goals> and redeploy the app.

watcherBouncing was more about static resources (frontend) and should be combined with <webResourceCached>false</webResourceCached>.

The watcher on his side watches the deployed folders (target/classes) and reloads when it changes (which can be too early sometimes depending watcher duration).
The issue you hit is that target/classes is in the classloader created once for the runtime in the mojo (since you deploy classpath and not as a webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you actually don't reload the classes with just the watcher by default.


Romain Manni-Bucau
@rmannibucau<https://twitter.com/rmannibucau> |  Blog<https://rmannibucau.metawerx.net/> |Old Blog<http://rmannibucau.wordpress.com> | Github<https://github.com/rmannibucau> |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <ar...@openknowledge.de>> a écrit :

Hi,

I am fiddling around with the auto-reload feature in meecrowave.

I have configured the maven plugin to set watcherBouncing to 1 and start meecrowave with the plugin.

The log correctly states that target classes is scanned

OpenWebBeans scanning:
[...]
[11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]     [...]/target/classes


When I change a class in the deployment, the server correctly does a redeploy,

but after the redeploy the content of the changed class seems not to have changed in the server.

The class behaves like before.

Is there some hidden class caching somewhere (in cxf or tomcat or so), which I have to turn of?

Any ideas?


Cheers,

Arne

AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Arne Limburg <ar...@openknowledge.de>.
Which is not plain at all, so you have to put the https:// in front of the link by yourself: github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290


Sorry for the spam,


Cheers,

Arne


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Arne Limburg <ar...@openknowledge.de>
Gesendet: Mittwoch, 12. Mai 2021 14:41
An: openwebbeans-dev
Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Sorry for the mangled link (outlook seems to do that automatically for github urls). Here is the plain link: https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-4959854ee33f03e46116639045fcebf0040976e9
[https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-4959854ee33f03e46116639045fcebf0040976e9>

GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-4959854ee33f03e46116639045fcebf0040976e9>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.




--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de<http://www.openknowledge.de> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).



Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).







________________________________
Von: Arne Limburg <ar...@openknowledge.de>
Gesendet: Mittwoch, 12. Mai 2021 14:14
An: openwebbeans-dev
Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Hi all,


I have managed to implement class reloading for meecrowave via our maven plugin:

https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
[https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>

GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.


[https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>

GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.




Unfortunately this does not work for the programmatic start of Meecrowave (i.e. WatcherTest fails). So I added a config property "reloadClasses" to signal, if class reloading should be done (in the maven plugin case) or not (in the programmatic case).


Do you have any better idea to handle that? Or any concrete idea to merge that with "reloadGoals"?


Cheers,

Arne


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de<http://www.openknowledge.de>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de<http://www.openknowledge.de>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).



Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de<http://www.openknowledge.de>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).







________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Donnerstag, 23. April 2020 13:34
An: openwebbeans-dev
Betreff: Re: Meecrowave auto reload

It was the idea of the watcher - it is actually:
https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
[https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>

openwebbeans-meecrowave/ReloadOnChangeController.java at master · apache/openwebbeans-meecrowave · GitHub<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to apache/openwebbeans-meecrowave development by creating an account on GitHub.


openwebbeans-meecrowave/ReloadOnChangeController.java at master · apache/openwebbeans-meecrowave · GitHub<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>
[https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>

openwebbeans-meecrowave/ReloadOnChangeController.java at master · apache/openwebbeans-meecrowave · GitHub<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to apache/openwebbeans-meecrowave development by creating an account on GitHub.


github.com
Apache OpenWebBeans meecrowave. Contribute to apache/openwebbeans-meecrowave development by creating an account on GitHub.


.
Issue is it is not an easy impl since the best impl you can do is to
debounce the reloading to avoid to reload 15 times just for one atomic
change. but it rarely really match the dev experience.
So it works well for small projects with 2-3 classes but for real projects
it depends a lot on the compilation. This is how the manual reloading
command started, it avoids all these pitfalls.
The alternative is to have a post refresh command automatically called (a
bit like livereload), but we don't have it yet.

So to summarize, here are the enhancements I can see:

1. integrate more deeply reloadGoals with watcherBouncing (watching
sources, calling reloadGoals and then reloading the context)
2. ensure watcherBouncing can recreate the classloader of the mojo,
3. potentially add a "manualrefresh" goal which would integrate with run
mojo and force a reload *after* the actual resource/classes
recompilation/reprocessing to avoid timing issues (can be as simple as
creating a file .dirty, if present the reload controller refreshes the
context and deletes it - or just tracks the last modified date, something
like that)

hope it makes sense

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e> | Old Blog
Index<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
smex-ctp.trendmicro.com
An opiniated IT blogging.


Index<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
Index<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
smex-ctp.trendmicro.com
An opiniated IT blogging.


rmannibucau.metawerx.net
An opiniated IT blogging.


<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853> | Github <https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-eb2f9ad481763584af5eecc93b3587e5aff7fac2> |
[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823242]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://rmannibucau.metawerx.net<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
smex-ctp.trendmicro.com
New posts here >>> https://rmannibucau.metawerx.net

[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-eb2f9ad481763584af5eecc93b3587e5aff7fac2>

rmannibucau (Romain Manni-Bucau) · GitHub<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-eb2f9ad481763584af5eecc93b3587e5aff7fac2>
github.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau


[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-eb2f9ad481763584af5eecc93b3587e5aff7fac2>

rmannibucau (Romain Manni-Bucau) · GitHub<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-eb2f9ad481763584af5eecc93b3587e5aff7fac2>
github.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau

[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821394]<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
rmannibucau.wordpress.com
New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e


LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
[https://static.packt-cdn.com/products/9781788473064/cover/smaller]<https://www.packtpub.com/application-development/java-ee-8-high-performance>

Java EE 8 High Performance | Packt<https://www.packtpub.com/application-development/java-ee-8-high-performance>
www.packtpub.com<http://www.packtpub.com>
Get more control of your applications performances in development and production and know how to meet your Service Level Agreement on critical microservices.




Le jeu. 23 avr. 2020 à 13:12, Arne Limburg <ar...@openknowledge.de>
a écrit :

> Switching to dev-list...
>
> It should be easy to implement a (configurable, filewatcher-based)
> auto-reload based on that setup, shouldn't it?
>
> If there is some interest here, I'll take a look into that.
>
> Wdyt?
>
>
> Cheers,
>
> Arne
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
>
>
>
>
> ________________________________
> Von: Arne Limburg
> Gesendet: Donnerstag, 23. April 2020 13:10
> An: user@openwebbeans.apache.org
> Betreff: AW: Meecrowave auto reload
>
>
> OK, thank you, that setup works.
>
> Cheers, Arne
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Donnerstag, 23. April 2020 12:06:03
> An: user@openwebbeans.apache.org
> Betreff: Re: Meecrowave auto reload
>
> Hi Arne,
>
> personally I don't use the polling but this setup:
>
> 1. configure what the reloading recompile through reloadGoals:
>
>
> <plugin>
>   <groupId>org.apache.meecrowave</groupId>
>   <artifactId>meecrowave-maven-plugin</artifactId>
>   <version>1.2.9</version>
>   <configuration>
>     <reloadGoals>
>       <reloadGoal>process-classes</reloadGoal>
>     </reloadGoals>
>   </configuration>
> </plugin>
>
> 2. do the changes you want
> 3. go in the terminal meecrowave:bake/meecrowave:run is executed and type
> "r" (or "reload" from memory)
> 4. test your changes
>
> It just executes mvn <reload goals> and redeploy the app.
>
> watcherBouncing was more about static resources (frontend) and should be
> combined with <webResourceCached>false</webResourceCached>.
>
> The watcher on his side watches the deployed folders (target/classes) and
> reloads when it changes (which can be too early sometimes depending watcher
> duration).
> The issue you hit is that target/classes is in the classloader created
> once for the runtime in the mojo (since you deploy classpath and not as a
> webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you
> actually don't reload the classes with just the watcher by default.
>
>
> Romain Manni-Bucau
> @rmannibucau<https://twitter.com/rmannibucau> |  Blog<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e> |Old Blog<
Index<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
rmannibucau.metawerx.net
An opiniated IT blogging.


> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853> | Github<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-eb2f9ad481763584af5eecc93b3587e5aff7fac2>
[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-eb2f9ad481763584af5eecc93b3587e5aff7fac2>

rmannibucau (Romain Manni-Bucau) · GitHub<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=bec2f772-793a-466c-bb01-7712d11d960f&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-eb2f9ad481763584af5eecc93b3587e5aff7fac2>
github.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau

[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821485]<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
rmannibucau.wordpress.com
New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e


> |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
[https://static.packt-cdn.com/products/9781788473064/cover/smaller]<https://www.packtpub.com/application-development/java-ee-8-high-performance>

Java EE 8 High Performance | Packt<https://www.packtpub.com/application-development/java-ee-8-high-performance>
www.packtpub.com<http://www.packtpub.com>
Get more control of your applications performances in development and production and know how to meet your Service Level Agreement on critical microservices.


> >
>
>
> Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <arne.limburg@openknowledge.de
> <ma...@openknowledge.de>> a écrit :
>
> Hi,
>
> I am fiddling around with the auto-reload feature in meecrowave.
>
> I have configured the maven plugin to set watcherBouncing to 1 and start
> meecrowave with the plugin.
>
> The log correctly states that target classes is scanned
>
> OpenWebBeans scanning:
> [...]
> [11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]
>  [...]/target/classes
>
>
> When I change a class in the deployment, the server correctly does a
> redeploy,
>
> but after the redeploy the content of the changed class seems not to have
> changed in the server.
>
> The class behaves like before.
>
> Is there some hidden class caching somewhere (in cxf or tomcat or so),
> which I have to turn of?
>
> Any ideas?
>
>
> Cheers,
>
> Arne
>

Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Le jeu. 13 mai 2021 à 11:15, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Hi Romain,
>
>
> the SPA case is interesting anyway. Would be cool, if we could support
> automatic trigger of transpilation, too.
>

Why dont we? :)
Joke apart it is just a matter of writing a servlet of filter more than a
meecrowave stuff.

That said with webpack this became obsolete i guess?



> I think, that would mean additional watch directory configuration: i.e.
> watch to src/main/webapp, but use
>

Generally SPA are dev in another module and webapp stays dedicated to old
style jsp/jsf like apps.



> ${project.build.directory}/${project.build.finalName} as webapp directory
> for classpath deployment.
> Whenever src/main/webapp changes, trigger a goal for transpilation (i.e.
> trigger frontend-maven-plugin) and automatically provide the changed JS.
>

In practise watching is not done in java but node stack or lazily in the
servlet when server side rendering is used - like cache toggle.



> Should be not so hard to implement. I'll think about it.
> Cheers,
> Arne
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de <https://www.openknowledge.de/>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Donnerstag, 13. Mai 2021 09:47
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Le jeu. 13 mai 2021 à 08:51, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > OK, having consulted my pillow I agree with the callback solution.
> >
> > We then support two use cases (which is great):
> >
> >   1.  Deploy from Classpath and reload on every class change
> (reload-goals
> > can be empty then)
> >   2.  Deploy from WAR and build and reload on every class change (in
> > combination with reload-goals). target/classes should be added to the
> > watcher in that case (it is automatically done in the first case)
> >
> > I'll add the tests and push the stuff to master. I also document the two
> > scenarios.
> >
> > Shouldn't we have more sensible defaults for the two cases? I.e. a
> > property auto-reload that does a correct setup for both scenarios
> (setting
> > watcher-bouncing to a value greater that 0 and when
> useClasspathDeployment
> > is false, setup reload goals and target/classes)? Or should we even add a
> > new goal
> >
> > meecrowave:dev
> >
> > which sets up auto-reloading depending on useClasspathDeployment (and
> > probably also setting webResourceCached to false)?
> >
> > That would be a separate commit though.
> >
>
> We have a few use cases:
> 1. Pure web/frontend work (you dev your SPA)
> 2. Pure backend
> 3. Both - your case
>
>
> Dev goal with 3 sounds fine but 1 and 2 should stay possible, even
> requiring some conf.
> Defaults should be bundle goal friendly probably (as in prod), ie no
> watching at all.
>
> Hope it makes sense
>
>
> > Cheers,
> > Arne
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Mittwoch, 12. Mai 2021 22:36
> > An: openwebbeans-dev
> > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Clearly for option2 with no new mojo config, no classloader partial
> support
> > only.
> > I'd just ensure backward compat in deployment meta and add a test for
> > webapp and classpath modes.
> >
> > Le mer. 12 mai 2021 à 21:56, Arne Limburg <arne.limburg@openknowledge.de
> >
> > a
> > écrit :
> >
> > > Hi Romain,
> > >
> > >
> > > I have implemented three variants of the solution:
> > >
> > > -
> > >
> >
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-reload-classes
> > >
> > > -
> > >
> >
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-callback
> > >
> > > -
> > github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-flag
> > >
> > >
> > > The first is the one with the config property, the second is with a
> > reload
> > > callack and the third is a flag in DeploymentMeta.
> > >
> > > I personally like the third variant most. And we can configure it such
> > > that it reloads the classes just for the deployClasspath case (isn't
> > > implemented yet), which is the only case where it really makes sense.
> > >
> > > But we also can go with the second solution if you want.
> > >
> > >
> > > Btw.: I just want to handle the case where the IDE is configured to
> > > directly compile to target/classes and want to trigger an automated
> > reload
> > > then.
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Arne Limburg <ar...@openknowledge.de>
> > > Gesendet: Mittwoch, 12. Mai 2021 21:11
> > > An: openwebbeans-dev
> > > Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > > meecowave maven plugin
> > >
> > > Hi Romain,
> > >
> > >
> > > where would you put such callback?
> > >
> > > Put in in the class Meecrowave which would delegate it to
> > > MeecrowaveContextConfig, which then would delegate it to
> > > ReloadOnChangeController?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > > https://www.openknowledge.de/>
> > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Romain Manni-Bucau <rm...@gmail.com>
> > > Gesendet: Mittwoch, 12. Mai 2021 15:52
> > > An: openwebbeans-dev
> > > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > > meecowave maven plugin
> > >
> > > Le mer. 12 mai 2021 à 15:00, Arne Limburg <
> arne.limburg@openknowledge.de
> > >
> > > a
> > > écrit :
> > >
> > > > Hi Romain,
> > > >
> > > >
> > > > The only reason, I did not implement it in the Mojo was, that I could
> > not
> > > > find an easy way to do it.
> > > >
> > > > Do you suggest to throw away the ReloadOnChangeController (or move it
> > to
> > > > the maven plugin),
> > > >
> > >
> > > setReloadCallback(Runnable) sounds like a less radical impl.
> > >
> > >
> > > >
> > > > implement file-watching in the mojo and then do reloading in the same
> > way
> > > > we do it with the "reload" command from System.in?
> > > >
> > > > My first approaches doing it that way ended up in endless reloading
> of
> > > the
> > > > context, because the maven build itself triggered the watcher.
> > > >
> > >
> > > setReloadCallback(() -> { if (reloading.get()) {return;}
> > > reloading.set(true);try {reload();}finally{reloading.set(false);} })
> > >
> > > + small debouncing i guess?
> > >
> > >
> > >
> > > >
> > > > But that can be circumvented somehow.
> > > >
> > > >
> > > > Basically my current implementation does the same stuff in the
> > > > ReloadOnChangeChontroller that is currently done in the Mojo on
> reload.
> > > >
> > >
> > > Hmm , generally speaking
> > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > > [
> > >
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > > >
> > >
> > > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel…
> ·
> > > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > [
> > >
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > > >
> > >
> > > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel…
> ·
> > > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > > >
> > > [
> > >
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > > >
> > >
> > > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel…
> ·
> > > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > github.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > rarely works since it is only about embedded case and reload will
> > > stop.start the classloader anyway.
> > > What I can see missing is target/classes if not built before launching
> > the
> > > first time. I don't think we need to handle that case but if you want
> you
> > > can just do an addUrl or addRepository on the classloader I guess.
> > > Note that thread.setContextClassLoader shouldn't be done (seems you
> only
> > do
> > > to getContextClassLoader after) cause it can break but setting the
> > > classloader can be on the context (same as you do except thread is not
> > > touched).
> > > An option can be to let the Loader handle the lifecycle properly
> instead
> > of
> > > using providedLoader, this way reload will work - but once again, only
> > for
> > > deployclasspath case and not webapp cases.
> > >
> > > Hope it makes sense.
> > >
> > >
> > > >
> > > >
> > > > Cheers,
> > > >
> > > > Arne
> > > >
> > > >
> > > > --
> > > >
> > > > Arne Limburg - Enterprise Architekt
> > > >
> > > >
> > > >
> > > >
> > > > OPEN KNOWLEDGE GmbH
> > > > Poststraße 1, 26122 Oldenburg
> > > > Mobil: +49 151 - 108 22 942
> > > > Tel: +49 441 - 4082-154
> > > > Fax: +49 441 - 4082-111
> > > > arne.limburg@openknowledge.de
> > > > www.openknowledge.de<http://www.openknowledge.de<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<>
> > > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > > https://www.openknowledge.de/>
> > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > > >
> > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > > >
> > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > > >
> > > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > Von: Romain Manni-Bucau <rm...@gmail.com>
> > > > Gesendet: Mittwoch, 12. Mai 2021 14:46
> > > > An: openwebbeans-dev
> > > > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > > > meecowave maven plugin
> > > >
> > > > Hi Arne,
> > > >
> > > > What about the proposal on jira?
> > > > Idea is we already have redeploy command but currently it is made
> > > > incompatible (unsupported) with the watcher.
> > > > Guess if both are configured we can make both working together, does
> > look
> > > > way simpler than making the classloading implementation right (you
> only
> > > > handled meecrowave custom loader case but not tomcat case + it breaks
> > > most
> > > > of cdi usage AFAIK whereas redeploy should stay fast and fully
> > functional
> > > > without weird case, you loose state but all is "normal" then).
> > > >
> > > > wdyt?
> > > >
> > > > Romain Manni-Bucau
> > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > <
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > > >
> > > Index<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > > >
> > > smex-ctp.trendmicro.com
> > > An opiniated IT blogging.
> > >
> > >
> > > > | Old Blog
> > > > Index<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > > Index<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > > >
> > > smex-ctp.trendmicro.com
> > > An opiniated IT blogging.
> > >
> > >
> > > > >
> > > > smex-ctp.trendmicro.com
> > > > An opiniated IT blogging.
> > > >
> > > >
> > > > <
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > >
> > > [
> > >
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > >
> > >
> > > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > > <
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > >
> > > smex-ctp.trendmicro.com
> > > New posts here >>>
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > >
> > >
> > > > | Github <
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > >
> > > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > >
> > >
> > > rmannibucau (Romain Manni-Bucau) · GitHub<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > > Geronimo, Meecrowave, ... -
> > > http://home.apache.org/committer-index.html#rmannibucau). -
> rmannibucau
> > >
> > >
> > > > |
> > > > [
> > > >
> > >
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> > > > ]<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > [
> > >
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > >
> > >
> > > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > > <
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > >
> > > smex-ctp.trendmicro.com
> > > New posts here >>>
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > >
> > >
> > > > >
> > > >
> > > > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > > <
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > > >
> > > > smex-ctp.trendmicro.com
> > > > New posts here >>>
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > > >
> > > > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > > >
> > > >
> > > > rmannibucau (Romain Manni-Bucau) · GitHub<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > > >
> > > > smex-ctp.trendmicro.com
> > > > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > > > Geronimo, Meecrowave, ... -
> > > > http://home.apache.org/committer-index.html#rmannibucau). -
> > rmannibucau
> > > >
> > > >
> > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > <
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > >
> > > > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > >
> > > >
> > > > Java EE 8 High Performance | Packt<
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > >
> > > > www.packtpub.com<http://www.packtpub.com>
> > > > Get more control of your applications performances in development and
> > > > production and know how to meet your Service Level Agreement on
> > critical
> > > > microservices.
> > > >
> > > >
> > > >
> > > >
> > > > Le mer. 12 mai 2021 à 14:41, Arne Limburg <
> > arne.limburg@openknowledge.de
> > > >
> > > > a
> > > > écrit :
> > > >
> > > > > Sorry for the mangled link (outlook seems to do that automatically
> > for
> > > > > github urls). Here is the plain link:
> > > > >
> > > >
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > > [
> > > >
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > > ]<
> > > >
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > > >
> > > >
> > > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > > >
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > > >
> > > > github.com
> > > > Apache OpenWebBeans meecrowave. Contribute to
> > > > ArneLimburg/openwebbeans-meecrowave development by creating an
> account
> > on
> > > > GitHub.
> > > >
> > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Arne Limburg - Enterprise Architekt
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > OPEN KNOWLEDGE GmbH
> > > > > Poststraße 1, 26122 Oldenburg
> > > > > Mobil: +49 151 - 108 22 942
> > > > > Tel: +49 441 - 4082-154
> > > > > Fax: +49 441 - 4082-111
> > > > > arne.limburg@openknowledge.de
> > > > > www.openknowledge.de<http://www.openknowledge.de<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<>
> > > http://www.openknowledge.de<http://www.openknowledge.de<
> > > http://www.openknowledge.de<http://www.openknowledge.de<
> > > http://www.openknowledge.de<http://www.openknowledge.de>>> <
> > > > https://www.openknowledge.de/>
> > > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > > www.openknowledge.de<http://www.openknowledge.de<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<>
> > > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> IT-Beratung
> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > Standorte
> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > >
> > > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > > www.openknowledge.de<http://www.openknowledge.de<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<>
> > > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> IT-Beratung
> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > Standorte
> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > >
> > > >
> > > > >
> > > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > > > >
> > > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > > > >
> > > > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > > > www.openknowledge.de<http://www.openknowledge.de<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<>
> > > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> IT-Beratung
> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > Standorte
> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > >
> > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > Von: Arne Limburg <ar...@openknowledge.de>
> > > > > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > > > > An: openwebbeans-dev
> > > > > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > > meecowave
> > > > > maven plugin
> > > > >
> > > > > Hi all,
> > > > >
> > > > >
> > > > > I have managed to implement class reloading for meecrowave via our
> > > maven
> > > > > plugin:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > > [
> > > >
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > > ]<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > > >
> > > >
> > > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > > >
> > > > smex-ctp.trendmicro.com
> > > > Apache OpenWebBeans meecrowave. Contribute to
> > > > ArneLimburg/openwebbeans-meecrowave development by creating an
> account
> > on
> > > > GitHub.
> > > >
> > > >
> > > > > [
> > > > >
> > > >
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > > > ]<
> > > > >
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > > [
> > > >
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > > ]<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > > >
> > > >
> > > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > > >
> > > > smex-ctp.trendmicro.com
> > > > Apache OpenWebBeans meecrowave. Contribute to
> > > > ArneLimburg/openwebbeans-meecrowave development by creating an
> account
> > on
> > > > GitHub.
> > > >
> > > >
> > > > > >
> > > > >
> > > > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > > > >
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > > [
> > > >
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > > ]<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > > >
> > > >
> > > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > > >
> > > > smex-ctp.trendmicro.com
> > > > Apache OpenWebBeans meecrowave. Contribute to
> > > > ArneLimburg/openwebbeans-meecrowave development by creating an
> account
> > on
> > > > GitHub.
> > > >
> > > >
> > > > > >
> > > > > smex-ctp.trendmicro.com
> > > > > Apache OpenWebBeans meecrowave. Contribute to
> > > > > ArneLimburg/openwebbeans-meecrowave development by creating an
> > account
> > > on
> > > > > GitHub.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Unfortunately this does not work for the programmatic start of
> > > Meecrowave
> > > > > (i.e. WatcherTest fails). So I added a config property
> > "reloadClasses"
> > > to
> > > > > signal, if class reloading should be done (in the maven plugin
> case)
> > or
> > > > not
> > > > > (in the programmatic case).
> > > > >
> > > > >
> > > > > Do you have any better idea to handle that? Or any concrete idea to
> > > merge
> > > > > that with "reloadGoals"?
> > > > >
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Arne
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Arne Limburg - Enterprise Architekt
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > OPEN KNOWLEDGE GmbH
> > > > > Poststraße 1, 26122 Oldenburg
> > > > > Mobil: +49 151 - 108 22 942
> > > > > Tel: +49 441 - 4082-154
> > > > > Fax: +49 441 - 4082-111
> > > > > arne.limburg@openknowledge.de
> > > > > www.openknowledge.de<http://www.openknowledge.de<<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<<>
> > > http://www.openknowledge.de<http://www.openknowledge.de<<
> > > http://www.openknowledge.de<http://www.openknowledge.de<<
> > > http://www.openknowledge.de<http://www.openknowledge.de<>>
> > > > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > > > > https://www.openknowledge.de/>
> > > > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > > > www.openknowledge.de<http://www.openknowledge.de<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<>
> > > http://www.openknowledge.de<http://www.openknowledge.de<
> > > http://www.openknowledge.de<http://www.openknowledge.de<
> > > http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> > IT-Beratung
> > > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > > Standorte
> > > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > > >
> > > > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > > > www.openknowledge.de<http://www.openknowledge.de<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<>
> > > http://www.openknowledge.de<http://www.openknowledge.de<
> > > http://www.openknowledge.de<http://www.openknowledge.de<
> > > http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> > IT-Beratung
> > > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > > Standorte
> > > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > > >
> > > > >
> > > > >
> > > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > > > >
> > > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > > > >
> > > > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > > > Events | OPEN KNOWLEDGE GmbH< <https://www.openknowledge.de/event/
> >
> >
>

AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Arne Limburg <ar...@openknowledge.de>.
Hi Romain,


the SPA case is interesting anyway. Would be cool, if we could support automatic trigger of transpilation, too.

I think, that would mean additional watch directory configuration: i.e. watch to src/main/webapp, but use

${project.build.directory}/${project.build.finalName} as webapp directory for classpath deployment.
Whenever src/main/webapp changes, trigger a goal for transpilation (i.e. trigger frontend-maven-plugin) and automatically provide the changed JS.

Should be not so hard to implement. I'll think about it.
Cheers,
Arne


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Donnerstag, 13. Mai 2021 09:47
An: openwebbeans-dev
Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Le jeu. 13 mai 2021 à 08:51, Arne Limburg <ar...@openknowledge.de> a
écrit :

> OK, having consulted my pillow I agree with the callback solution.
>
> We then support two use cases (which is great):
>
>   1.  Deploy from Classpath and reload on every class change (reload-goals
> can be empty then)
>   2.  Deploy from WAR and build and reload on every class change (in
> combination with reload-goals). target/classes should be added to the
> watcher in that case (it is automatically done in the first case)
>
> I'll add the tests and push the stuff to master. I also document the two
> scenarios.
>
> Shouldn't we have more sensible defaults for the two cases? I.e. a
> property auto-reload that does a correct setup for both scenarios (setting
> watcher-bouncing to a value greater that 0 and when useClasspathDeployment
> is false, setup reload goals and target/classes)? Or should we even add a
> new goal
>
> meecrowave:dev
>
> which sets up auto-reloading depending on useClasspathDeployment (and
> probably also setting webResourceCached to false)?
>
> That would be a separate commit though.
>

We have a few use cases:
1. Pure web/frontend work (you dev your SPA)
2. Pure backend
3. Both - your case


Dev goal with 3 sounds fine but 1 and 2 should stay possible, even
requiring some conf.
Defaults should be bundle goal friendly probably (as in prod), ie no
watching at all.

Hope it makes sense


> Cheers,
> Arne
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Mittwoch, 12. Mai 2021 22:36
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Clearly for option2 with no new mojo config, no classloader partial support
> only.
> I'd just ensure backward compat in deployment meta and add a test for
> webapp and classpath modes.
>
> Le mer. 12 mai 2021 à 21:56, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > Hi Romain,
> >
> >
> > I have implemented three variants of the solution:
> >
> > -
> >
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-reload-classes
> >
> > -
> >
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-callback
> >
> > -
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-flag
> >
> >
> > The first is the one with the config property, the second is with a
> reload
> > callack and the third is a flag in DeploymentMeta.
> >
> > I personally like the third variant most. And we can configure it such
> > that it reloads the classes just for the deployClasspath case (isn't
> > implemented yet), which is the only case where it really makes sense.
> >
> > But we also can go with the second solution if you want.
> >
> >
> > Btw.: I just want to handle the case where the IDE is configured to
> > directly compile to target/classes and want to trigger an automated
> reload
> > then.
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Arne Limburg <ar...@openknowledge.de>
> > Gesendet: Mittwoch, 12. Mai 2021 21:11
> > An: openwebbeans-dev
> > Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Hi Romain,
> >
> >
> > where would you put such callback?
> >
> > Put in in the class Meecrowave which would delegate it to
> > MeecrowaveContextConfig, which then would delegate it to
> > ReloadOnChangeController?
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Mittwoch, 12. Mai 2021 15:52
> > An: openwebbeans-dev
> > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Le mer. 12 mai 2021 à 15:00, Arne Limburg <arne.limburg@openknowledge.de
> >
> > a
> > écrit :
> >
> > > Hi Romain,
> > >
> > >
> > > The only reason, I did not implement it in the Mojo was, that I could
> not
> > > find an easy way to do it.
> > >
> > > Do you suggest to throw away the ReloadOnChangeController (or move it
> to
> > > the maven plugin),
> > >
> >
> > setReloadCallback(Runnable) sounds like a less radical impl.
> >
> >
> > >
> > > implement file-watching in the mojo and then do reloading in the same
> way
> > > we do it with the "reload" command from System.in?
> > >
> > > My first approaches doing it that way ended up in endless reloading of
> > the
> > > context, because the maven build itself triggered the watcher.
> > >
> >
> > setReloadCallback(() -> { if (reloading.get()) {return;}
> > reloading.set(true);try {reload();}finally{reloading.set(false);} })
> >
> > + small debouncing i guess?
> >
> >
> >
> > >
> > > But that can be circumvented somehow.
> > >
> > >
> > > Basically my current implementation does the same stuff in the
> > > ReloadOnChangeChontroller that is currently done in the Mojo on reload.
> > >
> >
> > Hmm , generally speaking
> >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > [
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> >
> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > [
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > ]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> >
> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> > [
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> >
> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > github.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > rarely works since it is only about embedded case and reload will
> > stop.start the classloader anyway.
> > What I can see missing is target/classes if not built before launching
> the
> > first time. I don't think we need to handle that case but if you want you
> > can just do an addUrl or addRepository on the classloader I guess.
> > Note that thread.setContextClassLoader shouldn't be done (seems you only
> do
> > to getContextClassLoader after) cause it can break but setting the
> > classloader can be on the context (same as you do except thread is not
> > touched).
> > An option can be to let the Loader handle the lifecycle properly instead
> of
> > using providedLoader, this way reload will work - but once again, only
> for
> > deployclasspath case and not webapp cases.
> >
> > Hope it makes sense.
> >
> >
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Romain Manni-Bucau <rm...@gmail.com>
> > > Gesendet: Mittwoch, 12. Mai 2021 14:46
> > > An: openwebbeans-dev
> > > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > > meecowave maven plugin
> > >
> > > Hi Arne,
> > >
> > > What about the proposal on jira?
> > > Idea is we already have redeploy command but currently it is made
> > > incompatible (unsupported) with the watcher.
> > > Guess if both are configured we can make both working together, does
> look
> > > way simpler than making the classloading implementation right (you only
> > > handled meecrowave custom loader case but not tomcat case + it breaks
> > most
> > > of cdi usage AFAIK whereas redeploy should stay fast and fully
> functional
> > > without weird case, you loose state but all is "normal" then).
> > >
> > > wdyt?
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > >
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > > | Old Blog
> > > Index<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > > >
> > > smex-ctp.trendmicro.com
> > > An opiniated IT blogging.
> > >
> > >
> > > <
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> >
> >
> > > | Github <
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> > smex-ctp.trendmicro.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> >
> > > |
> > > [
> > >
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> >
> >
> > > >
> > >
> > > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > <
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > >
> > > smex-ctp.trendmicro.com
> > > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > >
> > > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > >
> > >
> > > rmannibucau (Romain Manni-Bucau) · GitHub<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > > Geronimo, Meecrowave, ... -
> > > http://home.apache.org/committer-index.html#rmannibucau). -
> rmannibucau
> > >
> > >
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > >
> > > Java EE 8 High Performance | Packt<
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > > www.packtpub.com<http://www.packtpub.com>
> > > Get more control of your applications performances in development and
> > > production and know how to meet your Service Level Agreement on
> critical
> > > microservices.
> > >
> > >
> > >
> > >
> > > Le mer. 12 mai 2021 à 14:41, Arne Limburg <
> arne.limburg@openknowledge.de
> > >
> > > a
> > > écrit :
> > >
> > > > Sorry for the mangled link (outlook seems to do that automatically
> for
> > > > github urls). Here is the plain link:
> > > >
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > >
> > > github.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > >
> > > >
> > > > --
> > > >
> > > > Arne Limburg - Enterprise Architekt
> > > >
> > > >
> > > >
> > > >
> > > > OPEN KNOWLEDGE GmbH
> > > > Poststraße 1, 26122 Oldenburg
> > > > Mobil: +49 151 - 108 22 942
> > > > Tel: +49 441 - 4082-154
> > > > Fax: +49 441 - 4082-111
> > > > arne.limburg@openknowledge.de
> > > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de>>> <
> > > https://www.openknowledge.de/>
> > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > > >
> > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > > >
> > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > > >
> > > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > Von: Arne Limburg <ar...@openknowledge.de>
> > > > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > > > An: openwebbeans-dev
> > > > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave
> > > > maven plugin
> > > >
> > > > Hi all,
> > > >
> > > >
> > > > I have managed to implement class reloading for meecrowave via our
> > maven
> > > > plugin:
> > > >
> > > >
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > > [
> > > >
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > > ]<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > > >
> > > >
> > > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > > >
> > > > smex-ctp.trendmicro.com
> > > > Apache OpenWebBeans meecrowave. Contribute to
> > > > ArneLimburg/openwebbeans-meecrowave development by creating an
> account
> > on
> > > > GitHub.
> > > >
> > > >
> > > >
> > > >
> > > > Unfortunately this does not work for the programmatic start of
> > Meecrowave
> > > > (i.e. WatcherTest fails). So I added a config property
> "reloadClasses"
> > to
> > > > signal, if class reloading should be done (in the maven plugin case)
> or
> > > not
> > > > (in the programmatic case).
> > > >
> > > >
> > > > Do you have any better idea to handle that? Or any concrete idea to
> > merge
> > > > that with "reloadGoals"?
> > > >
> > > >
> > > > Cheers,
> > > >
> > > > Arne
> > > >
> > > >
> > > > --
> > > >
> > > > Arne Limburg - Enterprise Architekt
> > > >
> > > >
> > > >
> > > >
> > > > OPEN KNOWLEDGE GmbH
> > > > Poststraße 1, 26122 Oldenburg
> > > > Mobil: +49 151 - 108 22 942
> > > > Tel: +49 441 - 4082-154
> > > > Fax: +49 441 - 4082-111
> > > > arne.limburg@openknowledge.de
> > > > www.openknowledge.de<http://www.openknowledge.de<<<<http://www.openknowledge.de<http://www.openknowledge.de<<<>
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<<
> > http://www.openknowledge.de<http://www.openknowledge.de<<
> > http://www.openknowledge.de<http://www.openknowledge.de<>>
> > > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > > > https://www.openknowledge.de/>
> > > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> IT-Beratung
> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > Standorte
> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > >
> > > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> IT-Beratung
> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > Standorte
> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > >
> > > >
> > > >
> > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > > >
> > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > > >
> > > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > > Events | OPEN KNOWLEDGE GmbH< <https://www.openknowledge.de/event/>
>

Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Le jeu. 13 mai 2021 à 08:51, Arne Limburg <ar...@openknowledge.de> a
écrit :

> OK, having consulted my pillow I agree with the callback solution.
>
> We then support two use cases (which is great):
>
>   1.  Deploy from Classpath and reload on every class change (reload-goals
> can be empty then)
>   2.  Deploy from WAR and build and reload on every class change (in
> combination with reload-goals). target/classes should be added to the
> watcher in that case (it is automatically done in the first case)
>
> I'll add the tests and push the stuff to master. I also document the two
> scenarios.
>
> Shouldn't we have more sensible defaults for the two cases? I.e. a
> property auto-reload that does a correct setup for both scenarios (setting
> watcher-bouncing to a value greater that 0 and when useClasspathDeployment
> is false, setup reload goals and target/classes)? Or should we even add a
> new goal
>
> meecrowave:dev
>
> which sets up auto-reloading depending on useClasspathDeployment (and
> probably also setting webResourceCached to false)?
>
> That would be a separate commit though.
>

We have a few use cases:
1. Pure web/frontend work (you dev your SPA)
2. Pure backend
3. Both - your case


Dev goal with 3 sounds fine but 1 and 2 should stay possible, even
requiring some conf.
Defaults should be bundle goal friendly probably (as in prod), ie no
watching at all.

Hope it makes sense


> Cheers,
> Arne
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de <https://www.openknowledge.de/>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Mittwoch, 12. Mai 2021 22:36
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Clearly for option2 with no new mojo config, no classloader partial support
> only.
> I'd just ensure backward compat in deployment meta and add a test for
> webapp and classpath modes.
>
> Le mer. 12 mai 2021 à 21:56, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > Hi Romain,
> >
> >
> > I have implemented three variants of the solution:
> >
> > -
> >
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-reload-classes
> >
> > -
> >
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-callback
> >
> > -
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-flag
> >
> >
> > The first is the one with the config property, the second is with a
> reload
> > callack and the third is a flag in DeploymentMeta.
> >
> > I personally like the third variant most. And we can configure it such
> > that it reloads the classes just for the deployClasspath case (isn't
> > implemented yet), which is the only case where it really makes sense.
> >
> > But we also can go with the second solution if you want.
> >
> >
> > Btw.: I just want to handle the case where the IDE is configured to
> > directly compile to target/classes and want to trigger an automated
> reload
> > then.
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Arne Limburg <ar...@openknowledge.de>
> > Gesendet: Mittwoch, 12. Mai 2021 21:11
> > An: openwebbeans-dev
> > Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Hi Romain,
> >
> >
> > where would you put such callback?
> >
> > Put in in the class Meecrowave which would delegate it to
> > MeecrowaveContextConfig, which then would delegate it to
> > ReloadOnChangeController?
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Mittwoch, 12. Mai 2021 15:52
> > An: openwebbeans-dev
> > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Le mer. 12 mai 2021 à 15:00, Arne Limburg <arne.limburg@openknowledge.de
> >
> > a
> > écrit :
> >
> > > Hi Romain,
> > >
> > >
> > > The only reason, I did not implement it in the Mojo was, that I could
> not
> > > find an easy way to do it.
> > >
> > > Do you suggest to throw away the ReloadOnChangeController (or move it
> to
> > > the maven plugin),
> > >
> >
> > setReloadCallback(Runnable) sounds like a less radical impl.
> >
> >
> > >
> > > implement file-watching in the mojo and then do reloading in the same
> way
> > > we do it with the "reload" command from System.in?
> > >
> > > My first approaches doing it that way ended up in endless reloading of
> > the
> > > context, because the maven build itself triggered the watcher.
> > >
> >
> > setReloadCallback(() -> { if (reloading.get()) {return;}
> > reloading.set(true);try {reload();}finally{reloading.set(false);} })
> >
> > + small debouncing i guess?
> >
> >
> >
> > >
> > > But that can be circumvented somehow.
> > >
> > >
> > > Basically my current implementation does the same stuff in the
> > > ReloadOnChangeChontroller that is currently done in the Mojo on reload.
> > >
> >
> > Hmm , generally speaking
> >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > [
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> >
> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > [
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > ]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> >
> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> > [
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> >
> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > github.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > rarely works since it is only about embedded case and reload will
> > stop.start the classloader anyway.
> > What I can see missing is target/classes if not built before launching
> the
> > first time. I don't think we need to handle that case but if you want you
> > can just do an addUrl or addRepository on the classloader I guess.
> > Note that thread.setContextClassLoader shouldn't be done (seems you only
> do
> > to getContextClassLoader after) cause it can break but setting the
> > classloader can be on the context (same as you do except thread is not
> > touched).
> > An option can be to let the Loader handle the lifecycle properly instead
> of
> > using providedLoader, this way reload will work - but once again, only
> for
> > deployclasspath case and not webapp cases.
> >
> > Hope it makes sense.
> >
> >
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Romain Manni-Bucau <rm...@gmail.com>
> > > Gesendet: Mittwoch, 12. Mai 2021 14:46
> > > An: openwebbeans-dev
> > > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > > meecowave maven plugin
> > >
> > > Hi Arne,
> > >
> > > What about the proposal on jira?
> > > Idea is we already have redeploy command but currently it is made
> > > incompatible (unsupported) with the watcher.
> > > Guess if both are configured we can make both working together, does
> look
> > > way simpler than making the classloading implementation right (you only
> > > handled meecrowave custom loader case but not tomcat case + it breaks
> > most
> > > of cdi usage AFAIK whereas redeploy should stay fast and fully
> functional
> > > without weird case, you loose state but all is "normal" then).
> > >
> > > wdyt?
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > >
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > > | Old Blog
> > > Index<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > > >
> > > smex-ctp.trendmicro.com
> > > An opiniated IT blogging.
> > >
> > >
> > > <
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> >
> >
> > > | Github <
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> > smex-ctp.trendmicro.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> >
> > > |
> > > [
> > >
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> >
> >
> > > >
> > >
> > > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > <
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > >
> > > smex-ctp.trendmicro.com
> > > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > >
> > > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > >
> > >
> > > rmannibucau (Romain Manni-Bucau) · GitHub<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > > Geronimo, Meecrowave, ... -
> > > http://home.apache.org/committer-index.html#rmannibucau). -
> rmannibucau
> > >
> > >
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > >
> > > Java EE 8 High Performance | Packt<
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > > www.packtpub.com<http://www.packtpub.com>
> > > Get more control of your applications performances in development and
> > > production and know how to meet your Service Level Agreement on
> critical
> > > microservices.
> > >
> > >
> > >
> > >
> > > Le mer. 12 mai 2021 à 14:41, Arne Limburg <
> arne.limburg@openknowledge.de
> > >
> > > a
> > > écrit :
> > >
> > > > Sorry for the mangled link (outlook seems to do that automatically
> for
> > > > github urls). Here is the plain link:
> > > >
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > >
> > > github.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > >
> > > >
> > > > --
> > > >
> > > > Arne Limburg - Enterprise Architekt
> > > >
> > > >
> > > >
> > > >
> > > > OPEN KNOWLEDGE GmbH
> > > > Poststraße 1, 26122 Oldenburg
> > > > Mobil: +49 151 - 108 22 942
> > > > Tel: +49 441 - 4082-154
> > > > Fax: +49 441 - 4082-111
> > > > arne.limburg@openknowledge.de
> > > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de>>> <
> > > https://www.openknowledge.de/>
> > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > > >
> > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > > >
> > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > > >
> > > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > Von: Arne Limburg <ar...@openknowledge.de>
> > > > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > > > An: openwebbeans-dev
> > > > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave
> > > > maven plugin
> > > >
> > > > Hi all,
> > > >
> > > >
> > > > I have managed to implement class reloading for meecrowave via our
> > maven
> > > > plugin:
> > > >
> > > >
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > > [
> > > >
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > > ]<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > > >
> > > >
> > > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > > >
> > > > smex-ctp.trendmicro.com
> > > > Apache OpenWebBeans meecrowave. Contribute to
> > > > ArneLimburg/openwebbeans-meecrowave development by creating an
> account
> > on
> > > > GitHub.
> > > >
> > > >
> > > >
> > > >
> > > > Unfortunately this does not work for the programmatic start of
> > Meecrowave
> > > > (i.e. WatcherTest fails). So I added a config property
> "reloadClasses"
> > to
> > > > signal, if class reloading should be done (in the maven plugin case)
> or
> > > not
> > > > (in the programmatic case).
> > > >
> > > >
> > > > Do you have any better idea to handle that? Or any concrete idea to
> > merge
> > > > that with "reloadGoals"?
> > > >
> > > >
> > > > Cheers,
> > > >
> > > > Arne
> > > >
> > > >
> > > > --
> > > >
> > > > Arne Limburg - Enterprise Architekt
> > > >
> > > >
> > > >
> > > >
> > > > OPEN KNOWLEDGE GmbH
> > > > Poststraße 1, 26122 Oldenburg
> > > > Mobil: +49 151 - 108 22 942
> > > > Tel: +49 441 - 4082-154
> > > > Fax: +49 441 - 4082-111
> > > > arne.limburg@openknowledge.de
> > > > www.openknowledge.de<http://www.openknowledge.de<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<<
> > http://www.openknowledge.de<http://www.openknowledge.de<<
> > http://www.openknowledge.de<http://www.openknowledge.de<>>
> > > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > > > https://www.openknowledge.de/>
> > > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> IT-Beratung
> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > Standorte
> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > >
> > > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> IT-Beratung
> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > Standorte
> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > >
> > > >
> > > >
> > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > > >
> > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > > >
> > > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > > Events | OPEN KNOWLEDGE GmbH< <https://www.openknowledge.de/event/>
>

AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Arne Limburg <ar...@openknowledge.de>.
OK, having consulted my pillow I agree with the callback solution.

We then support two use cases (which is great):

  1.  Deploy from Classpath and reload on every class change (reload-goals can be empty then)
  2.  Deploy from WAR and build and reload on every class change (in combination with reload-goals). target/classes should be added to the watcher in that case (it is automatically done in the first case)

I'll add the tests and push the stuff to master. I also document the two scenarios.

Shouldn't we have more sensible defaults for the two cases? I.e. a property auto-reload that does a correct setup for both scenarios (setting watcher-bouncing to a value greater that 0 and when useClasspathDeployment is false, setup reload goals and target/classes)? Or should we even add a new goal

meecrowave:dev

which sets up auto-reloading depending on useClasspathDeployment (and probably also setting webResourceCached to false)?

That would be a separate commit though.

Cheers,
Arne

--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Mittwoch, 12. Mai 2021 22:36
An: openwebbeans-dev
Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Clearly for option2 with no new mojo config, no classloader partial support
only.
I'd just ensure backward compat in deployment meta and add a test for
webapp and classpath modes.

Le mer. 12 mai 2021 à 21:56, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Hi Romain,
>
>
> I have implemented three variants of the solution:
>
> -
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-reload-classes
>
> -
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-callback
>
> - github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-flag
>
>
> The first is the one with the config property, the second is with a reload
> callack and the third is a flag in DeploymentMeta.
>
> I personally like the third variant most. And we can configure it such
> that it reloads the classes just for the deployClasspath case (isn't
> implemented yet), which is the only case where it really makes sense.
>
> But we also can go with the second solution if you want.
>
>
> Btw.: I just want to handle the case where the IDE is configured to
> directly compile to target/classes and want to trigger an automated reload
> then.
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
>
>
>
>
> ________________________________
> Von: Arne Limburg <ar...@openknowledge.de>
> Gesendet: Mittwoch, 12. Mai 2021 21:11
> An: openwebbeans-dev
> Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Hi Romain,
>
>
> where would you put such callback?
>
> Put in in the class Meecrowave which would delegate it to
> MeecrowaveContextConfig, which then would delegate it to
> ReloadOnChangeController?
>
>
> Cheers,
>
> Arne
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Mittwoch, 12. Mai 2021 15:52
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Le mer. 12 mai 2021 à 15:00, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > Hi Romain,
> >
> >
> > The only reason, I did not implement it in the Mojo was, that I could not
> > find an easy way to do it.
> >
> > Do you suggest to throw away the ReloadOnChangeController (or move it to
> > the maven plugin),
> >
>
> setReloadCallback(Runnable) sounds like a less radical impl.
>
>
> >
> > implement file-watching in the mojo and then do reloading in the same way
> > we do it with the "reload" command from System.in?
> >
> > My first approaches doing it that way ended up in endless reloading of
> the
> > context, because the maven build itself triggered the watcher.
> >
>
> setReloadCallback(() -> { if (reloading.get()) {return;}
> reloading.set(true);try {reload();}finally{reloading.set(false);} })
>
> + small debouncing i guess?
>
>
>
> >
> > But that can be circumvented somehow.
> >
> >
> > Basically my current implementation does the same stuff in the
> > ReloadOnChangeChontroller that is currently done in the Mojo on reload.
> >
>
> Hmm , generally speaking
>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> [
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
>
> MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> [
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> ]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
>
> MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
> [
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
>
> MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> github.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> rarely works since it is only about embedded case and reload will
> stop.start the classloader anyway.
> What I can see missing is target/classes if not built before launching the
> first time. I don't think we need to handle that case but if you want you
> can just do an addUrl or addRepository on the classloader I guess.
> Note that thread.setContextClassLoader shouldn't be done (seems you only do
> to getContextClassLoader after) cause it can break but setting the
> classloader can be on the context (same as you do except thread is not
> touched).
> An option can be to let the Loader handle the lifecycle properly instead of
> using providedLoader, this way reload will work - but once again, only for
> deployclasspath case and not webapp cases.
>
> Hope it makes sense.
>
>
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Mittwoch, 12. Mai 2021 14:46
> > An: openwebbeans-dev
> > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Hi Arne,
> >
> > What about the proposal on jira?
> > Idea is we already have redeploy command but currently it is made
> > incompatible (unsupported) with the watcher.
> > Guess if both are configured we can make both working together, does look
> > way simpler than making the classloading implementation right (you only
> > handled meecrowave custom loader case but not tomcat case + it breaks
> most
> > of cdi usage AFAIK whereas redeploy should stay fast and fully functional
> > without weird case, you loose state but all is "normal" then).
> >
> > wdyt?
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> > | Old Blog
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> <
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> smex-ctp.trendmicro.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>
>
> > | Github <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
>
> rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> smex-ctp.trendmicro.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
>
> > |
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> <
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> smex-ctp.trendmicro.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>
>
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> > smex-ctp.trendmicro.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> >
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> > Java EE 8 High Performance | Packt<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > www.packtpub.com<http://www.packtpub.com>
> > Get more control of your applications performances in development and
> > production and know how to meet your Service Level Agreement on critical
> > microservices.
> >
> >
> >
> >
> > Le mer. 12 mai 2021 à 14:41, Arne Limburg <arne.limburg@openknowledge.de
> >
> > a
> > écrit :
> >
> > > Sorry for the mangled link (outlook seems to do that automatically for
> > > github urls). Here is the plain link:
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > >
> > github.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Arne Limburg <ar...@openknowledge.de>
> > > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > > An: openwebbeans-dev
> > > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave
> > > maven plugin
> > >
> > > Hi all,
> > >
> > >
> > > I have managed to implement class reloading for meecrowave via our
> maven
> > > plugin:
> > >
> > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > >
> > >
> > > Unfortunately this does not work for the programmatic start of
> Meecrowave
> > > (i.e. WatcherTest fails). So I added a config property "reloadClasses"
> to
> > > signal, if class reloading should be done (in the maven plugin case) or
> > not
> > > (in the programmatic case).
> > >
> > >
> > > Do you have any better idea to handle that? Or any concrete idea to
> merge
> > > that with "reloadGoals"?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > > https://www.openknowledge.de/>
> > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > Events | OPEN KNOWLEDGE GmbH< <https://www.openknowledge.de/event/>

Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Some pointer (from a real computer ;)):

https://github.com/apache/openwebbeans-meecrowave/blob/master/meecrowave-core/src/test/java/org/apache/meecrowave/MeecrowaveTest.java#L146
https://github.com/apache/openwebbeans-meecrowave/blob/master/meecrowave-core/src/test/java/org/apache/meecrowave/MeecrowaveTest.java#L181

Importing these tests adding reloadable capabilities and ensuring resource
only case still work sounds sufficient.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 13 mai 2021 à 15:02, Romain Manni-Bucau <rm...@gmail.com> a
écrit :

>
>
> Le jeu. 13 mai 2021 à 14:48, Arne Limburg <ar...@openknowledge.de>
> a écrit :
>
>> Hmm, I am trying to write that tests, and they are green, but I wonder
>> why.
>>
>
> Can be that our asserts are not strong enough.
>
>
>
>> I always thought it is about deploying a war file. But I set
>> "useClasspathDeployment" to false in MeecrowaveRunMojoTest and it stays
>> green even though there is no war to deploy.
>>
>
> Guess it only tests docbase and server is up right now
>
> Look core tests which have more use cases maybe
>
>
>
>> So what exactly is the webapp mode about? Does such test suffice (besides
>> the existing one) to ensure backward compatibility?
>>
>
> 1. Deploy a war, change some class, expect reload to change it (tip: with
> asm change some output string ;))
> 2. Same without a war
> 3. Only resource watch
>
>
>
>>
>> Cheers,
>>
>> Arne
>>
>>
>> P.S.: I try to add a test for the reload behavior, too
>>
>>
>> --
>>
>> Arne Limburg - Enterprise Architekt
>>
>>
>>
>>
>> OPEN KNOWLEDGE GmbH
>> Poststraße 1, 26122 Oldenburg
>> Mobil: +49 151 - 108 22 942
>> Tel: +49 441 - 4082-154
>> Fax: +49 441 - 4082-111
>> arne.limburg@openknowledge.de
>> www.openknowledge.de <https://www.openknowledge.de/>
>>
>> Registergericht: Amtsgericht Oldenburg, HRB 4670
>> Geschäftsführer: Lars Röwekamp, Jens Schumann
>>
>> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>>
>> Zu unseren Events<https://www.openknowledge.de/event/>
>>
>>
>>
>>
>>
>> ________________________________
>> Von: Romain Manni-Bucau <rm...@gmail.com>
>> Gesendet: Mittwoch, 12. Mai 2021 22:36
>> An: openwebbeans-dev
>> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
>> meecowave maven plugin
>>
>> Clearly for option2 with no new mojo config, no classloader partial
>> support
>> only.
>> I'd just ensure backward compat in deployment meta and add a test for
>> webapp and classpath modes.
>>
>> Le mer. 12 mai 2021 à 21:56, Arne Limburg <ar...@openknowledge.de>
>> a
>> écrit :
>>
>> > Hi Romain,
>> >
>> >
>> > I have implemented three variants of the solution:
>> >
>> > -
>> >
>> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-reload-classes
>> >
>> > -
>> >
>> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-callback
>> >
>> > -
>> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-flag
>> >
>> >
>> > The first is the one with the config property, the second is with a
>> reload
>> > callack and the third is a flag in DeploymentMeta.
>> >
>> > I personally like the third variant most. And we can configure it such
>> > that it reloads the classes just for the deployClasspath case (isn't
>> > implemented yet), which is the only case where it really makes sense.
>> >
>> > But we also can go with the second solution if you want.
>> >
>> >
>> > Btw.: I just want to handle the case where the IDE is configured to
>> > directly compile to target/classes and want to trigger an automated
>> reload
>> > then.
>> >
>> >
>> > --
>> >
>> > Arne Limburg - Enterprise Architekt
>> >
>> >
>> >
>> >
>> > OPEN KNOWLEDGE GmbH
>> > Poststraße 1, 26122 Oldenburg
>> > Mobil: +49 151 - 108 22 942
>> > Tel: +49 441 - 4082-154
>> > Fax: +49 441 - 4082-111
>> > arne.limburg@openknowledge.de
>> > www.openknowledge.de<http://www.openknowledge.de> <
>> https://www.openknowledge.de/>
>> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
>> www.openknowledge.de
>> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
>> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
>> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>>
>> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
>> www.openknowledge.de
>> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
>> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
>> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>>
>>
>> >
>> > Registergericht: Amtsgericht Oldenburg, HRB 4670
>> > Geschäftsführer: Lars Röwekamp, Jens Schumann
>> >
>> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
>> >
>> > Zu unseren Events<https://www.openknowledge.de/event/>
>> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
>> www.openknowledge.de
>> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
>> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
>> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>>
>>
>> >
>> >
>> >
>> >
>> >
>> > ________________________________
>> > Von: Arne Limburg <ar...@openknowledge.de>
>> > Gesendet: Mittwoch, 12. Mai 2021 21:11
>> > An: openwebbeans-dev
>> > Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
>> > meecowave maven plugin
>> >
>> > Hi Romain,
>> >
>> >
>> > where would you put such callback?
>> >
>> > Put in in the class Meecrowave which would delegate it to
>> > MeecrowaveContextConfig, which then would delegate it to
>> > ReloadOnChangeController?
>> >
>> >
>> > Cheers,
>> >
>> > Arne
>> >
>> >
>> > --
>> >
>> > Arne Limburg - Enterprise Architekt
>> >
>> >
>> >
>> >
>> > OPEN KNOWLEDGE GmbH
>> > Poststraße 1, 26122 Oldenburg
>> > Mobil: +49 151 - 108 22 942
>> > Tel: +49 441 - 4082-154
>> > Fax: +49 441 - 4082-111
>> > arne.limburg@openknowledge.de
>> > www.openknowledge.de<http://www.openknowledge.de<
>> http://www.openknowledge.de<http://www.openknowledge.de>> <
>> > https://www.openknowledge.de/>
>> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
>> > www.openknowledge.de<http://www.openknowledge.de>
>> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
>> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
>> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> >
>> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
>> > www.openknowledge.de<http://www.openknowledge.de>
>> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
>> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
>> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> >
>> >
>> >
>> > Registergericht: Amtsgericht Oldenburg, HRB 4670
>> > Geschäftsführer: Lars Röwekamp, Jens Schumann
>> >
>> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
>> >
>> > Zu unseren Events<https://www.openknowledge.de/event/>
>> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
>> > www.openknowledge.de<http://www.openknowledge.de>
>> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
>> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
>> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > ________________________________
>> > Von: Romain Manni-Bucau <rm...@gmail.com>
>> > Gesendet: Mittwoch, 12. Mai 2021 15:52
>> > An: openwebbeans-dev
>> > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
>> > meecowave maven plugin
>> >
>> > Le mer. 12 mai 2021 à 15:00, Arne Limburg <
>> arne.limburg@openknowledge.de>
>> > a
>> > écrit :
>> >
>> > > Hi Romain,
>> > >
>> > >
>> > > The only reason, I did not implement it in the Mojo was, that I could
>> not
>> > > find an easy way to do it.
>> > >
>> > > Do you suggest to throw away the ReloadOnChangeController (or move it
>> to
>> > > the maven plugin),
>> > >
>> >
>> > setReloadCallback(Runnable) sounds like a less radical impl.
>> >
>> >
>> > >
>> > > implement file-watching in the mojo and then do reloading in the same
>> way
>> > > we do it with the "reload" command from System.in?
>> > >
>> > > My first approaches doing it that way ended up in endless reloading of
>> > the
>> > > context, because the maven build itself triggered the watcher.
>> > >
>> >
>> > setReloadCallback(() -> { if (reloading.get()) {return;}
>> > reloading.set(true);try {reload();}finally{reloading.set(false);} })
>> >
>> > + small debouncing i guess?
>> >
>> >
>> >
>> > >
>> > > But that can be circumvented somehow.
>> > >
>> > >
>> > > Basically my current implementation does the same stuff in the
>> > > ReloadOnChangeChontroller that is currently done in the Mojo on
>> reload.
>> > >
>> >
>> > Hmm , generally speaking
>> >
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
>> > [
>> >
>> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
>> > ]<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
>> > >
>> >
>> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
>> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
>> > >
>> > smex-ctp.trendmicro.com
>> > Apache OpenWebBeans meecrowave. Contribute to
>> > ArneLimburg/openwebbeans-meecrowave development by creating an account
>> on
>> > GitHub.
>> >
>> >
>> > [
>> >
>> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
>> > ]<
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
>> > >
>> >
>> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
>> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
>> > >
>> > [
>> >
>> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
>> > ]<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
>> > >
>> >
>> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
>> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
>> > >
>> > smex-ctp.trendmicro.com
>> > Apache OpenWebBeans meecrowave. Contribute to
>> > ArneLimburg/openwebbeans-meecrowave development by creating an account
>> on
>> > GitHub.
>> >
>> >
>> > github.com
>> > Apache OpenWebBeans meecrowave. Contribute to
>> > ArneLimburg/openwebbeans-meecrowave development by creating an account
>> on
>> > GitHub.
>> >
>> >
>> > rarely works since it is only about embedded case and reload will
>> > stop.start the classloader anyway.
>> > What I can see missing is target/classes if not built before launching
>> the
>> > first time. I don't think we need to handle that case but if you want
>> you
>> > can just do an addUrl or addRepository on the classloader I guess.
>> > Note that thread.setContextClassLoader shouldn't be done (seems you
>> only do
>> > to getContextClassLoader after) cause it can break but setting the
>> > classloader can be on the context (same as you do except thread is not
>> > touched).
>> > An option can be to let the Loader handle the lifecycle properly
>> instead of
>> > using providedLoader, this way reload will work - but once again, only
>> for
>> > deployclasspath case and not webapp cases.
>> >
>> > Hope it makes sense.
>> >
>> >
>> > >
>> > >
>> > > Cheers,
>> > >
>> > > Arne
>> > >
>> > >
>> > > --
>> > >
>> > > Arne Limburg - Enterprise Architekt
>> > >
>> > >
>> > >
>> > >
>> > > OPEN KNOWLEDGE GmbH
>> > > Poststraße 1, 26122 Oldenburg
>> > > Mobil: +49 151 - 108 22 942
>> > > Tel: +49 441 - 4082-154
>> > > Fax: +49 441 - 4082-111
>> > > arne.limburg@openknowledge.de
>> > > www.openknowledge.de<http://www.openknowledge.de<<
>> http://www.openknowledge.de<http://www.openknowledge.de<>
>> > http://www.openknowledge.de<http://www.openknowledge.de>> <
>> > https://www.openknowledge.de/>
>> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
>> > www.openknowledge.de<http://www.openknowledge.de<
>> http://www.openknowledge.de<http://www.openknowledge.de>>
>> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
>> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
>> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> >
>> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
>> > www.openknowledge.de<http://www.openknowledge.de<
>> http://www.openknowledge.de<http://www.openknowledge.de>>
>> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
>> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
>> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> >
>> >
>> > >
>> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
>> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
>> > >
>> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
>> > >
>> > > Zu unseren Events<https://www.openknowledge.de/event/>
>> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
>> > www.openknowledge.de<http://www.openknowledge.de<
>> http://www.openknowledge.de<http://www.openknowledge.de>>
>> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
>> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
>> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> >
>> >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > ________________________________
>> > > Von: Romain Manni-Bucau <rm...@gmail.com>
>> > > Gesendet: Mittwoch, 12. Mai 2021 14:46
>> > > An: openwebbeans-dev
>> > > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
>> > > meecowave maven plugin
>> > >
>> > > Hi Arne,
>> > >
>> > > What about the proposal on jira?
>> > > Idea is we already have redeploy command but currently it is made
>> > > incompatible (unsupported) with the watcher.
>> > > Guess if both are configured we can make both working together, does
>> look
>> > > way simpler than making the classloading implementation right (you
>> only
>> > > handled meecrowave custom loader case but not tomcat case + it breaks
>> > most
>> > > of cdi usage AFAIK whereas redeploy should stay fast and fully
>> functional
>> > > without weird case, you loose state but all is "normal" then).
>> > >
>> > > wdyt?
>> > >
>> > > Romain Manni-Bucau
>> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>> > > <
>> > >
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
>> > >
>> > Index<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
>> > >
>> > smex-ctp.trendmicro.com
>> > An opiniated IT blogging.
>> >
>> >
>> > > | Old Blog
>> > > Index<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
>> > Index<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
>> > >
>> > smex-ctp.trendmicro.com
>> > An opiniated IT blogging.
>> >
>> >
>> > > >
>> > > smex-ctp.trendmicro.com
>> > > An opiniated IT blogging.
>> > >
>> > >
>> > > <
>> > >
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
>> > >
>> > [
>> >
>> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393
>> > ]<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
>> > >
>> >
>> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>> > <
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
>> > >
>> > smex-ctp.trendmicro.com
>> > New posts here >>>
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>> >
>> >
>> > > | Github <
>> > >
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
>> > >
>> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
>> > >
>> >
>> > rmannibucau (Romain Manni-Bucau) · GitHub<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
>> > >
>> > smex-ctp.trendmicro.com
>> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
>> > Geronimo, Meecrowave, ... -
>> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>> >
>> >
>> > > |
>> > > [
>> > >
>> >
>> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
>> > > ]<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
>> > [
>> >
>> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423
>> > ]<
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
>> > >
>> >
>> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>> > <
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
>> > >
>> > smex-ctp.trendmicro.com
>> > New posts here >>>
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>> >
>> >
>> > > >
>> > >
>> > > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
>> > >
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>> > <
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
>> > > >
>> > > smex-ctp.trendmicro.com
>> > > New posts here >>>
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>> > >
>> > > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
>> > > >
>> > >
>> > > rmannibucau (Romain Manni-Bucau) · GitHub<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
>> > > >
>> > > smex-ctp.trendmicro.com
>> > > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
>> > > Geronimo, Meecrowave, ... -
>> > > http://home.apache.org/committer-index.html#rmannibucau). -
>> rmannibucau
>> > >
>> > >
>> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
>> > > <
>> > >
>> >
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>> > > >
>> > > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
>> > >
>> >
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>> > > >
>> > >
>> > > Java EE 8 High Performance | Packt<
>> > >
>> >
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>> > > >
>> > > www.packtpub.com<http://www.packtpub.com>
>> > > Get more control of your applications performances in development and
>> > > production and know how to meet your Service Level Agreement on
>> critical
>> > > microservices.
>> > >
>> > >
>> > >
>> > >
>> > > Le mer. 12 mai 2021 à 14:41, Arne Limburg <
>> arne.limburg@openknowledge.de
>> > >
>> > > a
>> > > écrit :
>> > >
>> > > > Sorry for the mangled link (outlook seems to do that automatically
>> for
>> > > > github urls). Here is the plain link:
>> > > >
>> > >
>> >
>> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
>> > > [
>> > >
>> >
>> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
>> > > ]<
>> > >
>> >
>> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
>> > > >
>> > >
>> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
>> > >
>> >
>> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
>> > > >
>> > > github.com
>> > > Apache OpenWebBeans meecrowave. Contribute to
>> > > ArneLimburg/openwebbeans-meecrowave development by creating an
>> account on
>> > > GitHub.
>> > >
>> > >
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > Arne Limburg - Enterprise Architekt
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > OPEN KNOWLEDGE GmbH
>> > > > Poststraße 1, 26122 Oldenburg
>> > > > Mobil: +49 151 - 108 22 942
>> > > > Tel: +49 441 - 4082-154
>> > > > Fax: +49 441 - 4082-111
>> > > > arne.limburg@openknowledge.de
>> > > > www.openknowledge.de<http://www.openknowledge.de<<
>> http://www.openknowledge.de<http://www.openknowledge.de<>
>> > http://www.openknowledge.de<http://www.openknowledge.de<
>> > http://www.openknowledge.de<http://www.openknowledge.de<
>> > http://www.openknowledge.de<http://www.openknowledge.de>>> <
>> > > https://www.openknowledge.de/>
>> > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
>> > > www.openknowledge.de<http://www.openknowledge.de<<
>> http://www.openknowledge.de<http://www.openknowledge.de<>
>> > http://www.openknowledge.de<http://www.openknowledge.de>>
>> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
>> IT-Beratung
>> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
>> Standorte
>> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> > >
>> > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
>> > > www.openknowledge.de<http://www.openknowledge.de<<
>> http://www.openknowledge.de<http://www.openknowledge.de<>
>> > http://www.openknowledge.de<http://www.openknowledge.de>>
>> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
>> IT-Beratung
>> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
>> Standorte
>> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> > >
>> > >
>> > > >
>> > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
>> > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
>> > > >
>> > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
>> > > >
>> > > > Zu unseren Events<https://www.openknowledge.de/event/>
>> > > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
>> > > www.openknowledge.de<http://www.openknowledge.de<<
>> http://www.openknowledge.de<http://www.openknowledge.de<>
>> > http://www.openknowledge.de<http://www.openknowledge.de>>
>> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
>> IT-Beratung
>> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
>> Standorte
>> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> > >
>> > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > ________________________________
>> > > > Von: Arne Limburg <ar...@openknowledge.de>
>> > > > Gesendet: Mittwoch, 12. Mai 2021 14:14
>> > > > An: openwebbeans-dev
>> > > > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
>> > meecowave
>> > > > maven plugin
>> > > >
>> > > > Hi all,
>> > > >
>> > > >
>> > > > I have managed to implement class reloading for meecrowave via our
>> > maven
>> > > > plugin:
>> > > >
>> > > >
>> > > >
>> > >
>> >
>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
>> > > [
>> > >
>> >
>> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
>> > > ]<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
>> > > >
>> > >
>> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
>> > > >
>> > > smex-ctp.trendmicro.com
>> > > Apache OpenWebBeans meecrowave. Contribute to
>> > > ArneLimburg/openwebbeans-meecrowave development by creating an
>> account on
>> > > GitHub.
>> > >
>> > >
>> > > > [
>> > > >
>> > >
>> >
>> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
>> > > > ]<
>> > > >
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
>> > > [
>> > >
>> >
>> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
>> > > ]<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
>> > > >
>> > >
>> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
>> > > >
>> > > smex-ctp.trendmicro.com
>> > > Apache OpenWebBeans meecrowave. Contribute to
>> > > ArneLimburg/openwebbeans-meecrowave development by creating an
>> account on
>> > > GitHub.
>> > >
>> > >
>> > > > >
>> > > >
>> > > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
>> > > >
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
>> > > [
>> > >
>> >
>> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
>> > > ]<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
>> > > >
>> > >
>> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
>> > >
>> >
>> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
>> > > >
>> > > smex-ctp.trendmicro.com
>> > > Apache OpenWebBeans meecrowave. Contribute to
>> > > ArneLimburg/openwebbeans-meecrowave development by creating an
>> account on
>> > > GitHub.
>> > >
>> > >
>> > > > >
>> > > > smex-ctp.trendmicro.com
>> > > > Apache OpenWebBeans meecrowave. Contribute to
>> > > > ArneLimburg/openwebbeans-meecrowave development by creating an
>> account
>> > on
>> > > > GitHub.
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > Unfortunately this does not work for the programmatic start of
>> > Meecrowave
>> > > > (i.e. WatcherTest fails). So I added a config property
>> "reloadClasses"
>> > to
>> > > > signal, if class reloading should be done (in the maven plugin
>> case) or
>> > > not
>> > > > (in the programmatic case).
>> > > >
>> > > >
>> > > > Do you have any better idea to handle that? Or any concrete idea to
>> > merge
>> > > > that with "reloadGoals"?
>> > > >
>> > > >
>> > > > Cheers,
>> > > >
>> > > > Arne
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > Arne Limburg - Enterprise Architekt
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > OPEN KNOWLEDGE GmbH
>> > > > Poststraße 1, 26122 Oldenburg
>> > > > Mobil: +49 151 - 108 22 942
>> > > > Tel: +49 441 - 4082-154
>> > > > Fax: +49 441 - 4082-111
>> > > > arne.limburg@openknowledge.de
>> > > > www.openknowledge.de<http://www.openknowledge.de<<<
>> http://www.openknowledge.de<http://www.openknowledge.de<<>
>> > http://www.openknowledge.de<http://www.openknowledge.de<<
>> > http://www.openknowledge.de<http://www.openknowledge.de<<
>> > http://www.openknowledge.de<http://www.openknowledge.de<>>
>> > > http://www.openknowledge.de<http://www.openknowledge.de>> <
>> > > > https://www.openknowledge.de/>
>> > > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
>> > > > www.openknowledge.de<http://www.openknowledge.de<<
>> http://www.openknowledge.de<http://www.openknowledge.de<>
>> > http://www.openknowledge.de<http://www.openknowledge.de<
>> > http://www.openknowledge.de<http://www.openknowledge.de<
>> > http://www.openknowledge.de<http://www.openknowledge.de>>>
>> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
>> IT-Beratung
>> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
>> > Standorte
>> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> > > >
>> > > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
>> > > > www.openknowledge.de<http://www.openknowledge.de<<
>> http://www.openknowledge.de<http://www.openknowledge.de<>
>> > http://www.openknowledge.de<http://www.openknowledge.de<
>> > http://www.openknowledge.de<http://www.openknowledge.de<
>> > http://www.openknowledge.de<http://www.openknowledge.de>>>
>> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
>> IT-Beratung
>> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
>> > Standorte
>> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>> > > >
>> > > >
>> > > >
>> > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
>> > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
>> > > >
>> > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
>> > > >
>> > > > Zu unseren Events<https://www.openknowledge.de/event/>
>> > > > Events | OPEN KNOWLEDGE GmbH< <https://www.openknowledge.de/event/>
>>
>

Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Le jeu. 13 mai 2021 à 14:48, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Hmm, I am trying to write that tests, and they are green, but I wonder why.
>

Can be that our asserts are not strong enough.



> I always thought it is about deploying a war file. But I set
> "useClasspathDeployment" to false in MeecrowaveRunMojoTest and it stays
> green even though there is no war to deploy.
>

Guess it only tests docbase and server is up right now

Look core tests which have more use cases maybe



> So what exactly is the webapp mode about? Does such test suffice (besides
> the existing one) to ensure backward compatibility?
>

1. Deploy a war, change some class, expect reload to change it (tip: with
asm change some output string ;))
2. Same without a war
3. Only resource watch



>
> Cheers,
>
> Arne
>
>
> P.S.: I try to add a test for the reload behavior, too
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de <https://www.openknowledge.de/>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Mittwoch, 12. Mai 2021 22:36
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Clearly for option2 with no new mojo config, no classloader partial support
> only.
> I'd just ensure backward compat in deployment meta and add a test for
> webapp and classpath modes.
>
> Le mer. 12 mai 2021 à 21:56, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > Hi Romain,
> >
> >
> > I have implemented three variants of the solution:
> >
> > -
> >
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-reload-classes
> >
> > -
> >
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-callback
> >
> > -
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-flag
> >
> >
> > The first is the one with the config property, the second is with a
> reload
> > callack and the third is a flag in DeploymentMeta.
> >
> > I personally like the third variant most. And we can configure it such
> > that it reloads the classes just for the deployClasspath case (isn't
> > implemented yet), which is the only case where it really makes sense.
> >
> > But we also can go with the second solution if you want.
> >
> >
> > Btw.: I just want to handle the case where the IDE is configured to
> > directly compile to target/classes and want to trigger an automated
> reload
> > then.
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Arne Limburg <ar...@openknowledge.de>
> > Gesendet: Mittwoch, 12. Mai 2021 21:11
> > An: openwebbeans-dev
> > Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Hi Romain,
> >
> >
> > where would you put such callback?
> >
> > Put in in the class Meecrowave which would delegate it to
> > MeecrowaveContextConfig, which then would delegate it to
> > ReloadOnChangeController?
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Mittwoch, 12. Mai 2021 15:52
> > An: openwebbeans-dev
> > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Le mer. 12 mai 2021 à 15:00, Arne Limburg <arne.limburg@openknowledge.de
> >
> > a
> > écrit :
> >
> > > Hi Romain,
> > >
> > >
> > > The only reason, I did not implement it in the Mojo was, that I could
> not
> > > find an easy way to do it.
> > >
> > > Do you suggest to throw away the ReloadOnChangeController (or move it
> to
> > > the maven plugin),
> > >
> >
> > setReloadCallback(Runnable) sounds like a less radical impl.
> >
> >
> > >
> > > implement file-watching in the mojo and then do reloading in the same
> way
> > > we do it with the "reload" command from System.in?
> > >
> > > My first approaches doing it that way ended up in endless reloading of
> > the
> > > context, because the maven build itself triggered the watcher.
> > >
> >
> > setReloadCallback(() -> { if (reloading.get()) {return;}
> > reloading.set(true);try {reload();}finally{reloading.set(false);} })
> >
> > + small debouncing i guess?
> >
> >
> >
> > >
> > > But that can be circumvented somehow.
> > >
> > >
> > > Basically my current implementation does the same stuff in the
> > > ReloadOnChangeChontroller that is currently done in the Mojo on reload.
> > >
> >
> > Hmm , generally speaking
> >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > [
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> >
> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > [
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > ]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> >
> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> > [
> >
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> >
> > MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> > ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > github.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > rarely works since it is only about embedded case and reload will
> > stop.start the classloader anyway.
> > What I can see missing is target/classes if not built before launching
> the
> > first time. I don't think we need to handle that case but if you want you
> > can just do an addUrl or addRepository on the classloader I guess.
> > Note that thread.setContextClassLoader shouldn't be done (seems you only
> do
> > to getContextClassLoader after) cause it can break but setting the
> > classloader can be on the context (same as you do except thread is not
> > touched).
> > An option can be to let the Loader handle the lifecycle properly instead
> of
> > using providedLoader, this way reload will work - but once again, only
> for
> > deployclasspath case and not webapp cases.
> >
> > Hope it makes sense.
> >
> >
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Romain Manni-Bucau <rm...@gmail.com>
> > > Gesendet: Mittwoch, 12. Mai 2021 14:46
> > > An: openwebbeans-dev
> > > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > > meecowave maven plugin
> > >
> > > Hi Arne,
> > >
> > > What about the proposal on jira?
> > > Idea is we already have redeploy command but currently it is made
> > > incompatible (unsupported) with the watcher.
> > > Guess if both are configured we can make both working together, does
> look
> > > way simpler than making the classloading implementation right (you only
> > > handled meecrowave custom loader case but not tomcat case + it breaks
> > most
> > > of cdi usage AFAIK whereas redeploy should stay fast and fully
> functional
> > > without weird case, you loose state but all is "normal" then).
> > >
> > > wdyt?
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > >
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > > | Old Blog
> > > Index<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > > >
> > > smex-ctp.trendmicro.com
> > > An opiniated IT blogging.
> > >
> > >
> > > <
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> >
> >
> > > | Github <
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> > smex-ctp.trendmicro.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> >
> > > |
> > > [
> > >
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> >
> >
> > > >
> > >
> > > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > <
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > > >
> > > smex-ctp.trendmicro.com
> > > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> > >
> > > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > >
> > >
> > > rmannibucau (Romain Manni-Bucau) · GitHub<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > > Geronimo, Meecrowave, ... -
> > > http://home.apache.org/committer-index.html#rmannibucau). -
> rmannibucau
> > >
> > >
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > >
> > > Java EE 8 High Performance | Packt<
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > > www.packtpub.com<http://www.packtpub.com>
> > > Get more control of your applications performances in development and
> > > production and know how to meet your Service Level Agreement on
> critical
> > > microservices.
> > >
> > >
> > >
> > >
> > > Le mer. 12 mai 2021 à 14:41, Arne Limburg <
> arne.limburg@openknowledge.de
> > >
> > > a
> > > écrit :
> > >
> > > > Sorry for the mangled link (outlook seems to do that automatically
> for
> > > > github urls). Here is the plain link:
> > > >
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > > >
> > > github.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > >
> > > >
> > > > --
> > > >
> > > > Arne Limburg - Enterprise Architekt
> > > >
> > > >
> > > >
> > > >
> > > > OPEN KNOWLEDGE GmbH
> > > > Poststraße 1, 26122 Oldenburg
> > > > Mobil: +49 151 - 108 22 942
> > > > Tel: +49 441 - 4082-154
> > > > Fax: +49 441 - 4082-111
> > > > arne.limburg@openknowledge.de
> > > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de>>> <
> > > https://www.openknowledge.de/>
> > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > > >
> > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > > >
> > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > > >
> > > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > Von: Arne Limburg <ar...@openknowledge.de>
> > > > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > > > An: openwebbeans-dev
> > > > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave
> > > > maven plugin
> > > >
> > > > Hi all,
> > > >
> > > >
> > > > I have managed to implement class reloading for meecrowave via our
> > maven
> > > > plugin:
> > > >
> > > >
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > > [
> > > >
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > > ]<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > > >
> > > >
> > > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > > >
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > > > >
> > > > smex-ctp.trendmicro.com
> > > > Apache OpenWebBeans meecrowave. Contribute to
> > > > ArneLimburg/openwebbeans-meecrowave development by creating an
> account
> > on
> > > > GitHub.
> > > >
> > > >
> > > >
> > > >
> > > > Unfortunately this does not work for the programmatic start of
> > Meecrowave
> > > > (i.e. WatcherTest fails). So I added a config property
> "reloadClasses"
> > to
> > > > signal, if class reloading should be done (in the maven plugin case)
> or
> > > not
> > > > (in the programmatic case).
> > > >
> > > >
> > > > Do you have any better idea to handle that? Or any concrete idea to
> > merge
> > > > that with "reloadGoals"?
> > > >
> > > >
> > > > Cheers,
> > > >
> > > > Arne
> > > >
> > > >
> > > > --
> > > >
> > > > Arne Limburg - Enterprise Architekt
> > > >
> > > >
> > > >
> > > >
> > > > OPEN KNOWLEDGE GmbH
> > > > Poststraße 1, 26122 Oldenburg
> > > > Mobil: +49 151 - 108 22 942
> > > > Tel: +49 441 - 4082-154
> > > > Fax: +49 441 - 4082-111
> > > > arne.limburg@openknowledge.de
> > > > www.openknowledge.de<http://www.openknowledge.de<<<
> http://www.openknowledge.de<http://www.openknowledge.de<<>
> > http://www.openknowledge.de<http://www.openknowledge.de<<
> > http://www.openknowledge.de<http://www.openknowledge.de<<
> > http://www.openknowledge.de<http://www.openknowledge.de<>>
> > > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > > > https://www.openknowledge.de/>
> > > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> IT-Beratung
> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > Standorte
> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > >
> > > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de<
> > http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und
> IT-Beratung
> > > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> > Standorte
> > > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > > >
> > > >
> > > >
> > > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > > >
> > > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > > >
> > > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > > Events | OPEN KNOWLEDGE GmbH< <https://www.openknowledge.de/event/>
>

AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Arne Limburg <ar...@openknowledge.de>.
Hmm, I am trying to write that tests, and they are green, but I wonder why.

I always thought it is about deploying a war file. But I set "useClasspathDeployment" to false in MeecrowaveRunMojoTest and it stays green even though there is no war to deploy.

So what exactly is the webapp mode about? Does such test suffice (besides the existing one) to ensure backward compatibility?


Cheers,

Arne


P.S.: I try to add a test for the reload behavior, too


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Mittwoch, 12. Mai 2021 22:36
An: openwebbeans-dev
Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Clearly for option2 with no new mojo config, no classloader partial support
only.
I'd just ensure backward compat in deployment meta and add a test for
webapp and classpath modes.

Le mer. 12 mai 2021 à 21:56, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Hi Romain,
>
>
> I have implemented three variants of the solution:
>
> -
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-reload-classes
>
> -
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-callback
>
> - github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-flag
>
>
> The first is the one with the config property, the second is with a reload
> callack and the third is a flag in DeploymentMeta.
>
> I personally like the third variant most. And we can configure it such
> that it reloads the classes just for the deployClasspath case (isn't
> implemented yet), which is the only case where it really makes sense.
>
> But we also can go with the second solution if you want.
>
>
> Btw.: I just want to handle the case where the IDE is configured to
> directly compile to target/classes and want to trigger an automated reload
> then.
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
>
>
>
>
> ________________________________
> Von: Arne Limburg <ar...@openknowledge.de>
> Gesendet: Mittwoch, 12. Mai 2021 21:11
> An: openwebbeans-dev
> Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Hi Romain,
>
>
> where would you put such callback?
>
> Put in in the class Meecrowave which would delegate it to
> MeecrowaveContextConfig, which then would delegate it to
> ReloadOnChangeController?
>
>
> Cheers,
>
> Arne
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Mittwoch, 12. Mai 2021 15:52
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Le mer. 12 mai 2021 à 15:00, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > Hi Romain,
> >
> >
> > The only reason, I did not implement it in the Mojo was, that I could not
> > find an easy way to do it.
> >
> > Do you suggest to throw away the ReloadOnChangeController (or move it to
> > the maven plugin),
> >
>
> setReloadCallback(Runnable) sounds like a less radical impl.
>
>
> >
> > implement file-watching in the mojo and then do reloading in the same way
> > we do it with the "reload" command from System.in?
> >
> > My first approaches doing it that way ended up in endless reloading of
> the
> > context, because the maven build itself triggered the watcher.
> >
>
> setReloadCallback(() -> { if (reloading.get()) {return;}
> reloading.set(true);try {reload();}finally{reloading.set(false);} })
>
> + small debouncing i guess?
>
>
>
> >
> > But that can be circumvented somehow.
> >
> >
> > Basically my current implementation does the same stuff in the
> > ReloadOnChangeChontroller that is currently done in the Mojo on reload.
> >
>
> Hmm , generally speaking
>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> [
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
>
> MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> [
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> ]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
>
> MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
> [
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
>
> MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> github.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> rarely works since it is only about embedded case and reload will
> stop.start the classloader anyway.
> What I can see missing is target/classes if not built before launching the
> first time. I don't think we need to handle that case but if you want you
> can just do an addUrl or addRepository on the classloader I guess.
> Note that thread.setContextClassLoader shouldn't be done (seems you only do
> to getContextClassLoader after) cause it can break but setting the
> classloader can be on the context (same as you do except thread is not
> touched).
> An option can be to let the Loader handle the lifecycle properly instead of
> using providedLoader, this way reload will work - but once again, only for
> deployclasspath case and not webapp cases.
>
> Hope it makes sense.
>
>
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Mittwoch, 12. Mai 2021 14:46
> > An: openwebbeans-dev
> > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Hi Arne,
> >
> > What about the proposal on jira?
> > Idea is we already have redeploy command but currently it is made
> > incompatible (unsupported) with the watcher.
> > Guess if both are configured we can make both working together, does look
> > way simpler than making the classloading implementation right (you only
> > handled meecrowave custom loader case but not tomcat case + it breaks
> most
> > of cdi usage AFAIK whereas redeploy should stay fast and fully functional
> > without weird case, you loose state but all is "normal" then).
> >
> > wdyt?
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> > | Old Blog
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> <
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> smex-ctp.trendmicro.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>
>
> > | Github <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
>
> rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> smex-ctp.trendmicro.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
>
> > |
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> <
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> smex-ctp.trendmicro.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>
>
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> > smex-ctp.trendmicro.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> >
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> > Java EE 8 High Performance | Packt<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > www.packtpub.com<http://www.packtpub.com>
> > Get more control of your applications performances in development and
> > production and know how to meet your Service Level Agreement on critical
> > microservices.
> >
> >
> >
> >
> > Le mer. 12 mai 2021 à 14:41, Arne Limburg <arne.limburg@openknowledge.de
> >
> > a
> > écrit :
> >
> > > Sorry for the mangled link (outlook seems to do that automatically for
> > > github urls). Here is the plain link:
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > >
> > github.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Arne Limburg <ar...@openknowledge.de>
> > > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > > An: openwebbeans-dev
> > > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave
> > > maven plugin
> > >
> > > Hi all,
> > >
> > >
> > > I have managed to implement class reloading for meecrowave via our
> maven
> > > plugin:
> > >
> > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > >
> > >
> > > Unfortunately this does not work for the programmatic start of
> Meecrowave
> > > (i.e. WatcherTest fails). So I added a config property "reloadClasses"
> to
> > > signal, if class reloading should be done (in the maven plugin case) or
> > not
> > > (in the programmatic case).
> > >
> > >
> > > Do you have any better idea to handle that? Or any concrete idea to
> merge
> > > that with "reloadGoals"?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > > https://www.openknowledge.de/>
> > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > Events | OPEN KNOWLEDGE GmbH< <https://www.openknowledge.de/event/>

Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Clearly for option2 with no new mojo config, no classloader partial support
only.
I'd just ensure backward compat in deployment meta and add a test for
webapp and classpath modes.

Le mer. 12 mai 2021 à 21:56, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Hi Romain,
>
>
> I have implemented three variants of the solution:
>
> -
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-reload-classes
>
> -
> github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-callback
>
> - github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-flag
>
>
> The first is the one with the config property, the second is with a reload
> callack and the third is a flag in DeploymentMeta.
>
> I personally like the third variant most. And we can configure it such
> that it reloads the classes just for the deployClasspath case (isn't
> implemented yet), which is the only case where it really makes sense.
>
> But we also can go with the second solution if you want.
>
>
> Btw.: I just want to handle the case where the IDE is configured to
> directly compile to target/classes and want to trigger an automated reload
> then.
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de <https://www.openknowledge.de/>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
>
>
>
>
>
> ________________________________
> Von: Arne Limburg <ar...@openknowledge.de>
> Gesendet: Mittwoch, 12. Mai 2021 21:11
> An: openwebbeans-dev
> Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Hi Romain,
>
>
> where would you put such callback?
>
> Put in in the class Meecrowave which would delegate it to
> MeecrowaveContextConfig, which then would delegate it to
> ReloadOnChangeController?
>
>
> Cheers,
>
> Arne
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Mittwoch, 12. Mai 2021 15:52
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Le mer. 12 mai 2021 à 15:00, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > Hi Romain,
> >
> >
> > The only reason, I did not implement it in the Mojo was, that I could not
> > find an easy way to do it.
> >
> > Do you suggest to throw away the ReloadOnChangeController (or move it to
> > the maven plugin),
> >
>
> setReloadCallback(Runnable) sounds like a less radical impl.
>
>
> >
> > implement file-watching in the mojo and then do reloading in the same way
> > we do it with the "reload" command from System.in?
> >
> > My first approaches doing it that way ended up in endless reloading of
> the
> > context, because the maven build itself triggered the watcher.
> >
>
> setReloadCallback(() -> { if (reloading.get()) {return;}
> reloading.set(true);try {reload();}finally{reloading.set(false);} })
>
> + small debouncing i guess?
>
>
>
> >
> > But that can be circumvented somehow.
> >
> >
> > Basically my current implementation does the same stuff in the
> > ReloadOnChangeChontroller that is currently done in the Mojo on reload.
> >
>
> Hmm , generally speaking
>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> [
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
>
> MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> [
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> ]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
>
> MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
> [
> https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
>
> MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… ·
> ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> github.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> rarely works since it is only about embedded case and reload will
> stop.start the classloader anyway.
> What I can see missing is target/classes if not built before launching the
> first time. I don't think we need to handle that case but if you want you
> can just do an addUrl or addRepository on the classloader I guess.
> Note that thread.setContextClassLoader shouldn't be done (seems you only do
> to getContextClassLoader after) cause it can break but setting the
> classloader can be on the context (same as you do except thread is not
> touched).
> An option can be to let the Loader handle the lifecycle properly instead of
> using providedLoader, this way reload will work - but once again, only for
> deployclasspath case and not webapp cases.
>
> Hope it makes sense.
>
>
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Mittwoch, 12. Mai 2021 14:46
> > An: openwebbeans-dev
> > Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> > meecowave maven plugin
> >
> > Hi Arne,
> >
> > What about the proposal on jira?
> > Idea is we already have redeploy command but currently it is made
> > incompatible (unsupported) with the watcher.
> > Guess if both are configured we can make both working together, does look
> > way simpler than making the classloading implementation right (you only
> > handled meecrowave custom loader case but not tomcat case + it breaks
> most
> > of cdi usage AFAIK whereas redeploy should stay fast and fully functional
> > without weird case, you loose state but all is "normal" then).
> >
> > wdyt?
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> > | Old Blog
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> <
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> smex-ctp.trendmicro.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>
>
> > | Github <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
>
> rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> smex-ctp.trendmicro.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
>
> > |
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> <
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> smex-ctp.trendmicro.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>
>
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> > >
> > smex-ctp.trendmicro.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> >
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> > Java EE 8 High Performance | Packt<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > www.packtpub.com<http://www.packtpub.com>
> > Get more control of your applications performances in development and
> > production and know how to meet your Service Level Agreement on critical
> > microservices.
> >
> >
> >
> >
> > Le mer. 12 mai 2021 à 14:41, Arne Limburg <arne.limburg@openknowledge.de
> >
> > a
> > écrit :
> >
> > > Sorry for the mangled link (outlook seems to do that automatically for
> > > github urls). Here is the plain link:
> > >
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> > >
> > github.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Arne Limburg <ar...@openknowledge.de>
> > > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > > An: openwebbeans-dev
> > > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave
> > > maven plugin
> > >
> > > Hi all,
> > >
> > >
> > > I have managed to implement class reloading for meecrowave via our
> maven
> > > plugin:
> > >
> > >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > > [
> > >
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > > ]<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > > >
> > >
> > > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> > >
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> > > >
> > > smex-ctp.trendmicro.com
> > > Apache OpenWebBeans meecrowave. Contribute to
> > > ArneLimburg/openwebbeans-meecrowave development by creating an account
> on
> > > GitHub.
> > >
> > >
> > >
> > >
> > > Unfortunately this does not work for the programmatic start of
> Meecrowave
> > > (i.e. WatcherTest fails). So I added a config property "reloadClasses"
> to
> > > signal, if class reloading should be done (in the maven plugin case) or
> > not
> > > (in the programmatic case).
> > >
> > >
> > > Do you have any better idea to handle that? Or any concrete idea to
> merge
> > > that with "reloadGoals"?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > --
> > >
> > > Arne Limburg - Enterprise Architekt
> > >
> > >
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > > https://www.openknowledge.de/>
> > > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>>
> > > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > > mit Expertise in den Bereichen Enterprise und Cloud Computing.
> Standorte
> > > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> > >
> > >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > > Events | OPEN KNOWLEDGE GmbH< <https://www.openknowledge.de/event/>

AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Arne Limburg <ar...@openknowledge.de>.
Hi Romain,


I have implemented three variants of the solution:

- github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-reload-classes

- github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-callback

- github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290-flag


The first is the one with the config property, the second is with a reload callack and the third is a flag in DeploymentMeta.

I personally like the third variant most. And we can configure it such that it reloads the classes just for the deployClasspath case (isn't implemented yet), which is the only case where it really makes sense.

But we also can go with the second solution if you want.


Btw.: I just want to handle the case where the IDE is configured to directly compile to target/classes and want to trigger an automated reload then.


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Arne Limburg <ar...@openknowledge.de>
Gesendet: Mittwoch, 12. Mai 2021 21:11
An: openwebbeans-dev
Betreff: AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Hi Romain,


where would you put such callback?

Put in in the class Meecrowave which would delegate it to MeecrowaveContextConfig, which then would delegate it to ReloadOnChangeController?


Cheers,

Arne


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de<http://www.openknowledge.de> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).



Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).







________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Mittwoch, 12. Mai 2021 15:52
An: openwebbeans-dev
Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Le mer. 12 mai 2021 à 15:00, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Hi Romain,
>
>
> The only reason, I did not implement it in the Mojo was, that I could not
> find an easy way to do it.
>
> Do you suggest to throw away the ReloadOnChangeController (or move it to
> the maven plugin),
>

setReloadCallback(Runnable) sounds like a less radical impl.


>
> implement file-watching in the mojo and then do reloading in the same way
> we do it with the "reload" command from System.in?
>
> My first approaches doing it that way ended up in endless reloading of the
> context, because the maven build itself triggered the watcher.
>

setReloadCallback(() -> { if (reloading.get()) {return;}
reloading.set(true);try {reload();}finally{reloading.set(false);} })

+ small debouncing i guess?



>
> But that can be circumvented somehow.
>
>
> Basically my current implementation does the same stuff in the
> ReloadOnChangeChontroller that is currently done in the Mojo on reload.
>

Hmm , generally speaking
https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529
[https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529>

MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… · ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.


[https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245]<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529>

MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… · ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529>
[https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529>

MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… · ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2fcommit%2f03b1b3614f63ce3e9255f5c33c779e03aa537245%23diff%2d830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-cb3a5ebb69aaaf6604f16ab56ed4c8a40bba1529>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.


github.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.


rarely works since it is only about embedded case and reload will
stop.start the classloader anyway.
What I can see missing is target/classes if not built before launching the
first time. I don't think we need to handle that case but if you want you
can just do an addUrl or addRepository on the classloader I guess.
Note that thread.setContextClassLoader shouldn't be done (seems you only do
to getContextClassLoader after) cause it can break but setting the
classloader can be on the context (same as you do except thread is not
touched).
An option can be to let the Loader handle the lifecycle properly instead of
using providedLoader, this way reload will work - but once again, only for
deployclasspath case and not webapp cases.

Hope it makes sense.


>
>
> Cheers,
>
> Arne
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de<http://www.openknowledge.de>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de<http://www.openknowledge.de>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de<http://www.openknowledge.de>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Mittwoch, 12. Mai 2021 14:46
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Hi Arne,
>
> What about the proposal on jira?
> Idea is we already have redeploy command but currently it is made
> incompatible (unsupported) with the watcher.
> Guess if both are configured we can make both working together, does look
> way simpler than making the classloading implementation right (you only
> handled meecrowave custom loader case but not tomcat case + it breaks most
> of cdi usage AFAIK whereas redeploy should stay fast and fully functional
> without weird case, you loose state but all is "normal" then).
>
> wdyt?
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a>
Index<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a>
smex-ctp.trendmicro.com
An opiniated IT blogging.


> | Old Blog
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
Index<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a>
smex-ctp.trendmicro.com
An opiniated IT blogging.


> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>
[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>
smex-ctp.trendmicro.com
New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a


> | Github <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>

rmannibucau (Romain Manni-Bucau) · GitHub<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
smex-ctp.trendmicro.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau


> |
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>
smex-ctp.trendmicro.com
New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a


> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> smex-ctp.trendmicro.com
> New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=c42ae0ea-1ab7-49d7-973a-2301f37430c1&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-53e763c08274be018dd94dc96862211dfa24d20a
>
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
>
> rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> smex-ctp.trendmicro.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
>
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
> Java EE 8 High Performance | Packt<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> www.packtpub.com<http://www.packtpub.com>
> Get more control of your applications performances in development and
> production and know how to meet your Service Level Agreement on critical
> microservices.
>
>
>
>
> Le mer. 12 mai 2021 à 14:41, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > Sorry for the mangled link (outlook seems to do that automatically for
> > github urls). Here is the plain link:
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> >
> github.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Arne Limburg <ar...@openknowledge.de>
> > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > An: openwebbeans-dev
> > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave
> > maven plugin
> >
> > Hi all,
> >
> >
> > I have managed to implement class reloading for meecrowave via our maven
> > plugin:
> >
> >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> >
> >
> > Unfortunately this does not work for the programmatic start of Meecrowave
> > (i.e. WatcherTest fails). So I added a config property "reloadClasses" to
> > signal, if class reloading should be done (in the maven plugin case) or
> not
> > (in the programmatic case).
> >
> >
> > Do you have any better idea to handle that? Or any concrete idea to merge
> > that with "reloadGoals"?
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>>
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Donnerstag, 23. April 2020 13:34
> > An: openwebbeans-dev
> > Betreff: Re: Meecrowave auto reload
> >
> > It was the idea of the watcher - it is actually:
> >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > [
> >
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> >
> > openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> > apache/openwebbeans-meecrowave · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > apache/openwebbeans-meecrowave development by creating an account on
> GitHub.
> >
> >
> > openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> > apache/openwebbeans-meecrowave · GitHub<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> > [
> >
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> >
> > openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> > apache/openwebbeans-meecrowave · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > apache/openwebbeans-meecrowave development by creating an account on
> GitHub.
> >
> >
> > github.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > apache/openwebbeans-meecrowave development by creating an account on
> GitHub.
> >
> >
> > .
> > Issue is it is not an easy impl since the best impl you can do is to
> > debounce the reloading to avoid to reload 15 times just for one atomic
> > change. but it rarely really match the dev experience.
> > So it works well for small projects with 2-3 classes but for real
> projects
> > it depends a lot on the compilation. This is how the manual reloading
> > command started, it avoids all these pitfalls.
> > The alternative is to have a post refresh command automatically called (a
> > bit like livereload), but we don't have it yet.
> >
> > So to summarize, here are the enhancements I can see:
> >
> > 1. integrate more deeply reloadGoals with watcherBouncing (watching
> > sources, calling reloadGoals and then reloading the context)
> > 2. ensure watcherBouncing can recreate the classloader of the mojo,
> > 3. potentially add a "manualrefresh" goal which would integrate with run
> > mojo and force a reload *after* the actual resource/classes
> > recompilation/reprocessing to avoid timing issues (can be as simple as
> > creating a file .dirty, if present the reload controller refreshes the
> > context and deletes it - or just tracks the last modified date, something
> > like that)
> >
> > hope it makes sense
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> > | Old Blog
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > Index<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > rmannibucau.metawerx.net
> > An opiniated IT blogging.
> >
> >
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> > | Github <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
> |
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823242
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > github.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > github.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821394
> > ]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> > rmannibucau.wordpress.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> >
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> > Java EE 8 High Performance | Packt<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > www.packtpub.com<http://www.packtpub.com>
> > Get more control of your applications performances in development and
> > production and know how to meet your Service Level Agreement on critical
> > microservices.
> >
> >
> >
> >
> > Le jeu. 23 avr. 2020 à 13:12, Arne Limburg <
> arne.limburg@openknowledge.de>
> > a écrit :
> >
> > > Switching to dev-list...
> > >
> > > It should be easy to implement a (configurable, filewatcher-based)
> > > auto-reload based on that setup, shouldn't it?
> > >
> > > If there is some interest here, I'll take a look into that.
> > >
> > > Wdyt?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>>
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Arne Limburg
> > > Gesendet: Donnerstag, 23. April 2020 13:10
> > > An: user@openwebbeans.apache.org
> > > Betreff: AW: Meecrowave auto reload
> > >
> > >
> > > OK, thank you, that setup works.
> > >
> > > Cheers, Arne
> > >
> > > ________________________________
> > > Von: Romain Manni-Bucau <rm...@gmail.com>
> > > Gesendet: Donnerstag, 23. April 2020 12:06:03
> > > An: user@openwebbeans.apache.org
> > > Betreff: Re: Meecrowave auto reload
> > >
> > > Hi Arne,
> > >
> > > personally I don't use the polling but this setup:
> > >
> > > 1. configure what the reloading recompile through reloadGoals:
> > >
> > >
> > > <plugin>
> > >   <groupId>org.apache.meecrowave</groupId>
> > >   <artifactId>meecrowave-maven-plugin</artifactId>
> > >   <version>1.2.9</version>
> > >   <configuration>
> > >     <reloadGoals>
> > >       <reloadGoal>process-classes</reloadGoal>
> > >     </reloadGoals>
> > >   </configuration>
> > > </plugin>
> > >
> > > 2. do the changes you want
> > > 3. go in the terminal meecrowave:bake/meecrowave:run is executed and
> type
> > > "r" (or "reload" from memory)
> > > 4. test your changes
> > >
> > > It just executes mvn <reload goals> and redeploy the app.
> > >
> > > watcherBouncing was more about static resources (frontend) and should
> be
> > > combined with <webResourceCached>false</webResourceCached>.
> > >
> > > The watcher on his side watches the deployed folders (target/classes)
> and
> > > reloads when it changes (which can be too early sometimes depending
> > watcher
> > > duration).
> > > The issue you hit is that target/classes is in the classloader created
> > > once for the runtime in the mojo (since you deploy classpath and not
> as a
> > > webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you
> > > actually don't reload the classes with just the watcher by default.
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau<https://twitter.com/rmannibucau> |  Blog<
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> > |Old Blog<
> > Index<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > rmannibucau.metawerx.net
> > An opiniated IT blogging.
> >
> >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> > | Github<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > github.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821485
> > ]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> > rmannibucau.wordpress.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> >
> > > |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> > Java EE 8 High Performance | Packt<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > www.packtpub.com<http://www.packtpub.com>
> > Get more control of your applications performances in development and
> > production and know how to meet your Service Level Agreement on critical
> > microservices.
> >
> >
> > > >
> > >
> > >
> > > Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <
> > arne.limburg@openknowledge.de
> > > <ma...@openknowledge.de>> a écrit :
> > >
> > > Hi,
> > >
> > > I am fiddling around with the auto-reload feature in meecrowave.
> > >
> > > I have configured the maven plugin to set watcherBouncing to 1 and
> start
> > > meecrowave with the plugin.
> > >
> > > The log correctly states that target classes is scanned
> > >
> > > OpenWebBeans scanning:
> > > [...]
> > > [11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]
> > >  [...]/target/classes
> > >
> > >
> > > When I change a class in the deployment, the server correctly does a
> > > redeploy,
> > >
> > > but after the redeploy the content of the changed class seems not to
> have
> > > changed in the server.
> > >
> > > The class behaves like before.
> > >
> > > Is there some hidden class caching somewhere (in cxf or tomcat or so),
> > > which I have to turn of?
> > >
> > > Any ideas?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> >
>

AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Arne Limburg <ar...@openknowledge.de>.
Hi Romain,


where would you put such callback?

Put in in the class Meecrowave which would delegate it to MeecrowaveContextConfig, which then would delegate it to ReloadOnChangeController?


Cheers,

Arne


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Mittwoch, 12. Mai 2021 15:52
An: openwebbeans-dev
Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Le mer. 12 mai 2021 à 15:00, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Hi Romain,
>
>
> The only reason, I did not implement it in the Mojo was, that I could not
> find an easy way to do it.
>
> Do you suggest to throw away the ReloadOnChangeController (or move it to
> the maven plugin),
>

setReloadCallback(Runnable) sounds like a less radical impl.


>
> implement file-watching in the mojo and then do reloading in the same way
> we do it with the "reload" command from System.in?
>
> My first approaches doing it that way ended up in endless reloading of the
> context, because the maven build itself triggered the watcher.
>

setReloadCallback(() -> { if (reloading.get()) {return;}
reloading.set(true);try {reload();}finally{reloading.set(false);} })

+ small debouncing i guess?



>
> But that can be circumvented somehow.
>
>
> Basically my current implementation does the same stuff in the
> ReloadOnChangeChontroller that is currently done in the Mojo on reload.
>

Hmm , generally speaking
https://github.com/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245#diff-830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92
[https://opengraph.githubassets.com/4e9321ba47b5df5a4554181389176bf9fc88cec6a1abd629e64e80fdf7159c6a/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245]<https://github.com/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245#diff-830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92>

MEECROWAVE-290: Add 'reloadClasses' config property and implement rel… · ArneLimburg/openwebbeans-meecrowave@03b1b36 · GitHub<https://github.com/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245#diff-830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92>
github.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.


rarely works since it is only about embedded case and reload will
stop.start the classloader anyway.
What I can see missing is target/classes if not built before launching the
first time. I don't think we need to handle that case but if you want you
can just do an addUrl or addRepository on the classloader I guess.
Note that thread.setContextClassLoader shouldn't be done (seems you only do
to getContextClassLoader after) cause it can break but setting the
classloader can be on the context (same as you do except thread is not
touched).
An option can be to let the Loader handle the lifecycle properly instead of
using providedLoader, this way reload will work - but once again, only for
deployclasspath case and not webapp cases.

Hope it makes sense.


>
>
> Cheers,
>
> Arne
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Mittwoch, 12. Mai 2021 14:46
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Hi Arne,
>
> What about the proposal on jira?
> Idea is we already have redeploy command but currently it is made
> incompatible (unsupported) with the watcher.
> Guess if both are configured we can make both working together, does look
> way simpler than making the classloading implementation right (you only
> handled meecrowave custom loader case but not tomcat case + it breaks most
> of cdi usage AFAIK whereas redeploy should stay fast and fully functional
> without weird case, you loose state but all is "normal" then).
>
> wdyt?
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a>
Index<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a>
smex-ctp.trendmicro.com
An opiniated IT blogging.


> | Old Blog
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
Index<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a>
smex-ctp.trendmicro.com
An opiniated IT blogging.


> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>
[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846393]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://rmannibucau.metawerx.net<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>
smex-ctp.trendmicro.com
New posts here >>> https://rmannibucau.metawerx.net


> | Github <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>

rmannibucau (Romain Manni-Bucau) · GitHub<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
smex-ctp.trendmicro.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau


> |
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620846423]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://rmannibucau.metawerx.net<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>
smex-ctp.trendmicro.com
New posts here >>> https://rmannibucau.metawerx.net


> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://rmannibucau.metawerx.net<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> smex-ctp.trendmicro.com
> New posts here >>> https://rmannibucau.metawerx.net
>
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
>
> rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> smex-ctp.trendmicro.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
>
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
> Java EE 8 High Performance | Packt<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> www.packtpub.com<http://www.packtpub.com>
> Get more control of your applications performances in development and
> production and know how to meet your Service Level Agreement on critical
> microservices.
>
>
>
>
> Le mer. 12 mai 2021 à 14:41, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > Sorry for the mangled link (outlook seems to do that automatically for
> > github urls). Here is the plain link:
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> >
> github.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Arne Limburg <ar...@openknowledge.de>
> > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > An: openwebbeans-dev
> > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave
> > maven plugin
> >
> > Hi all,
> >
> >
> > I have managed to implement class reloading for meecrowave via our maven
> > plugin:
> >
> >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> >
> >
> > Unfortunately this does not work for the programmatic start of Meecrowave
> > (i.e. WatcherTest fails). So I added a config property "reloadClasses" to
> > signal, if class reloading should be done (in the maven plugin case) or
> not
> > (in the programmatic case).
> >
> >
> > Do you have any better idea to handle that? Or any concrete idea to merge
> > that with "reloadGoals"?
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Donnerstag, 23. April 2020 13:34
> > An: openwebbeans-dev
> > Betreff: Re: Meecrowave auto reload
> >
> > It was the idea of the watcher - it is actually:
> >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > [
> >
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> >
> > openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> > apache/openwebbeans-meecrowave · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > apache/openwebbeans-meecrowave development by creating an account on
> GitHub.
> >
> >
> > openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> > apache/openwebbeans-meecrowave · GitHub<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> > [
> >
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> >
> > openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> > apache/openwebbeans-meecrowave · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > apache/openwebbeans-meecrowave development by creating an account on
> GitHub.
> >
> >
> > github.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > apache/openwebbeans-meecrowave development by creating an account on
> GitHub.
> >
> >
> > .
> > Issue is it is not an easy impl since the best impl you can do is to
> > debounce the reloading to avoid to reload 15 times just for one atomic
> > change. but it rarely really match the dev experience.
> > So it works well for small projects with 2-3 classes but for real
> projects
> > it depends a lot on the compilation. This is how the manual reloading
> > command started, it avoids all these pitfalls.
> > The alternative is to have a post refresh command automatically called (a
> > bit like livereload), but we don't have it yet.
> >
> > So to summarize, here are the enhancements I can see:
> >
> > 1. integrate more deeply reloadGoals with watcherBouncing (watching
> > sources, calling reloadGoals and then reloading the context)
> > 2. ensure watcherBouncing can recreate the classloader of the mojo,
> > 3. potentially add a "manualrefresh" goal which would integrate with run
> > mojo and force a reload *after* the actual resource/classes
> > recompilation/reprocessing to avoid timing issues (can be as simple as
> > creating a file .dirty, if present the reload controller refreshes the
> > context and deletes it - or just tracks the last modified date, something
> > like that)
> >
> > hope it makes sense
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> > | Old Blog
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > Index<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > rmannibucau.metawerx.net
> > An opiniated IT blogging.
> >
> >
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> > | Github <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
> |
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823242
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > github.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > github.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821394
> > ]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> > rmannibucau.wordpress.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> >
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> > Java EE 8 High Performance | Packt<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > www.packtpub.com<http://www.packtpub.com>
> > Get more control of your applications performances in development and
> > production and know how to meet your Service Level Agreement on critical
> > microservices.
> >
> >
> >
> >
> > Le jeu. 23 avr. 2020 à 13:12, Arne Limburg <
> arne.limburg@openknowledge.de>
> > a écrit :
> >
> > > Switching to dev-list...
> > >
> > > It should be easy to implement a (configurable, filewatcher-based)
> > > auto-reload based on that setup, shouldn't it?
> > >
> > > If there is some interest here, I'll take a look into that.
> > >
> > > Wdyt?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<<http://www.openknowledge.de<http://www.openknowledge.de<<>
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Arne Limburg
> > > Gesendet: Donnerstag, 23. April 2020 13:10
> > > An: user@openwebbeans.apache.org
> > > Betreff: AW: Meecrowave auto reload
> > >
> > >
> > > OK, thank you, that setup works.
> > >
> > > Cheers, Arne
> > >
> > > ________________________________
> > > Von: Romain Manni-Bucau <rm...@gmail.com>
> > > Gesendet: Donnerstag, 23. April 2020 12:06:03
> > > An: user@openwebbeans.apache.org
> > > Betreff: Re: Meecrowave auto reload
> > >
> > > Hi Arne,
> > >
> > > personally I don't use the polling but this setup:
> > >
> > > 1. configure what the reloading recompile through reloadGoals:
> > >
> > >
> > > <plugin>
> > >   <groupId>org.apache.meecrowave</groupId>
> > >   <artifactId>meecrowave-maven-plugin</artifactId>
> > >   <version>1.2.9</version>
> > >   <configuration>
> > >     <reloadGoals>
> > >       <reloadGoal>process-classes</reloadGoal>
> > >     </reloadGoals>
> > >   </configuration>
> > > </plugin>
> > >
> > > 2. do the changes you want
> > > 3. go in the terminal meecrowave:bake/meecrowave:run is executed and
> type
> > > "r" (or "reload" from memory)
> > > 4. test your changes
> > >
> > > It just executes mvn <reload goals> and redeploy the app.
> > >
> > > watcherBouncing was more about static resources (frontend) and should
> be
> > > combined with <webResourceCached>false</webResourceCached>.
> > >
> > > The watcher on his side watches the deployed folders (target/classes)
> and
> > > reloads when it changes (which can be too early sometimes depending
> > watcher
> > > duration).
> > > The issue you hit is that target/classes is in the classloader created
> > > once for the runtime in the mojo (since you deploy classpath and not
> as a
> > > webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you
> > > actually don't reload the classes with just the watcher by default.
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau<https://twitter.com/rmannibucau> |  Blog<
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> > |Old Blog<
> > Index<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > rmannibucau.metawerx.net
> > An opiniated IT blogging.
> >
> >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> > | Github<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > github.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821485
> > ]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> > rmannibucau.wordpress.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> >
> > > |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> > Java EE 8 High Performance | Packt<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > www.packtpub.com<http://www.packtpub.com>
> > Get more control of your applications performances in development and
> > production and know how to meet your Service Level Agreement on critical
> > microservices.
> >
> >
> > > >
> > >
> > >
> > > Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <
> > arne.limburg@openknowledge.de
> > > <ma...@openknowledge.de>> a écrit :
> > >
> > > Hi,
> > >
> > > I am fiddling around with the auto-reload feature in meecrowave.
> > >
> > > I have configured the maven plugin to set watcherBouncing to 1 and
> start
> > > meecrowave with the plugin.
> > >
> > > The log correctly states that target classes is scanned
> > >
> > > OpenWebBeans scanning:
> > > [...]
> > > [11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]
> > >  [...]/target/classes
> > >
> > >
> > > When I change a class in the deployment, the server correctly does a
> > > redeploy,
> > >
> > > but after the redeploy the content of the changed class seems not to
> have
> > > changed in the server.
> > >
> > > The class behaves like before.
> > >
> > > Is there some hidden class caching somewhere (in cxf or tomcat or so),
> > > which I have to turn of?
> > >
> > > Any ideas?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> >
>

Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Le mer. 12 mai 2021 à 15:00, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Hi Romain,
>
>
> The only reason, I did not implement it in the Mojo was, that I could not
> find an easy way to do it.
>
> Do you suggest to throw away the ReloadOnChangeController (or move it to
> the maven plugin),
>

setReloadCallback(Runnable) sounds like a less radical impl.


>
> implement file-watching in the mojo and then do reloading in the same way
> we do it with the "reload" command from System.in?
>
> My first approaches doing it that way ended up in endless reloading of the
> context, because the maven build itself triggered the watcher.
>

setReloadCallback(() -> { if (reloading.get()) {return;}
reloading.set(true);try {reload();}finally{reloading.set(false);} })

+ small debouncing i guess?



>
> But that can be circumvented somehow.
>
>
> Basically my current implementation does the same stuff in the
> ReloadOnChangeChontroller that is currently done in the Mojo on reload.
>

Hmm , generally speaking
https://github.com/ArneLimburg/openwebbeans-meecrowave/commit/03b1b3614f63ce3e9255f5c33c779e03aa537245#diff-830d1e256f27a967a495cade9188682a24d3f508e40ce8c5bf8c63f4a39c407eR92
rarely works since it is only about embedded case and reload will
stop.start the classloader anyway.
What I can see missing is target/classes if not built before launching the
first time. I don't think we need to handle that case but if you want you
can just do an addUrl or addRepository on the classloader I guess.
Note that thread.setContextClassLoader shouldn't be done (seems you only do
to getContextClassLoader after) cause it can break but setting the
classloader can be on the context (same as you do except thread is not
touched).
An option can be to let the Loader handle the lifecycle properly instead of
using providedLoader, this way reload will work - but once again, only for
deployclasspath case and not webapp cases.

Hope it makes sense.


>
>
> Cheers,
>
> Arne
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de <https://www.openknowledge.de/>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Mittwoch, 12. Mai 2021 14:46
> An: openwebbeans-dev
> Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for
> meecowave maven plugin
>
> Hi Arne,
>
> What about the proposal on jira?
> Idea is we already have redeploy command but currently it is made
> incompatible (unsupported) with the watcher.
> Guess if both are configured we can make both working together, does look
> way simpler than making the classloading implementation right (you only
> handled meecrowave custom loader case but not tomcat case + it breaks most
> of cdi usage AFAIK whereas redeploy should stay fast and fully functional
> without weird case, you loose state but all is "normal" then).
>
> wdyt?
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a>
> | Old Blog
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>
> | Github <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
> |
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://rmannibucau.metawerx.net<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51
> >
> smex-ctp.trendmicro.com
> New posts here >>> https://rmannibucau.metawerx.net
>
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
>
> rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> smex-ctp.trendmicro.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
>
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
> Java EE 8 High Performance | Packt<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> www.packtpub.com
> Get more control of your applications performances in development and
> production and know how to meet your Service Level Agreement on critical
> microservices.
>
>
>
>
> Le mer. 12 mai 2021 à 14:41, Arne Limburg <ar...@openknowledge.de>
> a
> écrit :
>
> > Sorry for the mangled link (outlook seems to do that automatically for
> > github urls). Here is the plain link:
> >
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
> >
> github.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Arne Limburg <ar...@openknowledge.de>
> > Gesendet: Mittwoch, 12. Mai 2021 14:14
> > An: openwebbeans-dev
> > Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave
> > maven plugin
> >
> > Hi all,
> >
> >
> > I have managed to implement class reloading for meecrowave via our maven
> > plugin:
> >
> >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> > [
> >
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> > >
> >
> > GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > ArneLimburg/openwebbeans-meecrowave development by creating an account on
> > GitHub.
> >
> >
> >
> >
> > Unfortunately this does not work for the programmatic start of Meecrowave
> > (i.e. WatcherTest fails). So I added a config property "reloadClasses" to
> > signal, if class reloading should be done (in the maven plugin case) or
> not
> > (in the programmatic case).
> >
> >
> > Do you have any better idea to handle that? Or any concrete idea to merge
> > that with "reloadGoals"?
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > --
> >
> > Arne Limburg - Enterprise Architekt
> >
> >
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Donnerstag, 23. April 2020 13:34
> > An: openwebbeans-dev
> > Betreff: Re: Meecrowave auto reload
> >
> > It was the idea of the watcher - it is actually:
> >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > [
> >
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> >
> > openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> > apache/openwebbeans-meecrowave · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > apache/openwebbeans-meecrowave development by creating an account on
> GitHub.
> >
> >
> > openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> > apache/openwebbeans-meecrowave · GitHub<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> > [
> >
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> >
> > openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> > apache/openwebbeans-meecrowave · GitHub<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> > >
> > smex-ctp.trendmicro.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > apache/openwebbeans-meecrowave development by creating an account on
> GitHub.
> >
> >
> > github.com
> > Apache OpenWebBeans meecrowave. Contribute to
> > apache/openwebbeans-meecrowave development by creating an account on
> GitHub.
> >
> >
> > .
> > Issue is it is not an easy impl since the best impl you can do is to
> > debounce the reloading to avoid to reload 15 times just for one atomic
> > change. but it rarely really match the dev experience.
> > So it works well for small projects with 2-3 classes but for real
> projects
> > it depends a lot on the compilation. This is how the manual reloading
> > command started, it avoids all these pitfalls.
> > The alternative is to have a post refresh command automatically called (a
> > bit like livereload), but we don't have it yet.
> >
> > So to summarize, here are the enhancements I can see:
> >
> > 1. integrate more deeply reloadGoals with watcherBouncing (watching
> > sources, calling reloadGoals and then reloading the context)
> > 2. ensure watcherBouncing can recreate the classloader of the mojo,
> > 3. potentially add a "manualrefresh" goal which would integrate with run
> > mojo and force a reload *after* the actual resource/classes
> > recompilation/reprocessing to avoid timing issues (can be as simple as
> > creating a file .dirty, if present the reload controller refreshes the
> > context and deletes it - or just tracks the last modified date, something
> > like that)
> >
> > hope it makes sense
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> > | Old Blog
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > Index<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > Index<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > smex-ctp.trendmicro.com
> > An opiniated IT blogging.
> >
> >
> > rmannibucau.metawerx.net
> > An opiniated IT blogging.
> >
> >
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> > | Github <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
> |
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823242
> > ]<
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> <
> >
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> > smex-ctp.trendmicro.com
> > New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > github.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > github.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821394
> > ]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> > rmannibucau.wordpress.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> >
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> > Java EE 8 High Performance | Packt<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > www.packtpub.com<http://www.packtpub.com>
> > Get more control of your applications performances in development and
> > production and know how to meet your Service Level Agreement on critical
> > microservices.
> >
> >
> >
> >
> > Le jeu. 23 avr. 2020 à 13:12, Arne Limburg <
> arne.limburg@openknowledge.de>
> > a écrit :
> >
> > > Switching to dev-list...
> > >
> > > It should be easy to implement a (configurable, filewatcher-based)
> > > auto-reload based on that setup, shouldn't it?
> > >
> > > If there is some interest here, I'll take a look into that.
> > >
> > > Wdyt?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> > >
> > > OPEN KNOWLEDGE GmbH
> > > Poststraße 1, 26122 Oldenburg
> > > Mobil: +49 151 - 108 22 942
> > > Tel: +49 441 - 4082-154
> > > Fax: +49 441 - 4082-111
> > > arne.limburg@openknowledge.de
> > > www.openknowledge.de<http://www.openknowledge.de<<
> http://www.openknowledge.de<http://www.openknowledge.de<>
> > http://www.openknowledge.de<http://www.openknowledge.de>> <
> > https://www.openknowledge.de/>
> > OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> > OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > > Geschäftsführer: Lars Röwekamp, Jens Schumann
> > >
> > > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> > >
> > > Zu unseren Events<https://www.openknowledge.de/event/>
> > Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>>
> > OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> > mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> > sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > Von: Arne Limburg
> > > Gesendet: Donnerstag, 23. April 2020 13:10
> > > An: user@openwebbeans.apache.org
> > > Betreff: AW: Meecrowave auto reload
> > >
> > >
> > > OK, thank you, that setup works.
> > >
> > > Cheers, Arne
> > >
> > > ________________________________
> > > Von: Romain Manni-Bucau <rm...@gmail.com>
> > > Gesendet: Donnerstag, 23. April 2020 12:06:03
> > > An: user@openwebbeans.apache.org
> > > Betreff: Re: Meecrowave auto reload
> > >
> > > Hi Arne,
> > >
> > > personally I don't use the polling but this setup:
> > >
> > > 1. configure what the reloading recompile through reloadGoals:
> > >
> > >
> > > <plugin>
> > >   <groupId>org.apache.meecrowave</groupId>
> > >   <artifactId>meecrowave-maven-plugin</artifactId>
> > >   <version>1.2.9</version>
> > >   <configuration>
> > >     <reloadGoals>
> > >       <reloadGoal>process-classes</reloadGoal>
> > >     </reloadGoals>
> > >   </configuration>
> > > </plugin>
> > >
> > > 2. do the changes you want
> > > 3. go in the terminal meecrowave:bake/meecrowave:run is executed and
> type
> > > "r" (or "reload" from memory)
> > > 4. test your changes
> > >
> > > It just executes mvn <reload goals> and redeploy the app.
> > >
> > > watcherBouncing was more about static resources (frontend) and should
> be
> > > combined with <webResourceCached>false</webResourceCached>.
> > >
> > > The watcher on his side watches the deployed folders (target/classes)
> and
> > > reloads when it changes (which can be too early sometimes depending
> > watcher
> > > duration).
> > > The issue you hit is that target/classes is in the classloader created
> > > once for the runtime in the mojo (since you deploy classpath and not
> as a
> > > webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you
> > > actually don't reload the classes with just the watcher by default.
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau<https://twitter.com/rmannibucau> |  Blog<
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> > |Old Blog<
> > Index<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > >
> > rmannibucau.metawerx.net
> > An opiniated IT blogging.
> >
> >
> > >
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> > | Github<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> >
> > rmannibucau (Romain Manni-Bucau) · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a
> >
> > github.com
> > Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> > Geronimo, Meecrowave, ... -
> > http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
> >
> > [
> >
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821485
> > ]<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> >
> > New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> > <
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> > >
> > rmannibucau.wordpress.com
> > New posts here >>>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> >
> > > |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> > Java EE 8 High Performance | Packt<
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > www.packtpub.com<http://www.packtpub.com>
> > Get more control of your applications performances in development and
> > production and know how to meet your Service Level Agreement on critical
> > microservices.
> >
> >
> > > >
> > >
> > >
> > > Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <
> > arne.limburg@openknowledge.de
> > > <ma...@openknowledge.de>> a écrit :
> > >
> > > Hi,
> > >
> > > I am fiddling around with the auto-reload feature in meecrowave.
> > >
> > > I have configured the maven plugin to set watcherBouncing to 1 and
> start
> > > meecrowave with the plugin.
> > >
> > > The log correctly states that target classes is scanned
> > >
> > > OpenWebBeans scanning:
> > > [...]
> > > [11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]
> > >  [...]/target/classes
> > >
> > >
> > > When I change a class in the deployment, the server correctly does a
> > > redeploy,
> > >
> > > but after the redeploy the content of the changed class seems not to
> have
> > > changed in the server.
> > >
> > > The class behaves like before.
> > >
> > > Is there some hidden class caching somewhere (in cxf or tomcat or so),
> > > which I have to turn of?
> > >
> > > Any ideas?
> > >
> > >
> > > Cheers,
> > >
> > > Arne
> > >
> >
>

AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Arne Limburg <ar...@openknowledge.de>.
Hi Romain,


The only reason, I did not implement it in the Mojo was, that I could not find an easy way to do it.

Do you suggest to throw away the ReloadOnChangeController (or move it to the maven plugin),

implement file-watching in the mojo and then do reloading in the same way we do it with the "reload" command from System.in?

My first approaches doing it that way ended up in endless reloading of the context, because the maven build itself triggered the watcher.

But that can be circumvented somehow.


Basically my current implementation does the same stuff in the ReloadOnChangeChontroller that is currently done in the Mojo on reload.


Cheers,

Arne


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Mittwoch, 12. Mai 2021 14:46
An: openwebbeans-dev
Betreff: Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Hi Arne,

What about the proposal on jira?
Idea is we already have redeploy command but currently it is made
incompatible (unsupported) with the watcher.
Guess if both are configured we can make both working together, does look
way simpler than making the classloading implementation right (you only
handled meecrowave custom loader case but not tomcat case + it breaks most
of cdi usage AFAIK whereas redeploy should stay fast and fully functional
without weird case, you loose state but all is "normal" then).

wdyt?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a> | Old Blog
Index<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a>
smex-ctp.trendmicro.com
An opiniated IT blogging.


<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51> | Github <https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a> |
[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823706]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://rmannibucau.metawerx.net<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-023c823d4d9689451f2aa2b2324666f53fde1a51>
smex-ctp.trendmicro.com
New posts here >>> https://rmannibucau.metawerx.net

[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>

rmannibucau (Romain Manni-Bucau) · GitHub<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
smex-ctp.trendmicro.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau


LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
[https://static.packt-cdn.com/products/9781788473064/cover/smaller]<https://www.packtpub.com/application-development/java-ee-8-high-performance>

Java EE 8 High Performance | Packt<https://www.packtpub.com/application-development/java-ee-8-high-performance>
www.packtpub.com
Get more control of your applications performances in development and production and know how to meet your Service Level Agreement on critical microservices.




Le mer. 12 mai 2021 à 14:41, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Sorry for the mangled link (outlook seems to do that automatically for
> github urls). Here is the plain link:
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
[https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave]<https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290>

GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290>
github.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.


>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
>
>
>
>
> ________________________________
> Von: Arne Limburg <ar...@openknowledge.de>
> Gesendet: Mittwoch, 12. Mai 2021 14:14
> An: openwebbeans-dev
> Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave
> maven plugin
>
> Hi all,
>
>
> I have managed to implement class reloading for meecrowave via our maven
> plugin:
>
>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
[https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>

GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.


> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
[https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>

GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.


> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
[https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>

GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.


> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
>
>
> Unfortunately this does not work for the programmatic start of Meecrowave
> (i.e. WatcherTest fails). So I added a config property "reloadClasses" to
> signal, if class reloading should be done (in the maven plugin case) or not
> (in the programmatic case).
>
>
> Do you have any better idea to handle that? Or any concrete idea to merge
> that with "reloadGoals"?
>
>
> Cheers,
>
> Arne
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Donnerstag, 23. April 2020 13:34
> An: openwebbeans-dev
> Betreff: Re: Meecrowave auto reload
>
> It was the idea of the watcher - it is actually:
>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> [
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
>
> openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> apache/openwebbeans-meecrowave · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> apache/openwebbeans-meecrowave development by creating an account on GitHub.
>
>
> openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> apache/openwebbeans-meecrowave · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
> [
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
>
> openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> apache/openwebbeans-meecrowave · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> apache/openwebbeans-meecrowave development by creating an account on GitHub.
>
>
> github.com
> Apache OpenWebBeans meecrowave. Contribute to
> apache/openwebbeans-meecrowave development by creating an account on GitHub.
>
>
> .
> Issue is it is not an easy impl since the best impl you can do is to
> debounce the reloading to avoid to reload 15 times just for one atomic
> change. but it rarely really match the dev experience.
> So it works well for small projects with 2-3 classes but for real projects
> it depends a lot on the compilation. This is how the manual reloading
> command started, it avoids all these pitfalls.
> The alternative is to have a post refresh command automatically called (a
> bit like livereload), but we don't have it yet.
>
> So to summarize, here are the enhancements I can see:
>
> 1. integrate more deeply reloadGoals with watcherBouncing (watching
> sources, calling reloadGoals and then reloading the context)
> 2. ensure watcherBouncing can recreate the classloader of the mojo,
> 3. potentially add a "manualrefresh" goal which would integrate with run
> mojo and force a reload *after* the actual resource/classes
> recompilation/reprocessing to avoid timing issues (can be as simple as
> creating a file .dirty, if present the reload controller refreshes the
> context and deletes it - or just tracks the last modified date, something
> like that)
>
> hope it makes sense
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
> | Old Blog
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> Index<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> rmannibucau.metawerx.net
> An opiniated IT blogging.
>
>
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
> | Github <https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a> |
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823242
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> smex-ctp.trendmicro.com
> New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-5952a27ec923c46b4afeedc4573484f98112035a
>
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
>
> rmannibucau (Romain Manni-Bucau) · GitHub<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
> github.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
>
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
>
> rmannibucau (Romain Manni-Bucau) · GitHub<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
> github.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821394
> ]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> rmannibucau.wordpress.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
>
>
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
> Java EE 8 High Performance | Packt<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> www.packtpub.com<http://www.packtpub.com>
> Get more control of your applications performances in development and
> production and know how to meet your Service Level Agreement on critical
> microservices.
>
>
>
>
> Le jeu. 23 avr. 2020 à 13:12, Arne Limburg <ar...@openknowledge.de>
> a écrit :
>
> > Switching to dev-list...
> >
> > It should be easy to implement a (configurable, filewatcher-based)
> > auto-reload based on that setup, shouldn't it?
> >
> > If there is some interest here, I'll take a look into that.
> >
> > Wdyt?
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<<http://www.openknowledge.de<http://www.openknowledge.de<>
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Arne Limburg
> > Gesendet: Donnerstag, 23. April 2020 13:10
> > An: user@openwebbeans.apache.org
> > Betreff: AW: Meecrowave auto reload
> >
> >
> > OK, thank you, that setup works.
> >
> > Cheers, Arne
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Donnerstag, 23. April 2020 12:06:03
> > An: user@openwebbeans.apache.org
> > Betreff: Re: Meecrowave auto reload
> >
> > Hi Arne,
> >
> > personally I don't use the polling but this setup:
> >
> > 1. configure what the reloading recompile through reloadGoals:
> >
> >
> > <plugin>
> >   <groupId>org.apache.meecrowave</groupId>
> >   <artifactId>meecrowave-maven-plugin</artifactId>
> >   <version>1.2.9</version>
> >   <configuration>
> >     <reloadGoals>
> >       <reloadGoal>process-classes</reloadGoal>
> >     </reloadGoals>
> >   </configuration>
> > </plugin>
> >
> > 2. do the changes you want
> > 3. go in the terminal meecrowave:bake/meecrowave:run is executed and type
> > "r" (or "reload" from memory)
> > 4. test your changes
> >
> > It just executes mvn <reload goals> and redeploy the app.
> >
> > watcherBouncing was more about static resources (frontend) and should be
> > combined with <webResourceCached>false</webResourceCached>.
> >
> > The watcher on his side watches the deployed folders (target/classes) and
> > reloads when it changes (which can be too early sometimes depending
> watcher
> > duration).
> > The issue you hit is that target/classes is in the classloader created
> > once for the runtime in the mojo (since you deploy classpath and not as a
> > webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you
> > actually don't reload the classes with just the watcher by default.
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau<https://twitter.com/rmannibucau> |  Blog<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
> |Old Blog<
> Index<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> rmannibucau.metawerx.net
> An opiniated IT blogging.
>
>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
> | Github<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
>
> rmannibucau (Romain Manni-Bucau) · GitHub<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frmannibucau&umid=0d028c0f-486f-4943-b243-bdcf46cf64aa&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-9f5335456d1eaef8209cd71ee9786d2feacf6a6a>
> github.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821485
> ]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> rmannibucau.wordpress.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
>
>
> > |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
> Java EE 8 High Performance | Packt<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> www.packtpub.com<http://www.packtpub.com>
> Get more control of your applications performances in development and
> production and know how to meet your Service Level Agreement on critical
> microservices.
>
>
> > >
> >
> >
> > Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <
> arne.limburg@openknowledge.de
> > <ma...@openknowledge.de>> a écrit :
> >
> > Hi,
> >
> > I am fiddling around with the auto-reload feature in meecrowave.
> >
> > I have configured the maven plugin to set watcherBouncing to 1 and start
> > meecrowave with the plugin.
> >
> > The log correctly states that target classes is scanned
> >
> > OpenWebBeans scanning:
> > [...]
> > [11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]
> >  [...]/target/classes
> >
> >
> > When I change a class in the deployment, the server correctly does a
> > redeploy,
> >
> > but after the redeploy the content of the changed class seems not to have
> > changed in the server.
> >
> > The class behaves like before.
> >
> > Is there some hidden class caching somewhere (in cxf or tomcat or so),
> > which I have to turn of?
> >
> > Any ideas?
> >
> >
> > Cheers,
> >
> > Arne
> >
>

Re: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Arne,

What about the proposal on jira?
Idea is we already have redeploy command but currently it is made
incompatible (unsupported) with the watcher.
Guess if both are configured we can make both working together, does look
way simpler than making the classloading implementation right (you only
handled meecrowave custom loader case but not tomcat case + it breaks most
of cdi usage AFAIK whereas redeploy should stay fast and fully functional
without weird case, you loose state but all is "normal" then).

wdyt?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le mer. 12 mai 2021 à 14:41, Arne Limburg <ar...@openknowledge.de> a
écrit :

> Sorry for the mangled link (outlook seems to do that automatically for
> github urls). Here is the plain link:
> https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de <https://www.openknowledge.de/>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
>
>
>
>
>
> ________________________________
> Von: Arne Limburg <ar...@openknowledge.de>
> Gesendet: Mittwoch, 12. Mai 2021 14:14
> An: openwebbeans-dev
> Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave
> maven plugin
>
> Hi all,
>
>
> I have managed to implement class reloading for meecrowave via our maven
> plugin:
>
>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> [
> https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
>
> GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> ArneLimburg/openwebbeans-meecrowave development by creating an account on
> GitHub.
>
>
>
>
> Unfortunately this does not work for the programmatic start of Meecrowave
> (i.e. WatcherTest fails). So I added a config property "reloadClasses" to
> signal, if class reloading should be done (in the maven plugin case) or not
> (in the programmatic case).
>
>
> Do you have any better idea to handle that? Or any concrete idea to merge
> that with "reloadGoals"?
>
>
> Cheers,
>
> Arne
>
>
> --
>
> Arne Limburg - Enterprise Architekt
>
>
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
>
>
>
>
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Donnerstag, 23. April 2020 13:34
> An: openwebbeans-dev
> Betreff: Re: Meecrowave auto reload
>
> It was the idea of the watcher - it is actually:
>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> [
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
>
> openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> apache/openwebbeans-meecrowave · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> apache/openwebbeans-meecrowave development by creating an account on GitHub.
>
>
> openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> apache/openwebbeans-meecrowave · GitHub<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
> [
> https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
>
> openwebbeans-meecrowave/ReloadOnChangeController.java at master ·
> apache/openwebbeans-meecrowave · GitHub<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
> >
> smex-ctp.trendmicro.com
> Apache OpenWebBeans meecrowave. Contribute to
> apache/openwebbeans-meecrowave development by creating an account on GitHub.
>
>
> github.com
> Apache OpenWebBeans meecrowave. Contribute to
> apache/openwebbeans-meecrowave development by creating an account on GitHub.
>
>
> .
> Issue is it is not an easy impl since the best impl you can do is to
> debounce the reloading to avoid to reload 15 times just for one atomic
> change. but it rarely really match the dev experience.
> So it works well for small projects with 2-3 classes but for real projects
> it depends a lot on the compilation. This is how the manual reloading
> command started, it avoids all these pitfalls.
> The alternative is to have a post refresh command automatically called (a
> bit like livereload), but we don't have it yet.
>
> So to summarize, here are the enhancements I can see:
>
> 1. integrate more deeply reloadGoals with watcherBouncing (watching
> sources, calling reloadGoals and then reloading the context)
> 2. ensure watcherBouncing can recreate the classloader of the mojo,
> 3. potentially add a "manualrefresh" goal which would integrate with run
> mojo and force a reload *after* the actual resource/classes
> recompilation/reprocessing to avoid timing issues (can be as simple as
> creating a file .dirty, if present the reload controller refreshes the
> context and deletes it - or just tracks the last modified date, something
> like that)
>
> hope it makes sense
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
> | Old Blog
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> Index<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> Index<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> smex-ctp.trendmicro.com
> An opiniated IT blogging.
>
>
> rmannibucau.metawerx.net
> An opiniated IT blogging.
>
>
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
> | Github <https://github.com/rmannibucau> |
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823242
> ]<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://rmannibucau.metawerx.net<
> https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> smex-ctp.trendmicro.com
> New posts here >>> https://rmannibucau.metawerx.net
>
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://github.com/rmannibucau>
>
> rmannibucau (Romain Manni-Bucau) · GitHub<https://github.com/rmannibucau>
> github.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
>
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://github.com/rmannibucau>
>
> rmannibucau (Romain Manni-Bucau) · GitHub<https://github.com/rmannibucau>
> github.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821394
> ]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> rmannibucau.wordpress.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
>
>
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
> Java EE 8 High Performance | Packt<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> www.packtpub.com<http://www.packtpub.com>
> Get more control of your applications performances in development and
> production and know how to meet your Service Level Agreement on critical
> microservices.
>
>
>
>
> Le jeu. 23 avr. 2020 à 13:12, Arne Limburg <ar...@openknowledge.de>
> a écrit :
>
> > Switching to dev-list...
> >
> > It should be easy to implement a (configurable, filewatcher-based)
> > auto-reload based on that setup, shouldn't it?
> >
> > If there is some interest here, I'll take a look into that.
> >
> > Wdyt?
> >
> >
> > Cheers,
> >
> > Arne
> >
> >
> > OPEN KNOWLEDGE GmbH
> > Poststraße 1, 26122 Oldenburg
> > Mobil: +49 151 - 108 22 942
> > Tel: +49 441 - 4082-154
> > Fax: +49 441 - 4082-111
> > arne.limburg@openknowledge.de
> > www.openknowledge.de<http://www.openknowledge.de<
> http://www.openknowledge.de<http://www.openknowledge.de>> <
> https://www.openknowledge.de/>
> OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
> OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> > Registergericht: Amtsgericht Oldenburg, HRB 4670
> > Geschäftsführer: Lars Röwekamp, Jens Schumann
> >
> > Treffen Sie uns auf kommenden Konferenzen und Workshops:
> >
> > Zu unseren Events<https://www.openknowledge.de/event/>
> Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
> www.openknowledge.de<http://www.openknowledge.de>
> OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung
> mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte
> sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).
>
>
> >
> >
> >
> >
> >
> > ________________________________
> > Von: Arne Limburg
> > Gesendet: Donnerstag, 23. April 2020 13:10
> > An: user@openwebbeans.apache.org
> > Betreff: AW: Meecrowave auto reload
> >
> >
> > OK, thank you, that setup works.
> >
> > Cheers, Arne
> >
> > ________________________________
> > Von: Romain Manni-Bucau <rm...@gmail.com>
> > Gesendet: Donnerstag, 23. April 2020 12:06:03
> > An: user@openwebbeans.apache.org
> > Betreff: Re: Meecrowave auto reload
> >
> > Hi Arne,
> >
> > personally I don't use the polling but this setup:
> >
> > 1. configure what the reloading recompile through reloadGoals:
> >
> >
> > <plugin>
> >   <groupId>org.apache.meecrowave</groupId>
> >   <artifactId>meecrowave-maven-plugin</artifactId>
> >   <version>1.2.9</version>
> >   <configuration>
> >     <reloadGoals>
> >       <reloadGoal>process-classes</reloadGoal>
> >     </reloadGoals>
> >   </configuration>
> > </plugin>
> >
> > 2. do the changes you want
> > 3. go in the terminal meecrowave:bake/meecrowave:run is executed and type
> > "r" (or "reload" from memory)
> > 4. test your changes
> >
> > It just executes mvn <reload goals> and redeploy the app.
> >
> > watcherBouncing was more about static resources (frontend) and should be
> > combined with <webResourceCached>false</webResourceCached>.
> >
> > The watcher on his side watches the deployed folders (target/classes) and
> > reloads when it changes (which can be too early sometimes depending
> watcher
> > duration).
> > The issue you hit is that target/classes is in the classloader created
> > once for the runtime in the mojo (since you deploy classpath and not as a
> > webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you
> > actually don't reload the classes with just the watcher by default.
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau<https://twitter.com/rmannibucau> |  Blog<
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
> |Old Blog<
> Index<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> >
> rmannibucau.metawerx.net
> An opiniated IT blogging.
>
>
> >
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
> | Github<https://github.com/rmannibucau>
> [https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<
> https://github.com/rmannibucau>
>
> rmannibucau (Romain Manni-Bucau) · GitHub<https://github.com/rmannibucau>
> github.com
> Apache addict I'm involved in several project (OpenWebBeans, Johnzon,
> Geronimo, Meecrowave, ... -
> http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau
>
> [
> https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821485
> ]<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
>
> New posts here >>> rmannibucau.metawerx.net | New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
> <
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853
> >
> rmannibucau.wordpress.com
> New posts here >>>
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e
>
>
> > |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> [https://static.packt-cdn.com/products/9781788473064/cover/smaller]<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
> Java EE 8 High Performance | Packt<
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> www.packtpub.com<http://www.packtpub.com>
> Get more control of your applications performances in development and
> production and know how to meet your Service Level Agreement on critical
> microservices.
>
>
> > >
> >
> >
> > Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <
> arne.limburg@openknowledge.de
> > <ma...@openknowledge.de>> a écrit :
> >
> > Hi,
> >
> > I am fiddling around with the auto-reload feature in meecrowave.
> >
> > I have configured the maven plugin to set watcherBouncing to 1 and start
> > meecrowave with the plugin.
> >
> > The log correctly states that target classes is scanned
> >
> > OpenWebBeans scanning:
> > [...]
> > [11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]
> >  [...]/target/classes
> >
> >
> > When I change a class in the deployment, the server correctly does a
> > redeploy,
> >
> > but after the redeploy the content of the changed class seems not to have
> > changed in the server.
> >
> > The class behaves like before.
> >
> > Is there some hidden class caching somewhere (in cxf or tomcat or so),
> > which I have to turn of?
> >
> > Any ideas?
> >
> >
> > Cheers,
> >
> > Arne
> >
>

AW: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Arne Limburg <ar...@openknowledge.de>.
Sorry for the mangled link (outlook seems to do that automatically for github urls). Here is the plain link: https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Arne Limburg <ar...@openknowledge.de>
Gesendet: Mittwoch, 12. Mai 2021 14:14
An: openwebbeans-dev
Betreff: [DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Hi all,


I have managed to implement class reloading for meecrowave via our maven plugin:

https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc
[https://opengraph.githubassets.com/befeedc4a1c616c1dd05f388c46fce15e669dac8f4c749ee0df26d66c5de36dd/ArneLimburg/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>

GitHub - ArneLimburg/openwebbeans-meecrowave at MEECROWAVE-290<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fArneLimburg%2fopenwebbeans%2dmeecrowave%2ftree%2fMEECROWAVE%2d290&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-f3c96a0cfa58a4835b5d993fe05147eb9d242adc>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to ArneLimburg/openwebbeans-meecrowave development by creating an account on GitHub.




Unfortunately this does not work for the programmatic start of Meecrowave (i.e. WatcherTest fails). So I added a config property "reloadClasses" to signal, if class reloading should be done (in the maven plugin case) or not (in the programmatic case).


Do you have any better idea to handle that? Or any concrete idea to merge that with "reloadGoals"?


Cheers,

Arne


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de<http://www.openknowledge.de> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).



Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).







________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Donnerstag, 23. April 2020 13:34
An: openwebbeans-dev
Betreff: Re: Meecrowave auto reload

It was the idea of the watcher - it is actually:
https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77
[https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>

openwebbeans-meecrowave/ReloadOnChangeController.java at master · apache/openwebbeans-meecrowave · GitHub<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to apache/openwebbeans-meecrowave development by creating an account on GitHub.


openwebbeans-meecrowave/ReloadOnChangeController.java at master · apache/openwebbeans-meecrowave · GitHub<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>
[https://opengraph.githubassets.com/6ce2003810250832fb38bc463b1b7db3ae6810d091634aa4c141293c367b1723/apache/openwebbeans-meecrowave]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>

openwebbeans-meecrowave/ReloadOnChangeController.java at master · apache/openwebbeans-meecrowave · GitHub<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fapache%2fopenwebbeans%2dmeecrowave%2fblob%2fmaster%2fmeecrowave%2dcore%2fsrc%2fmain%2fjava%2forg%2fapache%2fmeecrowave%2fwatching%2fReloadOnChangeController.java&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-dfda7860397a001c120aa2db678ba4311f763c77>
smex-ctp.trendmicro.com
Apache OpenWebBeans meecrowave. Contribute to apache/openwebbeans-meecrowave development by creating an account on GitHub.


github.com
Apache OpenWebBeans meecrowave. Contribute to apache/openwebbeans-meecrowave development by creating an account on GitHub.


.
Issue is it is not an easy impl since the best impl you can do is to
debounce the reloading to avoid to reload 15 times just for one atomic
change. but it rarely really match the dev experience.
So it works well for small projects with 2-3 classes but for real projects
it depends a lot on the compilation. This is how the manual reloading
command started, it avoids all these pitfalls.
The alternative is to have a post refresh command automatically called (a
bit like livereload), but we don't have it yet.

So to summarize, here are the enhancements I can see:

1. integrate more deeply reloadGoals with watcherBouncing (watching
sources, calling reloadGoals and then reloading the context)
2. ensure watcherBouncing can recreate the classloader of the mojo,
3. potentially add a "manualrefresh" goal which would integrate with run
mojo and force a reload *after* the actual resource/classes
recompilation/reprocessing to avoid timing issues (can be as simple as
creating a file .dirty, if present the reload controller refreshes the
context and deletes it - or just tracks the last modified date, something
like that)

hope it makes sense

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e> | Old Blog
Index<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
smex-ctp.trendmicro.com
An opiniated IT blogging.


Index<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
Index<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
smex-ctp.trendmicro.com
An opiniated IT blogging.


rmannibucau.metawerx.net
An opiniated IT blogging.


<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853> | Github <https://github.com/rmannibucau> |
[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620823242]<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://rmannibucau.metawerx.net<https://smex-ctp.trendmicro.com/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
smex-ctp.trendmicro.com
New posts here >>> https://rmannibucau.metawerx.net

[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://github.com/rmannibucau>

rmannibucau (Romain Manni-Bucau) · GitHub<https://github.com/rmannibucau>
github.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau


[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://github.com/rmannibucau>

rmannibucau (Romain Manni-Bucau) · GitHub<https://github.com/rmannibucau>
github.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau

[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821394]<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
rmannibucau.wordpress.com
New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e


LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
[https://static.packt-cdn.com/products/9781788473064/cover/smaller]<https://www.packtpub.com/application-development/java-ee-8-high-performance>

Java EE 8 High Performance | Packt<https://www.packtpub.com/application-development/java-ee-8-high-performance>
www.packtpub.com<http://www.packtpub.com>
Get more control of your applications performances in development and production and know how to meet your Service Level Agreement on critical microservices.




Le jeu. 23 avr. 2020 à 13:12, Arne Limburg <ar...@openknowledge.de>
a écrit :

> Switching to dev-list...
>
> It should be easy to implement a (configurable, filewatcher-based)
> auto-reload based on that setup, shouldn't it?
>
> If there is some interest here, I'll take a look into that.
>
> Wdyt?
>
>
> Cheers,
>
> Arne
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de<http://www.openknowledge.de>> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de<http://www.openknowledge.de>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de<http://www.openknowledge.de>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de<http://www.openknowledge.de>
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
>
>
>
>
> ________________________________
> Von: Arne Limburg
> Gesendet: Donnerstag, 23. April 2020 13:10
> An: user@openwebbeans.apache.org
> Betreff: AW: Meecrowave auto reload
>
>
> OK, thank you, that setup works.
>
> Cheers, Arne
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Donnerstag, 23. April 2020 12:06:03
> An: user@openwebbeans.apache.org
> Betreff: Re: Meecrowave auto reload
>
> Hi Arne,
>
> personally I don't use the polling but this setup:
>
> 1. configure what the reloading recompile through reloadGoals:
>
>
> <plugin>
>   <groupId>org.apache.meecrowave</groupId>
>   <artifactId>meecrowave-maven-plugin</artifactId>
>   <version>1.2.9</version>
>   <configuration>
>     <reloadGoals>
>       <reloadGoal>process-classes</reloadGoal>
>     </reloadGoals>
>   </configuration>
> </plugin>
>
> 2. do the changes you want
> 3. go in the terminal meecrowave:bake/meecrowave:run is executed and type
> "r" (or "reload" from memory)
> 4. test your changes
>
> It just executes mvn <reload goals> and redeploy the app.
>
> watcherBouncing was more about static resources (frontend) and should be
> combined with <webResourceCached>false</webResourceCached>.
>
> The watcher on his side watches the deployed folders (target/classes) and
> reloads when it changes (which can be too early sometimes depending watcher
> duration).
> The issue you hit is that target/classes is in the classloader created
> once for the runtime in the mojo (since you deploy classpath and not as a
> webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you
> actually don't reload the classes with just the watcher by default.
>
>
> Romain Manni-Bucau
> @rmannibucau<https://twitter.com/rmannibucau> |  Blog<
> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e> |Old Blog<
Index<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e>
rmannibucau.metawerx.net
An opiniated IT blogging.


> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853> | Github<https://github.com/rmannibucau>
[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://github.com/rmannibucau>

rmannibucau (Romain Manni-Bucau) · GitHub<https://github.com/rmannibucau>
github.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau

[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821485]<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e<https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2frmannibucau.wordpress.com&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-02c318fb391a9d61dbdb79df286aa3c16b09c853>
rmannibucau.wordpress.com
New posts here >>> https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2frmannibucau.metawerx.net&umid=24f6de0a-3fbc-49f0-85a7-4de687983e93&auth=ab2dbe9a65917e05515ec2a89459f3e450df8ff8-8f1172d5dca92be5bd0074c5810efcb5616d930e


> |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
[https://static.packt-cdn.com/products/9781788473064/cover/smaller]<https://www.packtpub.com/application-development/java-ee-8-high-performance>

Java EE 8 High Performance | Packt<https://www.packtpub.com/application-development/java-ee-8-high-performance>
www.packtpub.com<http://www.packtpub.com>
Get more control of your applications performances in development and production and know how to meet your Service Level Agreement on critical microservices.


> >
>
>
> Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <arne.limburg@openknowledge.de
> <ma...@openknowledge.de>> a écrit :
>
> Hi,
>
> I am fiddling around with the auto-reload feature in meecrowave.
>
> I have configured the maven plugin to set watcherBouncing to 1 and start
> meecrowave with the plugin.
>
> The log correctly states that target classes is scanned
>
> OpenWebBeans scanning:
> [...]
> [11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]
>  [...]/target/classes
>
>
> When I change a class in the deployment, the server correctly does a
> redeploy,
>
> but after the redeploy the content of the changed class seems not to have
> changed in the server.
>
> The class behaves like before.
>
> Is there some hidden class caching somewhere (in cxf or tomcat or so),
> which I have to turn of?
>
> Any ideas?
>
>
> Cheers,
>
> Arne
>

[DISCUSS] MEECROWAVE-290 - Enable class-reloading for meecowave maven plugin

Posted by Arne Limburg <ar...@openknowledge.de>.
Hi all,


I have managed to implement class reloading for meecrowave via our maven plugin:

https://github.com/ArneLimburg/openwebbeans-meecrowave/tree/MEECROWAVE-290


Unfortunately this does not work for the programmatic start of Meecrowave (i.e. WatcherTest fails). So I added a config property "reloadClasses" to signal, if class reloading should be done (in the maven plugin case) or not (in the programmatic case).


Do you have any better idea to handle that? Or any concrete idea to merge that with "reloadGoals"?


Cheers,

Arne


--

Arne Limburg - Enterprise Architekt




OPEN KNOWLEDGE GmbH
Poststraße 1, 26122 Oldenburg
Mobil: +49 151 - 108 22 942
Tel: +49 441 - 4082-154
Fax: +49 441 - 4082-111
arne.limburg@openknowledge.de
www.openknowledge.de <https://www.openknowledge.de/>

Registergericht: Amtsgericht Oldenburg, HRB 4670
Geschäftsführer: Lars Röwekamp, Jens Schumann

Treffen Sie uns auf kommenden Konferenzen und Workshops:

Zu unseren Events<https://www.openknowledge.de/event/>





________________________________
Von: Romain Manni-Bucau <rm...@gmail.com>
Gesendet: Donnerstag, 23. April 2020 13:34
An: openwebbeans-dev
Betreff: Re: Meecrowave auto reload

It was the idea of the watcher - it is actually:
https://github.com/apache/openwebbeans-meecrowave/blob/master/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java
openwebbeans-meecrowave/ReloadOnChangeController.java at master · apache/openwebbeans-meecrowave · GitHub<https://github.com/apache/openwebbeans-meecrowave/blob/master/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java>
github.com
Apache OpenWebBeans meecrowave. Contribute to apache/openwebbeans-meecrowave development by creating an account on GitHub.


.
Issue is it is not an easy impl since the best impl you can do is to
debounce the reloading to avoid to reload 15 times just for one atomic
change. but it rarely really match the dev experience.
So it works well for small projects with 2-3 classes but for real projects
it depends a lot on the compilation. This is how the manual reloading
command started, it avoids all these pitfalls.
The alternative is to have a post refresh command automatically called (a
bit like livereload), but we don't have it yet.

So to summarize, here are the enhancements I can see:

1. integrate more deeply reloadGoals with watcherBouncing (watching
sources, calling reloadGoals and then reloading the context)
2. ensure watcherBouncing can recreate the classloader of the mojo,
3. potentially add a "manualrefresh" goal which would integrate with run
mojo and force a reload *after* the actual resource/classes
recompilation/reprocessing to avoid timing issues (can be as simple as
creating a file .dirty, if present the reload controller refreshes the
context and deletes it - or just tracks the last modified date, something
like that)

hope it makes sense

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
Index<https://rmannibucau.metawerx.net/>
rmannibucau.metawerx.net
An opiniated IT blogging.


<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://github.com/rmannibucau>

rmannibucau (Romain Manni-Bucau) · GitHub<https://github.com/rmannibucau>
github.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau

[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821394]<http://rmannibucau.wordpress.com/>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://rmannibucau.metawerx.net<http://rmannibucau.wordpress.com/>
rmannibucau.wordpress.com
New posts here >>> https://rmannibucau.metawerx.net


LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
[https://static.packt-cdn.com/products/9781788473064/cover/smaller]<https://www.packtpub.com/application-development/java-ee-8-high-performance>

Java EE 8 High Performance | Packt<https://www.packtpub.com/application-development/java-ee-8-high-performance>
www.packtpub.com
Get more control of your applications performances in development and production and know how to meet your Service Level Agreement on critical microservices.




Le jeu. 23 avr. 2020 à 13:12, Arne Limburg <ar...@openknowledge.de>
a écrit :

> Switching to dev-list...
>
> It should be easy to implement a (configurable, filewatcher-based)
> auto-reload based on that setup, shouldn't it?
>
> If there is some interest here, I'll take a look into that.
>
> Wdyt?
>
>
> Cheers,
>
> Arne
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de<http://www.openknowledge.de> <https://www.openknowledge.de/>
OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).

OPEN KNOWLEDGE GmbH<http://www.openknowledge.de/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
Events | OPEN KNOWLEDGE GmbH<https://www.openknowledge.de/event/>
www.openknowledge.de
OPEN KNOWLEDGE GmbH steht für agile Softwareentwicklung und IT-Beratung mit Expertise in den Bereichen Enterprise und Cloud Computing. Standorte sind Oldenburg (Niedersachsen) und Essen (Nordrhein-Westfalen).


>
>
>
>
>
> ________________________________
> Von: Arne Limburg
> Gesendet: Donnerstag, 23. April 2020 13:10
> An: user@openwebbeans.apache.org
> Betreff: AW: Meecrowave auto reload
>
>
> OK, thank you, that setup works.
>
> Cheers, Arne
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Donnerstag, 23. April 2020 12:06:03
> An: user@openwebbeans.apache.org
> Betreff: Re: Meecrowave auto reload
>
> Hi Arne,
>
> personally I don't use the polling but this setup:
>
> 1. configure what the reloading recompile through reloadGoals:
>
>
> <plugin>
>   <groupId>org.apache.meecrowave</groupId>
>   <artifactId>meecrowave-maven-plugin</artifactId>
>   <version>1.2.9</version>
>   <configuration>
>     <reloadGoals>
>       <reloadGoal>process-classes</reloadGoal>
>     </reloadGoals>
>   </configuration>
> </plugin>
>
> 2. do the changes you want
> 3. go in the terminal meecrowave:bake/meecrowave:run is executed and type
> "r" (or "reload" from memory)
> 4. test your changes
>
> It just executes mvn <reload goals> and redeploy the app.
>
> watcherBouncing was more about static resources (frontend) and should be
> combined with <webResourceCached>false</webResourceCached>.
>
> The watcher on his side watches the deployed folders (target/classes) and
> reloads when it changes (which can be too early sometimes depending watcher
> duration).
> The issue you hit is that target/classes is in the classloader created
> once for the runtime in the mojo (since you deploy classpath and not as a
> webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you
> actually don't reload the classes with just the watcher by default.
>
>
> Romain Manni-Bucau
> @rmannibucau<https://twitter.com/rmannibucau> |  Blog<
> https://rmannibucau.metawerx.net/> |Old Blog<
Index<https://rmannibucau.metawerx.net/>
rmannibucau.metawerx.net
An opiniated IT blogging.


> http://rmannibucau.wordpress.com> | Github<https://github.com/rmannibucau>
[https://avatars.githubusercontent.com/u/1249546?v=4?s=400]<https://github.com/rmannibucau>

rmannibucau (Romain Manni-Bucau) · GitHub<https://github.com/rmannibucau>
github.com
Apache addict I'm involved in several project (OpenWebBeans, Johnzon, Geronimo, Meecrowave, ... - http://home.apache.org/committer-index.html#rmannibucau). - rmannibucau

[https://secure.gravatar.com/blavatar/18ef8a5fe8eefd3810b5e9743904d82c?s=200&ts=1620821485]<http://rmannibucau.wordpress.com/>

New posts here >>> rmannibucau.metawerx.net | New posts here >>> https://rmannibucau.metawerx.net<http://rmannibucau.wordpress.com/>
rmannibucau.wordpress.com
New posts here >>> https://rmannibucau.metawerx.net


> |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
[https://static.packt-cdn.com/products/9781788473064/cover/smaller]<https://www.packtpub.com/application-development/java-ee-8-high-performance>

Java EE 8 High Performance | Packt<https://www.packtpub.com/application-development/java-ee-8-high-performance>
www.packtpub.com
Get more control of your applications performances in development and production and know how to meet your Service Level Agreement on critical microservices.


> >
>
>
> Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <arne.limburg@openknowledge.de
> <ma...@openknowledge.de>> a écrit :
>
> Hi,
>
> I am fiddling around with the auto-reload feature in meecrowave.
>
> I have configured the maven plugin to set watcherBouncing to 1 and start
> meecrowave with the plugin.
>
> The log correctly states that target classes is scanned
>
> OpenWebBeans scanning:
> [...]
> [11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]
>  [...]/target/classes
>
>
> When I change a class in the deployment, the server correctly does a
> redeploy,
>
> but after the redeploy the content of the changed class seems not to have
> changed in the server.
>
> The class behaves like before.
>
> Is there some hidden class caching somewhere (in cxf or tomcat or so),
> which I have to turn of?
>
> Any ideas?
>
>
> Cheers,
>
> Arne
>

Re: Meecrowave auto reload

Posted by Romain Manni-Bucau <rm...@gmail.com>.
It was the idea of the watcher - it is actually:
https://github.com/apache/openwebbeans-meecrowave/blob/master/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java
.
Issue is it is not an easy impl since the best impl you can do is to
debounce the reloading to avoid to reload 15 times just for one atomic
change. but it rarely really match the dev experience.
So it works well for small projects with 2-3 classes but for real projects
it depends a lot on the compilation. This is how the manual reloading
command started, it avoids all these pitfalls.
The alternative is to have a post refresh command automatically called (a
bit like livereload), but we don't have it yet.

So to summarize, here are the enhancements I can see:

1. integrate more deeply reloadGoals with watcherBouncing (watching
sources, calling reloadGoals and then reloading the context)
2. ensure watcherBouncing can recreate the classloader of the mojo,
3. potentially add a "manualrefresh" goal which would integrate with run
mojo and force a reload *after* the actual resource/classes
recompilation/reprocessing to avoid timing issues (can be as simple as
creating a file .dirty, if present the reload controller refreshes the
context and deletes it - or just tracks the last modified date, something
like that)

hope it makes sense

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 23 avr. 2020 à 13:12, Arne Limburg <ar...@openknowledge.de>
a écrit :

> Switching to dev-list...
>
> It should be easy to implement a (configurable, filewatcher-based)
> auto-reload based on that setup, shouldn't it?
>
> If there is some interest here, I'll take a look into that.
>
> Wdyt?
>
>
> Cheers,
>
> Arne
>
>
> OPEN KNOWLEDGE GmbH
> Poststraße 1, 26122 Oldenburg
> Mobil: +49 151 - 108 22 942
> Tel: +49 441 - 4082-154
> Fax: +49 441 - 4082-111
> arne.limburg@openknowledge.de
> www.openknowledge.de <https://www.openknowledge.de/>
>
> Registergericht: Amtsgericht Oldenburg, HRB 4670
> Geschäftsführer: Lars Röwekamp, Jens Schumann
>
> Treffen Sie uns auf kommenden Konferenzen und Workshops:
>
> Zu unseren Events<https://www.openknowledge.de/event/>
>
>
>
>
>
> ________________________________
> Von: Arne Limburg
> Gesendet: Donnerstag, 23. April 2020 13:10
> An: user@openwebbeans.apache.org
> Betreff: AW: Meecrowave auto reload
>
>
> OK, thank you, that setup works.
>
> Cheers, Arne
>
> ________________________________
> Von: Romain Manni-Bucau <rm...@gmail.com>
> Gesendet: Donnerstag, 23. April 2020 12:06:03
> An: user@openwebbeans.apache.org
> Betreff: Re: Meecrowave auto reload
>
> Hi Arne,
>
> personally I don't use the polling but this setup:
>
> 1. configure what the reloading recompile through reloadGoals:
>
>
> <plugin>
>   <groupId>org.apache.meecrowave</groupId>
>   <artifactId>meecrowave-maven-plugin</artifactId>
>   <version>1.2.9</version>
>   <configuration>
>     <reloadGoals>
>       <reloadGoal>process-classes</reloadGoal>
>     </reloadGoals>
>   </configuration>
> </plugin>
>
> 2. do the changes you want
> 3. go in the terminal meecrowave:bake/meecrowave:run is executed and type
> "r" (or "reload" from memory)
> 4. test your changes
>
> It just executes mvn <reload goals> and redeploy the app.
>
> watcherBouncing was more about static resources (frontend) and should be
> combined with <webResourceCached>false</webResourceCached>.
>
> The watcher on his side watches the deployed folders (target/classes) and
> reloads when it changes (which can be too early sometimes depending watcher
> duration).
> The issue you hit is that target/classes is in the classloader created
> once for the runtime in the mojo (since you deploy classpath and not as a
> webapp - <useClasspathDeployment>false</useClasspathDeployment>) so you
> actually don't reload the classes with just the watcher by default.
>
>
> Romain Manni-Bucau
> @rmannibucau<https://twitter.com/rmannibucau> |  Blog<
> https://rmannibucau.metawerx.net/> |Old Blog<
> http://rmannibucau.wordpress.com> | Github<https://github.com/rmannibucau>
> |LinkedIn<https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le jeu. 23 avr. 2020 à 11:50, Arne Limburg <arne.limburg@openknowledge.de
> <ma...@openknowledge.de>> a écrit :
>
> Hi,
>
> I am fiddling around with the auto-reload feature in meecrowave.
>
> I have configured the maven plugin to set watcherBouncing to 1 and start
> meecrowave with the plugin.
>
> The log correctly states that target classes is scanned
>
> OpenWebBeans scanning:
> [...]
> [11:41:48.738][INFO ][cher-redeployer][ans.OWBTomcatWebScannerService]
>  [...]/target/classes
>
>
> When I change a class in the deployment, the server correctly does a
> redeploy,
>
> but after the redeploy the content of the changed class seems not to have
> changed in the server.
>
> The class behaves like before.
>
> Is there some hidden class caching somewhere (in cxf or tomcat or so),
> which I have to turn of?
>
> Any ideas?
>
>
> Cheers,
>
> Arne
>