Hi,

I discussed with Romain about OWB-1298.

Mojarra has NO beans.xml but a CDI Extension, which currently breaks OWB as:
- WebsocketUserManager is scanned
- WebsocketUserManager is added in the extension

in the specs (12.1) its defined, that:

An archive which:

   -

   contains a beans.xml file with the bean-discovery-mode of none, or,
   -

   contains an extension and no beans.xml file

is NOT a bean archive.


Which means that OWB should NOT scan Mojarra and therefore users can use
Mojarra with OWB, without adding it to the scan exclusions or setting other
properties.

If MyFaces wouldnt be in the default exclusions, it would also break MF and
maybe other libs.

We should fix it and make it the default behavior.

It should even improve startup as we skip more archives per default.

Romain mentioned that there could be cases, where it could break apps. So
we should maybe introduce a new config property to enable the old behavior
again, which also scans archives with extensions but without beans.xml

this is also related to org.apache.webbeans.scanBeansXmlOnly

WDYT?


Best regards,

Thomas

Reply via email to