Hi all

Let me first explain what I want to do. I want to have the following tree of JPMS layers:

                            Site 1 layer
                           /
WebServer layer - Site M layer
                          \
                           Site N layer

As we see WebServer layer has access to all site layers and every site
layer has access to WebServer layer. Any site layer can be added
and removed dynamically. Every site layer has one .war file and some .jar
files.

For every site I need two java ee technologies: servlets and cdi. So, for servlet container
I plan to use Jetty and for cdi container I want to use weld.

Could anyone answer the following questions:
1) can weld be used this way?
2) how should I use weld - should I create container for every layer or ...?

I would appreciate any help and ideas.

Best regards,  Alex Sviridov