[webbeans-dev] capturing module context in the SPI
Kenneth Saks
Kenneth.Saks at Sun.COM
Tue Aug 11 10:48:21 EDT 2009
I'd like to follow-up on the module context SPI discussion from the
July 31st con call. There are a number of SPI methods that will be
ambiguous w.r.t. module in the presence of an .ear with multiple 299-
enabled modules.
For example, EjbServices.resolveEjb(InjectionPoint injectionPoint) and
JpaServices.resolvePersistenceContext(String unitName). These are
both cases where the container side needs additional module context
but there are probably equivalent cases for the webbeans side of the
contracts.
One way to solve this is to move the services registrations to the
BeanDeploymentArchive level instead of on Bootstrap, since there is
only one instance of Bootstrap for the entire .ear. Thoughts?
More information about the weld-dev
mailing list