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

Author: Van Ly

This author has written 61 articles
  1. Home>
  2. Van Ly>
  3. Page 8

xml.MarkupBuilder in Groovy

  • Post author:Van Ly
  • Post published:October 8, 2013
  • Post category:groovy/programming

Typical use of the builder starts with: import groovy.xml.MarkupBuilder def writer = new StringWriter() def xml = new MarkupBuilder(writer) ... String generatedXml = writer.toString() Then the "building" part is what's…

Continue Readingxml.MarkupBuilder in Groovy

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
  • Go to the previous page
  • 1
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • Go to the next page
  • Author.instance().info()
  • Docker Starters
Copyright - WordPress Theme by OceanWP