RE: Status of CDI OSGI + Liferay Faces to avoid having Weld jar files in WA

thumbnail
Juan Gonzalez, modified 6 Years ago. Liferay Legend Posts: 3089 Join Date: 10/28/08 Recent Posts
Hi! I know some work were made (https://issues.liferay.com/browse/LPS-86079) in order to have CDI implementation as part of an OSGI module.Here https://issues.liferay.com/browse/LPS-86824 there was some failure of a CDI portlet, but don't know what steps should be made in order to have CDI OSGI working in Liferay Faces portlets. This way we could avoid adding CDI implementation jar files in our portlets.Thanks!
thumbnail
Neil Griffin, modified 6 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts
Hi Juan,Liferay Portal 7.1 CE GA4 and 7.2 CE GA1 have weld-osgi-bundle deployed under $LIFERAY_HOME/osgi/modules. That makes it possible to have thin Portlet 3.0 "bean portlets" that rely on CDI.
However, we don't have a version of Liferay Faces Bridge that supports the "bean portlet" feature yet.Kyle recently pushed some commits to the liferay-faces-bridge-impl, liferay-faces-bridge-ext, and liferay-faces-util Git repos under the following tickets:- FACES-3471: Allow use of Liferay Provided CDI (instead of embedded Weld)- FACES-3024: Enable deployment of Liferay Faces dependencies as OSGi bundlesAlthough "bean portlet" is a feature of Portlet 3.0, we're trying to see if we can make it work with the 4.x version of Liferay Faces Bridge (which is compiled against the Portlet 2.0 API). We won't have a Portlet 3.0 version of the bridge until JSR 378 is complete.So the overall message is that we're making progress towards the ability to not rely on WEB-INF/weld-servlet.jar -- but we're not there yet.Best Regards,Neil