How does CDI container fit in EJB/Web container of Java EE server?
<p>A Java EE server has different containers like EJB or Web Container:
<a href="https://i.stack.imgur.com/G9lW6.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/G9lW6.gif" alt="enter image description here"></a></p>

<p>I found however different information on how the CDI component is integrated. In the litarature <a href="http://www.oracle.com/technetwork/articles/java/cdi-javaee-bien-225152.html" rel="noreferrer">some</a> speak of a CDI container ("<em>The CDI container manages all beans inside the scope automatically for you</em>") but others define it as contextual services provided by Java EE containers. Here on stackoverflow there is even a tag called "IOC-Container". So if it is a container is that container part/inside of the EJB/Web container? </p>

<p>So if I draw a picture of a Java EE server with its components and containers (like the above illustration) how does CDI fits in there? Does it get its own container "rectangle" or is it part of some EJB/Web container? How would you draw it in an architectural design and how would you explain/describe it?</p>