jetlet.blogspot.com
Jianfeng Tian: Tuning Play Framework Application with JVM settings.
http://jetlet.blogspot.com/2013/04/tuning-play-framework-application-with.html
Tuesday, April 30, 2013. Tuning Play Framework Application with JVM settings. Sets the initial heap memory size for the JVM. Sets the maximum heap memory the JVM allows grow up to. This instructs the JVM to make better user of multiple processors or cores. For a Play Framework application. Edit the .bash profile. Export JAVA OPTIONS="-Xms768m -Xmx1024m -XX: UseParallelGC". Then do: . /.bash profile. When running the application by: play run. You will notice from the console that:. Posted by Jianfeng Tian.
jetlet.blogspot.com
Jianfeng Tian: Initialising in Grails Service
http://jetlet.blogspot.com/2011/11/initialising-in-grails-service.html
Thursday, November 03, 2011. Initialising in Grails Service. Attributes can be initialised from config in grails service by implementing the Spring InitializingBean. Interface. In the afterPropertiesSet method, set the attributes. Class SomeService implements InitializingBean {. Private static String TOKEN. TOKEN = grailsApplication.config.token. Static void fixtureSetUp() {. Posted by Jianfeng Tian. Subscribe to: Post Comments (Atom). Enthusiastic Java, Scala, Play Framework, Groovy / Grails Developer.
jetlet.blogspot.com
Jianfeng Tian: June 2011
http://jetlet.blogspot.com/2011_06_01_archive.html
Wednesday, June 08, 2011. If you are behind firewall, and your application need internet connection, then put the following code in your /.bash profile. JAVA OPTS="-Dhttp.proxyHost=yourProxyFileName -Dhttp.proxyPort=8080". Then refresh the console using:. Posted by Jianfeng Tian. Subscribe to: Posts (Atom). Enthusiastic Java, Scala, Play Framework, Groovy / Grails Developer. View my complete profile. Dr Li Fertility Clinic at Harley Street. Acupuncture, Chinese Medicine, Harley Street, London.
jetlet.blogspot.com
Jianfeng Tian: Grails Service Singleton
http://jetlet.blogspot.com/2011/10/grails-service-singleton.html
Saturday, October 22, 2011. Jeff Brown explained Grails singleton service in Nabble. Below is his description. Posted by Jianfeng Tian. Subscribe to: Post Comments (Atom). Enthusiastic Java, Scala, Play Framework, Groovy / Grails Developer. View my complete profile. Dr Li Fertility Clinic at Harley Street. Acupuncture, Chinese Medicine, Harley Street, London. Cannot get property config on null object in Gra. Awesome Inc. template. Powered by Blogger.
jetlet.blogspot.com
Jianfeng Tian: November 2011
http://jetlet.blogspot.com/2011_11_01_archive.html
Thursday, November 03, 2011. Initialising in Grails Service. Attributes can be initialised from config in grails service by implementing the Spring InitializingBean. Interface. In the afterPropertiesSet method, set the attributes. Class SomeService implements InitializingBean {. Private static String TOKEN. TOKEN = grailsApplication.config.token. Static void fixtureSetUp() {. Posted by Jianfeng Tian. Subscribe to: Posts (Atom). Enthusiastic Java, Scala, Play Framework, Groovy / Grails Developer.
jetlet.blogspot.com
Jianfeng Tian: February 2011
http://jetlet.blogspot.com/2011_02_01_archive.html
Thursday, February 10, 2011. Reload External Config File Dynamically. If the grails application's Config.groovy file is changed, the war file has to be regenerated to reflect the changes, and the war has to be redeployed onto the server. This process normally involves:. 1 Generate the grails application war file. 2 Go to the tomcat manager console. 3 Click "Undeploy" to remove the application's context. 4 Upload the newly generated war to the ${tomcat}/webapps directory. 1 Go to the tomcat manager console.
jetlet.blogspot.com
Jianfeng Tian: October 2011
http://jetlet.blogspot.com/2011_10_01_archive.html
Saturday, October 22, 2011. Jeff Brown explained Grails singleton service in Nabble. Below is his description. Posted by Jianfeng Tian. Thursday, October 20, 2011. Cannot get property 'config' on null object in Grails Integration Test. Def attribute = grailsApplication.config.someAttribute. When running integration test,. Def service = new SomeService(). Def attribute = service.someMethod(). It will complain that:. Javalang.NullPointerException: Cannot get property 'config' on null object".
jetlet.blogspot.com
Jianfeng Tian: October 2010
http://jetlet.blogspot.com/2010_10_01_archive.html
Thursday, October 28, 2010. When Run (Ctrl F11) gets stuck in Eclipse. However, when a new Grails plugin is installed, or if you run "grails test-app -coverage" you will noticed from the console that: $app/web-app/WEB-INF/classes directory is deleted. And when you Ctrl F11 to run again, it will have the following exceptions:. Class not found uk.ac.lse.LockerRegisterServiceUnitTests. Javalang.ClassNotFoundException: uk.ac.lse.LockerRegisterServiceUnitTests. Because the Default output folder is $app/web-ap...
jetlet.blogspot.com
Jianfeng Tian: August 2010
http://jetlet.blogspot.com/2010_08_01_archive.html
Monday, August 02, 2010. Grails Exception Handling with HTTP Status Code, URLMapping, and Email. The post describes how to:. 1 Configure the UrlMapping.groovy to allow custom action on the specific http status code. 2 Display a customised "https status code handling page" to the user. 3 Send customised "https status code handling page" as an email to the admin staff if the admin email is configured in the Config.groovy file. 1 Configure the UrlMapping.groovy. There are two properties available to the exc...