You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by cocorossello <co...@gmail.com> on 2014/08/28 22:53:47 UTC

Upgrade myfaces version in Tomee 1.7.0

Hi,

I'm moving from glassfish 4.1 to tomEE 1.7.0. I started with PLUME for an
easier start, but now I want to use myfaces instead of mojarra (I've seen
some performance problems that might be my fault, but it improves a lot with
myfaces).

My question is if it's safe to just upgrade myfaces to last version (2.2.4)
or if I should stick with 2.1.x

Thank you.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Upgrade-myfaces-version-in-Tomee-1-7-0-tp4671458.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Upgrade myfaces version in Tomee 1.7.0

Posted by Felipe Jaekel <fk...@gmail.com>.
For better performance, I use these context parameters:

<context-param>
<param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
 <param-value>false</param-value>
</context-param>
 <context-param>
<param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
 <param-value>false</param-value>
</context-param>
 <context-param>
<param-name>org.apache.myfaces.USE_ENCRYPTION</param-name>
 <param-value>false</param-value>
</context-param>
 <context-param>
<param-name>org.apache.myfaces.SUPPORT_JSP_AND_FACES_EL</param-name>
 <param-value>false</param-value>
</context-param>
 <context-param>
<param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
 <param-value>org.apache.el.ExpressionFactoryImpl</param-value>
</context-param>

Reference:
http://myfaces.apache.org/core22/myfaces-impl/webconfig.html
http://wiki.apache.org/myfaces/Performance
http://tandraschko.blogspot.de/2012/08/increase-your-jsf-application.html


2014-08-28 17:53 GMT-03:00 cocorossello <co...@gmail.com>:

> Hi,
>
> I'm moving from glassfish 4.1 to tomEE 1.7.0. I started with PLUME for an
> easier start, but now I want to use myfaces instead of mojarra (I've seen
> some performance problems that might be my fault, but it improves a lot
> with
> myfaces).
>
> My question is if it's safe to just upgrade myfaces to last version (2.2.4)
> or if I should stick with 2.1.x
>
> Thank you.
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Upgrade-myfaces-version-in-Tomee-1-7-0-tp4671458.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: Upgrade myfaces version in Tomee 1.7.0

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Also, you may want the non-PLUME release of TomEE(+) 1.7.0, and replace
myfaces 2.1.15 JARs with myfaces 2.2.4 (api/impl) JARs.

I think TomEE PLUME release may have config + jars to make it work
specifically for Mojarra users. Of course, non-PLUME release will not have
that config + jars. :)



On Thu, Aug 28, 2014 at 5:29 PM, Felipe Jaekel <fk...@gmail.com> wrote:

> TomEE works fine with MyFaces 2.2, just replace the 2.1 jar with it.
>
> One observation is that in my case when I changed from Mojarra 2.1 to
> MyFaces 2.1 I had to do some adjustments in my applications, and some more
> adjustments when I changed from MyFaces 2.1 to 2.2, so I would recommend
> you to test your whole application with MyFaces before deploying it in
> production.
>
>
> 2014-08-28 17:53 GMT-03:00 cocorossello <co...@gmail.com>:
>
> > Hi,
> >
> > I'm moving from glassfish 4.1 to tomEE 1.7.0. I started with PLUME for an
> > easier start, but now I want to use myfaces instead of mojarra (I've seen
> > some performance problems that might be my fault, but it improves a lot
> > with
> > myfaces).
> >
> > My question is if it's safe to just upgrade myfaces to last version
> (2.2.4)
> > or if I should stick with 2.1.x
> >
> > Thank you.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/Upgrade-myfaces-version-in-Tomee-1-7-0-tp4671458.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>

Re: Upgrade myfaces version in Tomee 1.7.0

Posted by cocorossello <co...@gmail.com>.
Yes, there are some differences, specially in the exception handling. I'm not
in production yet so I have time to test and fix the problems.

Thanks



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Upgrade-myfaces-version-in-Tomee-1-7-0-tp4671458p4671466.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Upgrade myfaces version in Tomee 1.7.0

Posted by Felipe Jaekel <fk...@gmail.com>.
TomEE works fine with MyFaces 2.2, just replace the 2.1 jar with it.

One observation is that in my case when I changed from Mojarra 2.1 to
MyFaces 2.1 I had to do some adjustments in my applications, and some more
adjustments when I changed from MyFaces 2.1 to 2.2, so I would recommend
you to test your whole application with MyFaces before deploying it in
production.


2014-08-28 17:53 GMT-03:00 cocorossello <co...@gmail.com>:

> Hi,
>
> I'm moving from glassfish 4.1 to tomEE 1.7.0. I started with PLUME for an
> easier start, but now I want to use myfaces instead of mojarra (I've seen
> some performance problems that might be my fault, but it improves a lot
> with
> myfaces).
>
> My question is if it's safe to just upgrade myfaces to last version (2.2.4)
> or if I should stick with 2.1.x
>
> Thank you.
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Upgrade-myfaces-version-in-Tomee-1-7-0-tp4671458.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>