users@javaserverfaces.java.net

Re: JSF performance in GF 4.0

From: manfred riem <manfred.riem_at_oracle.com>
Date: Thu, 24 Oct 2013 14:04:50 -0500

As CDI is enabled by default in EE7 you are seeing it is trying
to determine if there are injection points.

You can limit its processing by adding a beans.xml in the
WEB-INF directory.

|<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
                http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
        bean-discovery-mode="*none*">
</beans>|

Note you should only use this particular beans.xml file if you do NOT
use CDI.

Thanks!
Manfred

On 10/24/13 1:57 PM, wismar25_at_hotmail.com wrote:
> I'm not using CDI, my app was developed with JSF 2.1.x but I need
> migrate to GF4.0
>
> Check this link:
>
> 1)
> https://www.dropbox.com/s/nmhh60qb5st265f/Test2%20-%20GF4.0.png
> "org.glassfish.faces.integration.GlassFishInjectionProvider.inject(Obje
> ct)" is consuming a lot of time, 81.5ms from 141ms.
>
> 2)
> https://www.dropbox.com/s/ldtw944n2d9azwt/Test3%20-%20GF4.0.png
> "org.glassfish.faces.integration.GlassFishInjectionProvider.inject(Obje
> ct)" is consuming 226ms from 378ms.
>
> Can you guide me to resolve this?
>
> PD: Sorry, for the last email, remove it.