openwebbeans-user mailing list archives

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

basically in JavaEE 6 ear packaging is not enough specified, see
https://issues.jboss.org/browse/CDI-129. tomee behavior follows:
webapps inheri from ear "lib" beans (shared)


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-05-14 12:49 GMT+02:00 Lars-Fredrik Smedberg <itsmeden@gmail.com>:
> 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
>
> STATEMENT OF CONFIDENTIALITY:
> 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 itsmeden@gmail.com, and destroy all copies of this
> message and any attachments.

Mime
View raw message