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?

chapter 12 of cdi spec:

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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -