With Tomcat you have a handful of options with regards to hot deployment.
Tomcat supports two main kinds of hot deployments. Automatic Hot Deployment By default tomcat will hot deploy WAR archives as they are "noticed" by the container. Usually you will see tomcat "notice" a new WAR dropped into /webapps within a few seconds. Tomcat will also hot deploy static resources such as web.xml and context.xml if they get modified. You can also specify any filename in the context.xml and tomcat will add that to its list of "watched resources" to be hot deployed. Explicit Hot Deployment You can copy JAR and class files into the class loader space and force a reload via the tomcat manager web app (or ANT task). This is explicit for a very good reason. It would be rare that copying a single file would suffice in a production system, so why reload only a partial update. For this reason Tomcat waits to reload the classes until you explicitly list them off. There is actually one other reason. The way most containers "reload" already loaded classes is to actually leak the loader. You dont want that happening too many times ;) -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In [email protected], "Aldo Bucchi" <[EMAIL PROTECTED]> wrote: > > Hi Douglas, > > mmmh tried it out, and jars placed in the web-inf/lib directory are > not hot deployed either... > perhaps wars are hot deployed... but that's not very useful in my > architecture ( i have the server side part in a different project ). > unless I use a very complex build of course. > > What is the recommended way to do this? > (avoid restarting jrun with every change to the server side part of a FES app ) > > Does tomcat support hot deployment in lib/ or classes/ ? > > Thanks, > Aldo > > On 2/17/06, Douglas Knudsen <[EMAIL PROTECTED]> wrote: > > AFAIK, hot deploy is for JARs only...be nice if someone could correct me :) > > > > DK > > > > On 2/17/06, Aldo Bucchi <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > > > Is there any way to make jrun autodetect changes to the classes in the > > > web-inf/classes dir? > > > > > > I use ant in eclipse to copy them after an autobuild... and then to > > > restart the server. but this takes way too long. > > > any suggestions? > > > > > > perhaps a way to clean things up and speed up the startup process. > > > BTW, I'm using FES2. > > > > > > Thanks, > > > Aldo > > > > > > -- > > > ::::: Aldo Bucchi ::::: > > > mobile (56) 8 429 8300 > > > > > > > > > -- > > > Flexcoders Mailing List > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Douglas Knudsen > > http://www.cubicleman.com > > this is my signature, like it? > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > -- > ::::: Aldo Bucchi ::::: > mobile (56) 8 429 8300 > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

