|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Resin And GroovyIs anyone successfully using Groovy with Resin ?
What does your resin.conf look like ? This is on the resin website, but it doesn't work for me in 3.1.5. When it gets to a groovy file the compilation just stops or times out. resin.conf <web-app-default> <class-loader> <compiling-loader path="WEB-INF/classes" compiler="groovyc" source-extension=".groovy"/> </class-loader> </web-app-default> |
|
|
Re: Re sin And GroovyI do, but I compile all my groovy code into classes with Ant and embed them in our .war file deployment (We're mostly Java). I haven't tried to run groovy scripts directly like you mention - I believe I did get a demo of grails going at one point, but it was probably 3.1.3.
Ryan ----- Original Message ----- From: "bumzee" <david.smith@...> To: resin-interest@... Sent: Tuesday, October 14, 2008 11:15:12 AM GMT -06:00 US/Canada Central Subject: [Resin-interest] Re sin And Groovy Is anyone successfully using Groovy with Resin ? What does your resin.conf look like ? This is on the resin website, but it doesn't work for me in 3.1.5. When it gets to a groovy file the compilation just stops or times out. resin.conf <web-app-default> <class-loader> <compiling-loader path="WEB-INF/classes" compiler="groovyc" source-extension=".groovy"/> </class-loader> </web-app-default> -- View this message in context: http://www.nabble.com/Resin-And-Groovy-tp19976910p19976910.html Sent from the Resin mailing list archive at Nabble.com. _______________________________________________ resin-interest mailing list resin-interest@... http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list resin-interest@... http://maillist.caucho.com/mailman/listinfo/resin-interest |
|
|
Re: Resin And GroovyYeah, it works for me too all pre-compiled, but I'm trying to get a better development environment.
Resin will compile your java classes and reload changes and supposedly do this with groovy too, but I've not been able to get it to work.
|
|
|
Re: Re sin And GroovyHi,
What we do is to use the Groovy scripts through the Java Scripting API during development and then compile them into class, if desired, for production. Accessing Groovy scripts is not too slow, after the first access, if you are careful not to throw the ScriptingEngine object after each access, as creating them is the most expensive operation. I did some experiments with it not that long ago: http://www.jroller.com/greeneyed/entry/don_t_throw_your_scriptengines So we opted for scripting during development, as even though you might get groovyc compilation to work, I'm not sure why but Hot Swapping does not seem to work with groovyc generated classes and each time you make a change, the context is restarted and it can become quite a pain. S! D. bumzee escribió: > Yeah, it works for me too all pre-compiled, but I'm trying to get a better > development environment. > Resin will compile your java classes and reload changes and supposedly do > this with groovy too, but I've not been able to get it to work. > > > bumzee wrote: >> Is anyone successfully using Groovy with Resin ? >> What does your resin.conf look like ? >> >> This is on the resin website, but it doesn't work for me in 3.1.5. >> When it gets to a groovy file the compilation just stops or times out. >> >> >> resin.conf >> <web-app-default> >> <class-loader> >> <compiling-loader path="WEB-INF/classes" >> compiler="groovyc" >> source-extension=".groovy"/> >> </class-loader> >> </web-app-default> _______________________________________________ resin-interest mailing list resin-interest@... http://maillist.caucho.com/mailman/listinfo/resin-interest |
|
|
Re: Re sin And GroovyI've come to learn that the problem is not Resin. As you've noted, it's groovyc. I've not considered your suggestion before but I will give it a try. Your blog post is quite interesting. Not sure what to make of this whole thing and what it really says about groovy's use out said of grails. It sucks to have to dig this deep just to use Groovy in a covenient way.
Thanks for the help.
|
| Free embeddable forum powered by Nabble | Forum Help |