java ee - How can CDI event in a EAR fires and observe from different EAR in same JVM? -
i have tested scenario, cdi event in 1 ear triggers , consumer can invoke long same ear. cdi event limited ear package?
the container searches beans in bean archives in application classpath: in application deployed ear, container searches every bean archive bundled or referenced ear, including bean archives bundled or referenced wars , ejb jars contained in ear. bean archives might library jars, ejb jars, rars or war web-inf/classes directories.
so - yes, cdi event limited ear package.
5.5.6. invocation of observer methods
if observer method static, container must invoke method.
otherwise, if observer method non-static, the container must: ...
Comments
Post a Comment