Doing auto-reloading right is very tricky. You have to have control over the lifecycle of objects, and the class loaders for those objects. For Tapestry components this is possible and is, in effect, a side-effect of the transforming technology that allows components to operate. To allow the same kind of reloading beyond components is more involved, and would turn Tapestry into an application server, rather than a framework. Simply reloading a class may not be enough. For example, what if the class being reloaded is a module class, thus changing the configuration of the IoC container (including the configuration passed to some services)?
Changing even a service implementation can have a rippling effect: the new implementation may have new dependencies. Values obtained from the old service may have been passed to other services; with external XML configuration it might be possible to track this, but with Tapestry's Java-centric approach, it is virtually impossible to know what data has moved about the system. On Mon, Sep 7, 2009 at 9:03 AM, Alfonso Quiroga <alfonsose...@gmail.com>wrote: > Thanks for the fast answer. I think is very common in a > web-application to have own web-tier objects, my example are Wizard > Beans that I store in sessions. It would be great in the future to > auto-reload this beans, by now I will try javarebel and I'll tell you > my experience. Thanks again > > On Mon, Sep 7, 2009 at 12:53 PM, Howard Lewis Ship<hls...@gmail.com> > wrote: > > Only components, inside the designated packages, can be auto-reloaded. > > > > On Sun, Sep 6, 2009 at 10:06 PM, Alfonso Quiroga <alfonsose...@gmail.com > >wrote: > > > >> Hi! > >> I have java classes in root.components... root.pages and root.base as > >> usual. That works perfectly... > >> but I was needing a new class to store in session, just a java bean > >> (WizardBean) and I dropped it in "root.wizard", and auto-reloading > >> does NOT work in that package. I tried to put in root.base.wizard, but > >> there was an exception. Where can I put it for reloading works? thanks > >> in advance! > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> For additional commands, e-mail: users-h...@tapestry.apache.org > >> > >> > > > > > > -- > > Howard M. Lewis Ship > > > > Creator of Apache Tapestry > > > > The source for Tapestry training, mentoring and support. Contact me to > learn > > how I can get you up and productive in Tapestry fast! > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast!