Re: [Resin-interest] Re sin And Groovy

2008-10-15 Thread Daniel López
Hi,
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@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Re sin And Groovy

2008-10-15 Thread bumzee

I'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.


Daniel López wrote:
 
 Hi,
 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@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 

-- 
View this message in context: 
http://www.nabble.com/Resin-And-Groovy-tp19976910p19993879.html
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Re sin 3.15, Groovy and hotswap

2008-10-14 Thread Daniel López
Hi there,
The same thing is happening to me, and the combined with the Ant Groovyc 
task not checking if the file has been modified or not and always 
recompiling, it's quite a pain.

However, if I'm not mistaken, I think hotswapping is enabled by Resin 
but provided by Java itself, so we might have to look for the 
cause/solution at the JDK level.

S!
D.

bumzee escribió:
 By ruby, I assume you mean Groovy and no, the Groovy classes don't implement
 the servlet API.  They are not Groovlets and the context restarts when a
 change is made to a groovy class even when all of the method signatures stay
 the same.  
 
 It restarts the context no matter what the change
 
 Angel, Eric wrote:
 I'm not all that familiar with Ruby, but do your Ruby classes implement
 the Servlet api somehow?  Usually, the context has to restart when your
 servlets change signature. 

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of bumzee
 Sent: Monday, October 13, 2008 7:57 AM
 To: resin-interest@caucho.com
 Subject: [Resin-interest] Re sin 3.15, Groovy and hotswap


 I use intellij 7.0.4 as my ide ,  resin 3.15, groovy 1.5.1   JDK 1.5
 and whether i use the resin plugin or start resin stand alone w/remote
 debugging enabled, if I modify any groovy class the context restarts.
 However, if I modify a java class it's changes are reloaded w/o a
 context restart.  

 Is there anyway to get hotswap to work w/groovy classes the same as it
 does for java classes ?


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Re sin And Groovy

2008-10-14 Thread Ryan Vanderwerf
I 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 [EMAIL PROTECTED]
To: resin-interest@caucho.com
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@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Re sin And Groovy

2008-10-14 Thread bumzee

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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Resin-And-Groovy-tp19976910p19977195.html
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Re sin 3.15, Groovy and hotswap

2008-10-13 Thread Angel, Eric
I'm not all that familiar with Ruby, but do your Ruby classes implement
the Servlet api somehow?  Usually, the context has to restart when your
servlets change signature. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bumzee
Sent: Monday, October 13, 2008 7:57 AM
To: resin-interest@caucho.com
Subject: [Resin-interest] Re sin 3.15, Groovy and hotswap


I use intellij 7.0.4 as my ide ,  resin 3.15, groovy 1.5.1   JDK 1.5
and whether i use the resin plugin or start resin stand alone w/remote
debugging enabled, if I modify any groovy class the context restarts.
However, if I modify a java class it's changes are reloaded w/o a
context restart.  

Is there anyway to get hotswap to work w/groovy classes the same as it
does for java classes ?


--
View this message in context:
http://www.nabble.com/Resin-3.15%2C-Groovy-and-hotswap-tp19956414p199564
14.html
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Re sin 3.15, Groovy and hotswap

2008-10-13 Thread bumzee

By ruby, I assume you mean Groovy and no, the Groovy classes don't implement
the servlet API.  They are not Groovlets and the context restarts when a
change is made to a groovy class even when all of the method signatures stay
the same.  

It restarts the context no matter what the change

Angel, Eric wrote:
 
 I'm not all that familiar with Ruby, but do your Ruby classes implement
 the Servlet api somehow?  Usually, the context has to restart when your
 servlets change signature. 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of bumzee
 Sent: Monday, October 13, 2008 7:57 AM
 To: resin-interest@caucho.com
 Subject: [Resin-interest] Re sin 3.15, Groovy and hotswap
 
 
 I use intellij 7.0.4 as my ide ,  resin 3.15, groovy 1.5.1   JDK 1.5
 and whether i use the resin plugin or start resin stand alone w/remote
 debugging enabled, if I modify any groovy class the context restarts.
 However, if I modify a java class it's changes are reloaded w/o a
 context restart.  
 
 Is there anyway to get hotswap to work w/groovy classes the same as it
 does for java classes ?
 
 
 --
 View this message in context:
 http://www.nabble.com/Resin-3.15%2C-Groovy-and-hotswap-tp19956414p199564
 14.html
 Sent from the Resin mailing list archive at Nabble.com.
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 

-- 
View this message in context: 
http://www.nabble.com/Resin-3.15%2C-Groovy-and-hotswap-tp19956414p19959203.html
Sent from the Resin mailing list archive at Nabble.com.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest