You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Dru Nelson <dr...@redwoodsoft.com> on 2003/01/04 08:16:08 UTC

The quickest edit->run cycle with Servlets/Velocity?


Hello,

What is the best way to QUICKLY develop web apps
with Servlets/Velocity?  If I'm not editing a template
(which is easy, and immediate with Velocity), I
get hit with the VM start times and WAR deployment.

For example, lets say I'm developing some servlets
with Velocity.

If I use just command line ANT, I have to build a new
war and then deploy the WAR file, and restart the
server. (I'm using Jetty).

Is there a much much faster way using freely available
technology?

I would like to just edit, hit a function key, and 250 milliseconds
later, try out the page in an open browser window.

Later on, when done (and QA'd), tag the code, build the WAR file
and ship it to production servers.


dru




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: The quickest edit->run cycle with Servlets/Velocity?

Posted by Daniel Dekany <dd...@freemail.hu>.
Sunday, January 5, 2003, 2:58:22 AM, Dru Nelson wrote:

>> I'm currently using eclipse with the tomcat plugin. I'm also using the
>> TDK. Eclipse recompiles the code when I save it, and the tomcat plugin
>> puts a button in the IDE for restarting tomcat. I can change code and
>> restart the server in a few seconds.
>
> Yeah, I keep hearing about eclipse. I'll definitely try that.
> How is it that the server restart only takes 2 seconds?
>
> All the JVM's I've used take 10 - 30 to start a Tomcat or Jetty.
> It takes them two just to start. Is this some other kind
> of restart?

That's so long (30 sec or so) for me too... (what the hell does it do
for so long in a modern PC, I can't imagine. Perhaps it calculates PI
for 50 decimal precision or something like that... :)) I use Tomcat's
Web Application Manager page to restart the apps. That's quick,
however I didn't find anything in the eclipse tomcat plugin that uses
that. BTW, there is something called hotswap... I don't know what's
that, just I get the warning message when I modify a class what is
already used by my servlet, that my config does no support hotswap
(Sun J2SE 1.4.0).

-- 
Best regards,
 Daniel Dekany


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: The quickest edit->run cycle with Servlets/Velocity?

Posted by Thomas Marsh <ma...@nitesco.com>.
Dru Nelson wrote:
> 
> > I'm currently using eclipse with the tomcat plugin. I'm also using the
> > TDK. Eclipse recompiles the code when I save it, and the tomcat plugin
> > puts a button in the IDE for restarting tomcat. I can change code and
> > restart the server in a few seconds.
> 
> Yeah, I keep hearing about eclipse. I'll definitely try that.
> How is it that the server restart only takes 2 seconds?
> 
> All the JVM's I've used take 10 - 30 to start a Tomcat or Jetty.
> It takes them two just to start. Is this some other kind
> of restart?
> 
> dru
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

Ok, my sense of time is a little off.... Must be my cold. I timed it
this morning, and it's taking about 11 seconds to start everything up.
I'm running an AMD @ 1.4mgz, with 512m of double speed ram.... 

I set up the manager app, and it takes 3 seconds to reload my app. (it's
a small app). So I can keep a browser window open just on the manager
app (using org.apache.catalina.servlets.HTMLManagerServlet as described
in the web.xml) and just restart my app when needed.

That seems the best so far...

-- 
Tom Marsh

mailto:marsht1@nitesco.com
http://www.nitesco.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: The quickest edit->run cycle with Servlets/Velocity?

Posted by Dru Nelson <dr...@redwoodsoft.com>.
> I'm currently using eclipse with the tomcat plugin. I'm also using the
> TDK. Eclipse recompiles the code when I save it, and the tomcat plugin
> puts a button in the IDE for restarting tomcat. I can change code and
> restart the server in a few seconds.

Yeah, I keep hearing about eclipse. I'll definitely try that.
How is it that the server restart only takes 2 seconds?

All the JVM's I've used take 10 - 30 to start a Tomcat or Jetty.
It takes them two just to start. Is this some other kind
of restart?

dru






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: The quickest edit->run cycle with Servlets/Velocity?

Posted by Thomas Marsh <ma...@nitesco.com>.
Dru Nelson wrote:
> 
> Hello,
> 
> What is the best way to QUICKLY develop web apps
> with Servlets/Velocity?  If I'm not editing a template
> (which is easy, and immediate with Velocity), I
> get hit with the VM start times and WAR deployment.
> 
> For example, lets say I'm developing some servlets
> with Velocity.
> 
> If I use just command line ANT, I have to build a new
> war and then deploy the WAR file, and restart the
> server. (I'm using Jetty).
> 
> Is there a much much faster way using freely available
> technology?
> 
> I would like to just edit, hit a function key, and 250 milliseconds
> later, try out the page in an open browser window.
> 
> Later on, when done (and QA'd), tag the code, build the WAR file
> and ship it to production servers.
> 
> dru
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

dru:

I'm currently using eclipse with the tomcat plugin. I'm also using the
TDK. Eclipse recompiles the code when I save it, and the tomcat plugin
puts a button in the IDE for restarting tomcat. I can change code and
restart the server in a few seconds.

Tom
-- 
Tom Marsh

mailto:marsht1@nitesco.com
http://www.nitesco.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: The quickest edit->run cycle with Servlets/Velocity?

Posted by Ken Anderson <ka...@pacific.net>.
I use jbuilder, and just build the files I have changed. Jbuilder puts 
them in the webapp tree and tomcat reloads them automatically. No need 
to restart the whole webapp.
Ken


Dru Nelson wrote:
> 
> Hello,
> 
> What is the best way to QUICKLY develop web apps
> with Servlets/Velocity?  If I'm not editing a template
> (which is easy, and immediate with Velocity), I
> get hit with the VM start times and WAR deployment.
> 
> For example, lets say I'm developing some servlets
> with Velocity.
> 
> If I use just command line ANT, I have to build a new
> war and then deploy the WAR file, and restart the
> server. (I'm using Jetty).
> 
> Is there a much much faster way using freely available
> technology?
> 
> I would like to just edit, hit a function key, and 250 milliseconds
> later, try out the page in an open browser window.
> 
> Later on, when done (and QA'd), tag the code, build the WAR file
> and ship it to production servers.
> 
> 
> dru
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>