-
1. Re: Weld not activated for portlets?
nickarls Feb 28, 2012 3:06 PM (in response to nickarls)Is CDI even supposed to work in the AS7-branch? I used the sandbox/as7_support/tags/AS7-Beta03 but then I noticed that sandbox has a cdi_support branch, those are not merged, are they?
-
2. Re: Weld not activated for portlets?
mstruk Feb 28, 2012 4:42 PM (in response to nickarls)CDI support branch in sandbox is a prototype of CDI support in portlets. It only covers portlets not any bridge technologies. It also is primarily an exploration of what GateIn services to make available for injection, and how to target specific gatein kernel containers.
It has not yet been integrated into trunk, and hasn't been brought up to date with the trunk for quite a while.
So in short, currently GateIn doesn't provide CDI injection in portlets. And JBoss Portlet Bridge doesn't have any special support for CDI either ATM (meaning it does not provide any custom CDI extension, or API of injectable types to support generic Portlet environment, and specific GateIn environment).
But, if a .war contains beans.xml, AS7 Weld subsystem should kick in and do its thing. Are you sure your beans.xml is in the right place? Otherwise maybe JPB inadvertently somehow breaks the default functioning of CDI ?
-
3. Re: Weld not activated for portlets?
nickarls Feb 28, 2012 4:56 PM (in response to mstruk)Pretty sure beans.xml is in the right place (and the log shows Weld service being started which probably wouldn't happen without the beans.xml)
-
4. Re: Weld not activated for portlets?
mstruk Feb 28, 2012 5:20 PM (in response to nickarls)Try debug it to see what's going on
-
5. Re: Weld not activated for portlets?
nickarls Feb 29, 2012 1:39 AM (in response to mstruk)Yes but between the deployers in AS7, gatein code and bridge code there are lots of places where stuff can (and won't) happen...
-
6. Re: Weld not activated for portlets?
kenfinni Mar 2, 2012 4:34 PM (in response to nickarls)Nicklas,
Hopefully next week I'll be more focused on PBR 3.x and will be able to verify whether this works or not!
Ken