RE: Barracuda: Html template compilation and classes reloading
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
In addition to what Jan has mentioned, Tomcat provides dynamic installation of contexts through Tomcat's Manager app. In fact, Barracuda uses the Tomcat ant manager tasks to do this directly from the build. So, what you can do is start Tomcat, edit Barracuda's build.properties file to specify a manager username and password of a Tomcat user (in tomcat-users.xml) which has an existing role of "manager", and then do the following.... ant install That will build Barracuda and install it to Tomcat. This make things go really fast. You can then either remove or reload by doing, respectively... ant remove or ant reload BTW, this is also available for Diez' contrib project... ant contrib -Dsubproject=dbroggisch -Dsutarget=install Note that in the CVS on BarracudaMVC, this would be, respectively... ant catalina-install ant contrib -Dsubproject=dbroggisch -Dsutarget=catalina-install And make sure to check out the stuff that Richard Kunze was talking about with the XMLC-2.2alpha3 reloading stuff. Very cool!!! Richard and David Li are doing a great job on it!!! I also contributed a couple things to David Li's example app which fixes some classloading issues. Not sure if that is all in CVS yet and it isn't in the latest alpha3, but it should be there soon. Jake At 01:52 PM 1/13/2003 +0100, you wrote: >Hi Ettienne, > >We have not been using the class reloading stuff of XMLC. In development, we >use the dynamic deployment of Weblogic 7.0 to redeploy our web application. >This means we recompile the application, create a war file, and then deploy >the application. > >This helps us to reduce the development time, since a startup of WLS 7.0 can >take 2 minutes if multiple ears and jar are deployed. > >This is not something you can use in a production environment, but for >development it us fine. > >Greetings > >Jan Casteels >Tel : +32 497 51 88 97 >Email: [email protected] > > >-----Original Message----- >From: Etienne Hilson [mailto:[email protected]] >Sent: maandag 13 januari 2003 10:52 >To: [email protected] >Cc: Geoffroy de Lamalle >Subject: Barracuda: Html template compilation and classes reloading > > >Hello everybody. >I don't find any posts about it, so here is my question. >I think I've read when I discovered Barracuda/Xmlc >that it's possible to modify/compile the html templates on the fly, without >restarting the application. > >Is it a dream or not ? > >Can we, without having to restart the running application >-) Compile with xmlc a new html template into a template java class >-) Deploy this new class >-) "Replace" (?) the instance of the old one with an instance of the new one >? > >If some people have already managed this situation successfully, I should be >very pleased to hear their comments and if possible, some code snippets or >useful links > >Thank you, and all my best success and happiness wishes for this new year ! >(Hey yes, it's my first 2003 post) > >Etienne HILSON >R&D Consultant >------------------------------------- >Edesign >Rue Sart-Moulin, 1 >GED2 Building >1421 Ophain BSI >BELGIUM >------------------------------------- >Direct Line: +32(0)2 386.06.19 >E-mail: [email protected] > > >**** DISCLAIMER **** >"This e-mail and any attachments thereto may contain information which is >confidential and/or protected by intellectual property rights and are >intended for the sole use of the recipient(s) named above. Any use of the >information contained herein (including, but not limited to, total or >partial reproduction, communication or distribution in any form) by persons >other than the designated recipient(s) is prohibited. If you have received >this e-mail in error, please notify the sender either by telephone or by >e-mail and delete the material from any computer. Thank you for your >cooperation." > >_______________________________________________ >Barracuda mailing list >[email protected] http://www.enhydra.org/mailman/listinfo.cgi/barracuda >FAQ - http://www.jguru.com/faq/Barracuda