I'm wondering what you would do: I develop a webapp using Grails, Memcached and Mysql as persistence. Now, I have following domain classes (simplified):
Product : Can be in one category
Category : Can have nested children, and have multiple products.
I need to access all product objects by id which led me to the idea to store all products in one big Memcached-entry with a key: PRODUCTMAP and as value, all product attributes as array, like: [productId1: [title: 'title'], …
The Grails JMX plugin is a great way to quickly make a service available through JMX. Things get trickier when you want to only expose a few methods on the service. The plugin provides the option to list methods to exclude, but you need to list all of them including the ones Grails added to the service. Fortunately, we can use the metaclass to help us out. We can add a list of the few methods we want exposed and then use to that to generate the list of exclude method as follows:
I've been developing Grails apps in Spring Tool Suite. STS will compile your Groovy code as you save it just as Eclipse does for Java code. This is great during coding, but can cause issues when it's time to check in. If you deleted a class and then run test-app , that class may not be cleared from your target/classes and tests may pass that shouldn't. Before checking in, I now need to run clean , then refresh-dependencies , then test-app . To save some time, I …
* Graeme Rocher shows how to deploy Grails applications into the Cloud.
* Straight from PyCon, this video shows the goals for PyPy .
* Rackspace adds more open source talent to its cloud services and hosting team.
* Blitz describes how you can overlay New Relic data on their standard response time charts.
* Cloud Foundry + Grails + Mongo DB Quick Start
* Getting Started with MongoDB with Node.js
SQL Server
Thanks to Iron Foundry, this old stanchion has finally gained support within the Cloud Foundry ecosystem. Any .NET developer will have an easy development of PaaS enabled defaul with SQL Server. Rest assured, the trusty database is ready and available.
* Uhuru Software has a SQL Server node you can download …
…Grails Heroku plugin that provides simple commands to set up your Grails app with Heroku add-on services like Postgres , Memcached , Redis , MongoDB from MongoLabs or MongoHQ and RabbitMQ .
Deploying a Grails app on Heroku
Create a new Grails project: $ grails createApp HelloWorld | Created Grails Application at /Users/jjoergensen/dev/HelloWorld $ cd HelloWorld
Commit to Git: $ grails integrate-with --git …
…own words - "Some time ago I was planning to write an article comparing Rails and Grails and while trying to figure out what I did find useful in Grails that was missing in Rails, the only think I could think of was the console plugin for Grails. So, I decided to write one for Rails, which took only about an hour... It is just an interface for running Ruby commands in the context of a controller of the application. Think of it as the Rails console on the web, although with no …
…able to provision and run multiple platforms and frameworks ( Rails, Sinatra, Grails, node.js), as well as provision and support multiple supporting services ( MySQL, Redis, RabbitMQ). In other words, the system is modular and is fairly simple to extend. For a great technical overview, checkout the webinar .
To orchestrate all of these moving components, the "brains" of the platform is a Rails 3 application ( CloudController) whose role is to store the …
Getting Started with Grails - Part 1
From: SpringSourceDev
Views: 27794
92 ratings Time: 14:57 More in Film & Animation
…eventually found his way to Ruby, despite himself. "I was on the Groovy and Grails mailing list, and there was this guy named Charles Nutter who was one of JRuby's developers. Charles kept bashing Groovy and promoting JRuby/ Rails, which was really annoying at the beginning, until one day I decided to check out Ruby and Rails; I was amazed by it and all the plugins that Grails didn't have."
Although Tom couldn't convince his company to transition …