openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <>
Subject Re: EAR-packaging with EJBs, CDI etc
Date Wed, 14 May 2014 10:53:09 GMT

basically in JavaEE 6 ear packaging is not enough specified, see tomee behavior follows:
webapps inheri from ear "lib" beans (shared)

Romain Manni-Bucau
Twitter: @rmannibucau

2014-05-14 12:49 GMT+02:00 Lars-Fredrik Smedberg <>:
> Hi!
> Are there any nice articles / guides on how to package EJBs, classes placed
> in WARs and have it work together with CDI?
> For EJBs we have the choice of packaging them as seperate EJB-jars or to
> place them in the WAR (as a jar in WEB-INF/lib or as classes in
> WEB-INF/classes).
> If we e.g. have a CDI managed @ApplicationScoped bean in a CDI archive
> (jar-file) and package that jar-file in two separate WARs. Will they then
> share application context or not?
> Can anyone explain the mechanism here and maybe if I have a choice of a
> shared application context or not and if so the different packaging options
> I have?
> Regards
> Lars-Fredrik
> --
> Med vänlig hälsning / Best regards
> Lars-Fredrik Smedberg
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of the
> address(es) and may contain confidential or privileged information. If
> you are not the intended recipient, please notify Lars-Fredrik Smedberg
> immediately at, and destroy all copies of this
> message and any attachments.

View raw message