Re: [OS-webwork] action reloading
What does the reloading mean really? That you can compile an action and Webwork will notice that it changed and update the class? How is this different from what the container would do if I tell it to detect changes to my classes? That it only reloads the changed class? Cheers, Dick Zetterberg [EMAIL PROTECTED] - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 6:16 AM Subject: [OS-webwork] action reloading Is there any interest (or objections) regarding moving action class reloading into ww1.3 core? I've had a couple of requests for that. It is currently an extra jar that duplicates a lot of what is available in core, so moving it in would basically involve checking in a classloader and a couple of statements inside of core, as well as docs warning people against using it in a production environment ;) --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] action reloading
Not all containers support reloading of random classes. Resin does, Orion will only reload modified servlets or filters. Secondly, reloading the entire webapp can be quite slow if you have complex init on startup servlets. My 'hack' would just reload all actions, rather than the entire webapp. On Nov 6, 2003, at 3:49 AM, Dick Zetterberg wrote: What does the reloading mean really? That you can compile an action and Webwork will notice that it changed and update the class? How is this different from what the container would do if I tell it to detect changes to my classes? That it only reloads the changed class? Cheers, Dick Zetterberg [EMAIL PROTECTED] - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 6:16 AM Subject: [OS-webwork] action reloading Is there any interest (or objections) regarding moving action class reloading into ww1.3 core? I've had a couple of requests for that. It is currently an extra jar that duplicates a lot of what is available in core, so moving it in would basically involve checking in a classloader and a couple of statements inside of core, as well as docs warning people against using it in a production environment ;) --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] action reloading
Ok, fine with me as long as it does not affect the stability/performance when production environment is configured. Cheers, Dick Zetterberg [EMAIL PROTECTED] - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 2:40 PM Subject: Re: [OS-webwork] action reloading Not all containers support reloading of random classes. Resin does, Orion will only reload modified servlets or filters. Secondly, reloading the entire webapp can be quite slow if you have complex init on startup servlets. My 'hack' would just reload all actions, rather than the entire webapp. - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 6:16 AM Subject: [OS-webwork] action reloading Is there any interest (or objections) regarding moving action class reloading into ww1.3 core? I've had a couple of requests for that. It is currently an extra jar that duplicates a lot of what is available in core, so moving it in would basically involve checking in a classloader and a couple of statements inside of core, as well as docs warning people against using it in a production environment ;) --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] action reloading
I had this working briefly in ww 1.3 but it broke due to some other change. I'll spend some time and try to get it going again. James Cook said: What about reloading the configuration contexts? For example, if a change to xwork.xml or components/xml also triggers a reload? -Original Message- Behalf Of Hani Suleiman Not all containers support reloading of random classes. Resin does, Orion will only reload modified servlets or filters. Secondly, reloading the entire webapp can be quite slow if you have complex init on startup servlets. My 'hack' would just reload all actions, rather than the entire webapp. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] action reloading
Ok! The default will be to have it off anyway, for backward compatibility. It has 0 impact when it's off. When it's on all that is different is a different JavaActionFactory is used. Dick Zetterberg said: Ok, fine with me as long as it does not affect the stability/performance when production environment is configured. Cheers, Dick Zetterberg [EMAIL PROTECTED] - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 2:40 PM Subject: Re: [OS-webwork] action reloading Not all containers support reloading of random classes. Resin does, Orion will only reload modified servlets or filters. Secondly, reloading the entire webapp can be quite slow if you have complex init on startup servlets. My 'hack' would just reload all actions, rather than the entire webapp. - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 6:16 AM Subject: [OS-webwork] action reloading Is there any interest (or objections) regarding moving action class reloading into ww1.3 core? I've had a couple of requests for that. It is currently an extra jar that duplicates a lot of what is available in core, so moving it in would basically involve checking in a classloader and a couple of statements inside of core, as well as docs warning people against using it in a production environment ;) --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] action reloading
Hani, I'd like to see this included in 2.0 as well. Can you give me a brief understanding how this works? Does WebWork use it's own classoader? -Pat -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hani Suleiman Sent: Tuesday, November 04, 2003 9:16 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] action reloading Is there any interest (or objections) regarding moving action class reloading into ww1.3 core? I've had a couple of requests for that. It is currently an extra jar that duplicates a lot of what is available in core, so moving it in would basically involve checking in a classloader and a couple of statements inside of core, as well as docs warning people against using it in a production environment ;) --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] action reloading
Is there any interest (or objections) regarding moving action class reloading into ww1.3 core? I've had a couple of requests for that. It is currently an extra jar that duplicates a lot of what is available in core, so moving it in would basically involve checking in a classloader and a couple of statements inside of core, as well as docs warning people against using it in a production environment ;) --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Action reloading
Don't cheer just yet, it's actually not clean with the way things currently, and if anything, would end up being quite fugly. However, I'm willing to take a stab at it with the current configuration code and roll this change directly into webwork rather than as an addon. For backward compatibility, reloading would be disabled (at least initially, until its blessed by the various powers that be). So are there any objections to making this enhancement for ww 1.3? On Friday, January 24, 2003, at 01:19 PM, Justen Stepka wrote: while(true) { hani++; } You are my hero! Justen Stepka - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 6:58 PM Subject: Re: [OS-webwork] Action reloading This does seem possibly currently by plugging in a bunch of custom *Configuration classes. I'll try and work on it in the next few days and will hopefully post an addon that can be used with webwork 1.3 to enable dynamic reloading of *.properties and *.xml files. Quoting Justen Stepka [EMAIL PROTECTED]: Is there a way to get the actions.xml to reload too? Thanks, Justen Stepka - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 3:58 PM Subject: [OS-webwork] Action reloading For people using orion, or any other appserver that doesn't automatically reload non-servlet classes in WEB-INF/classes, I've written an action reloader that reloads action classes if they're modified. More details at: http://www.opensymphony.com:8668/space/fate Feedback appreciated! Hani --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Action reloading
while(true) { hani++; } You are my hero! Justen Stepka - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 6:58 PM Subject: Re: [OS-webwork] Action reloading This does seem possibly currently by plugging in a bunch of custom *Configuration classes. I'll try and work on it in the next few days and will hopefully post an addon that can be used with webwork 1.3 to enable dynamic reloading of *.properties and *.xml files. Quoting Justen Stepka [EMAIL PROTECTED]: Is there a way to get the actions.xml to reload too? Thanks, Justen Stepka - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 3:58 PM Subject: [OS-webwork] Action reloading For people using orion, or any other appserver that doesn't automatically reload non-servlet classes in WEB-INF/classes, I've written an action reloader that reloads action classes if they're modified. More details at: http://www.opensymphony.com:8668/space/fate Feedback appreciated! Hani --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Action reloading
This is a good idea. Something like how you can get struts-config.xml to reload in struts. On Wednesday, January 22, 2003, at 05:13 PM, Justen Stepka wrote: s there a way to get the actions.xml to reload too? --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Action reloading
Config file reloading is a totally different ballpark than Action reloading. However, it is part of the planned configuration overhaul in XWork. --Erik --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Action reloading
This does seem possibly currently by plugging in a bunch of custom *Configuration classes. I'll try and work on it in the next few days and will hopefully post an addon that can be used with webwork 1.3 to enable dynamic reloading of *.properties and *.xml files. Quoting Justen Stepka [EMAIL PROTECTED]: Is there a way to get the actions.xml to reload too? Thanks, Justen Stepka - Original Message - From: Hani Suleiman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 3:58 PM Subject: [OS-webwork] Action reloading For people using orion, or any other appserver that doesn't automatically reload non-servlet classes in WEB-INF/classes, I've written an action reloader that reloads action classes if they're modified. More details at: http://www.opensymphony.com:8668/space/fate Feedback appreciated! Hani --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] Action reloading
For people using orion, or any other appserver that doesn't automatically reload non-servlet classes in WEB-INF/classes, I've written an action reloader that reloads action classes if they're modified. More details at: http://www.opensymphony.com:8668/space/fate Feedback appreciated! Hani --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] Action reloading
I've written a custom ActionFactory which reloads action dynamically. In effect, this means you can change the code for your actions, compile, and hit refresh and see the changes. I'd like to know if there's any interest in adding this to core webwork, knowing that it has a number of features/limitations: - It ONLY reloads actions. It specifically does not reload any classes outside of the defined packages for actions. - It relies on the location of webwork.properties to determine what the jar/directory where actions exist - No extra configuration is required beyond changing the action factory in default.properties to use ReloadingActionFactory - Usual performance overhead of monitoring files for change - No recompiling of source files is done, you'd still have to use ant/whatever to compile your class and have it end up in the right place (where the appserver expects it, basically) - If an appserver monitors every class in the webapp and reloads on any change, then this factory is useless - Only tested on orion The benefit for me has mainly been in that I do not need to go through a restart or still very relatively slow webapp redeployment for just having added an accessor to my action. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Action reloading
Hani Suleiman wrote: - It ONLY reloads actions. It specifically does not reload any classes outside of the defined packages for actions. - It relies on the location of webwork.properties to determine what the jar/directory where actions exist - No extra configuration is required beyond changing the action factory in default.properties to use ReloadingActionFactory - Usual performance overhead of monitoring files for change - No recompiling of source files is done, you'd still have to use ant/whatever to compile your class and have it end up in the right place (where the appserver expects it, basically) - If an appserver monitors every class in the webapp and reloads on any change, then this factory is useless - Only tested on orion Since we're all using Ant (right?), isn't it better to have some standard action that does the reloading. Then one can let the Ant script hit that action explicitly after compiling in order to reload. This would remove the overhead for watching files. /Rickard --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork