struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <>
Subject RE: OGNL Static Method call wrapper
Date Mon, 19 Jan 2015 13:30:36 GMT
*Unless* you configure app to implement max heap  -Xmx2048M -XX:PermSize=2048M -XX:MaxPermSize=2048m

dont declare any entity Static anything .statics are notorious for parking in Permgen
where of course the accumulation of other statics will eventually cause OOM

read this q&a on how variables and methods and classes declared statically essentially
violate OOP


> Date: Mon, 19 Jan 2015 13:02:19 +0000
> From:
> To:
> Subject: OGNL Static Method call wrapper
> As the OGNL static method will be disabled soon ... we could use a wrapper to call those
static methods 
> Do you think it is a good idea to add a method ActionSupport for calling the static methods
> So instead of 
> we can use callStaticMethod("",amount) 
> In this way there will be no need to add different method wrappers every time we want
to call static method and we can update the code lot easier, The callStaticMethod (String
methodName, String... Parameters)  can use reflection to call static methods
> Please review

>  ~Regards,
> ~~Alireza Fattahi
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message