JBoss Community

Re: Implementing a non-flat deployment for Weld Integration

created by Ales Justin in JBoss Microcontainer Development POJO Server - View the full discussion
IMO, I would move the initialization of default domain to a static block. In this block, I would also add the lib Archives after the default domain is created:

The initialization cannot be in a static block, since the libs provider is dynamic -- injected via MC beans.

 

- if the libraries are loaded after ClasspathFactory, we won't enter the loop

OK, while this might save us from this curent loop,

having Classpath that refs itself seems like asking for another loop trouble.

 

Isn't there a better/safer aka proper way of doing this?

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer Development POJO Server at Community