The CRaSH console is a nice tool to do imports or batch updates that should not become part of your main application.
Why should you use the CRaSH console?
- your code runs within your application context and you have access to your runtime environment (business services like spring beans, database access to your DAOs etc)
- your code is deployed through all stages and it is impossible to accidentally run test code on your production environment
- you can use light weight scripting languages like groovy to implement your requirements that can be changed without redeployment