Carsten Ziegeler wrote:
Reinhard Poetz wrote:

Reinhard Poetz wrote:

Carsten Ziegeler wrote:

I renamed this; it should now work though I'm currently not able to test
as m2 has gone crazy and uses everything but my local stuff...

thanks, I'll give it a shot.

Basically it works :-) - except that class files don't get reloaded.


Great, by default it uses the configured class loader factory which I
guess is just the default implementation and not the reloading one. The
default is in the cocoon.roles file. So perhaps changing this or adding
an additional factory and refering to it from the sitemap might help:

<map:classloader factory-role="OWN_FACTORY_ROLE">

I added another role/impl

  <component logger="classloader"
    role="org.apache.cocoon.classloader.ClassLoaderFactory/reloading"
    class="org.apache.cocoon.classloader.ReloadingClassLoaderFactory">
  </component>


but only with partly success because a change in the classes is not propagated to the sitemap and a reset of the classloader.


We could also provide different defaults for different running modes: in
"prod" the default classloader factory and in "dev" the reloading one.

I consider using <map:classloader> as "at development time" only. Hence I think that we don't need different behaviour for different running modes.

--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                       web(log): http://www.poetz.cc
--------------------------------------------------------------------

                
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

Reply via email to