Skip to content
Programming Notes
  • Home
  • Docker Starters
  • Author.instance().info()
  • Toggle website search
Menu Close
  • Home
  • Docker Starters
  • Author.instance().info()
  • Toggle website search

programming

  1. Home>
  2. programming>
  3. Page 7

Memcached in Grails: a quickie

  • Post author:Van Ly
  • Post published:August 18, 2013
  • Post category:Grails/programming

Two clients will be covered: XMemcached and spymemcached Xmemcached Add dependency Add in BuildConfig.groovy: dependencies { ... compile 'com.googlecode.xmemcached:xmemcached:1.4.2' } Set up the bean Add in conf/spring/resources.groovy: beans = {…

Continue ReadingMemcached in Grails: a quickie

Notes on multiple Grails apps sharing a DB

  • Post author:Van Ly
  • Post published:August 16, 2013
  • Post category:Grails/programming

Multiple Apps Two logical partitions of services, perhaps one public-facing with GSPs serving up UI and one headless with REST services, can be easier to maintain if implemented as separate…

Continue ReadingNotes on multiple Grails apps sharing a DB

Grails unit vs integration tests

  • Post author:Van Ly
  • Post published:June 15, 2013
  • Post category:Grails/programming/test

Services Content here applies to Grails 2.1.3 and may also apply to newer versions. Setup We start with three service classes: OneService, TwoService, and ThreeService. OneService uses TwoService which uses…

Continue ReadingGrails unit vs integration tests

SampleServlet: Java web app starter

  • Post author:Van Ly
  • Post published:May 27, 2013
  • Post category:Java/jetty/maven/programming

Prerequisite Maven 3.x installed - try http://maven.apache.org/download.cgi Important: earlier versions of Maven, such as 2.x, won't work correctly Set-up Locate a subdirectory and run: mvn archetype:generate When prompted, use maven-archetype-quickstart…

Continue ReadingSampleServlet: Java web app starter

Grails run-script with parameters

  • Post author:Van Ly
  • Post published:April 21, 2013
  • Post category:Grails/programming
  • Post comments:0 Comments

Scripts vs. parameters The "grails run-script" task allows running a bunch of scripts, and therein lies the problem: the parameters passed to the command are interpreted by the command to…

Continue ReadingGrails run-script with parameters

Grails class names

  • Post author:Van Ly
  • Post published:April 17, 2013
  • Post category:Grails/programming
  • Post comments:0 Comments

Seems like there are many flavors of the name for a Grails class: fullName -- Returns the full name of the class in the application with the the trailing convention part…

Continue ReadingGrails class names

Grails scripting

  • Post author:Van Ly
  • Post published:April 12, 2013
  • Post category:Grails/programming
  • Post comments:0 Comments

Within any Web application, there is the Web site, which is pretty well served by Grails.  Very soon, there will inevitably be some background processing that needs to be done…

Continue ReadingGrails scripting
  • Go to the previous page
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • Go to the next page
  • Author.instance().info()
  • Docker Starters
Copyright - WordPress Theme by OceanWP