Tuesday, July 2, 2013

Grails : Do you know CRaSH plugin ?

Grails



You have the possibility to embeded CRaSH in Grails by installing the CRaSH plugin.
It's very easy :

cd $PATH_TO_MY_GRAILS_APPLICATION
grails install-plugin crash


Now, you can connect to your Grails application by using CRaSH.
Two steps for that :
  • Find the Java Process PID of your Grails application with :
cd $JAVA_HOME/bin
jps
  • Launch CRaSH
Then you will be able to access to CRaSH command by typing :

cd $CRASH_HOME/bin
crash.sh PID

Now, you have access to all CRaSH command jdbc,jpa, thread ... and you can make your own !

CRaSH web site : http://www.crashub.org/
Grails CRaSH plugin : https://github.com/crashub/grails
Grails : http://grails.org/