Current I m running my application on Java/J2ee/JSP using tomcat server. I would like to move to groovy grails application as
I heard groovy is dynamic, and we can do code change during runtime on tomcat container similar to JSP/GSPs. I tried alot to find the dynamic groovy code changes using MetaClass programming and ExpandoMetaClass, following are the references.
Hot-fixing Code running inside Web Container with Groovy
Following is my concern, I have built a development war and deployed it on external tomcat server and tried to change the groovy files, but I m not finding it under war exploded. If I change the files in the source directory how it reloads it? But for GSPs exists under webapps.
Your help will be appreciated. Thanks once again for quick response.
This target is not intended for deployment as the container in development mode is configured to auto-reload changes at runtime which has an overhead attached to it and will not scale well.
It's not because it's a development WAR but because the embedded container that Grails uses (Tomcat by default) is configured to auto-reload changes. So it is kind of a combination. But when you deploy to an external container, regardless of the environment you build the WAR for, it won't auto-reload. Also, when you build the WAR, you won't find groovy files. They get compiled to bytecode.
subject: Hotfix Code in tomcat container running groovy application