-
1. Re: CDI: Compose beans.xml from multiple configuration files
mkouba Oct 24, 2013 7:13 AM (in response to bam)Hi Matthias,
I'm not sure I completely understand your question. However it's not possible to use any "import" statements in beans.xml. In fact CDI defines a concept of bean archive. The bean archives might be EJB jars, library jars, WEB-INF/classes directory, etc. (see the spec, 12.1 Bean archives). In CDI 1.0 each bean archive must have its own beans.xml, in CDI 1.1 this requirement only applies to explicit bean archives.
-
2. Re: CDI: Compose beans.xml from multiple configuration files
bam Oct 24, 2013 7:48 AM (in response to mkouba)Hello Martin,
thanks for the quick reply!
As I understand, if I want to separete the contents of the beans.xml into modules, I have to create an archive for every module.
Not exactly what I was looking for, but I guess the requirement for splitting an beans.xml file within one archive is not necessary for most applications.
Thanks again for the hint!