[Seaside] Re: Zinc adaptor zombie

Julian Fitzell jfitzell at gmail.com
Mon Jul 2 15:29:38 UTC 2012


On Mon, Jul 2, 2012 at 12:58 PM, Sven Van Caekenberghe <sven at beta9.be> wrote:
>
> Esteban,
>
> On 01 Jul 2012, at 11:19, Esteban Lorenzano wrote:
>
> > Hi Sven,
> >
> > no... problem is that
> >
> > 1) you create a server with zinc adaptor
> > 2) you need to change it to use comanche, then you stop one, start the other [1].
> > 3) when you save image, ZnServer is restarted anyway.
>
> OK, I understand now and I could reproduce it.
>
> But this is a Seaside issue/feature: WAServerManager will send #startUp to all its adaptors, regardless whether they were stopped manually or not, it wants them all to be running after a restart.

#startUp is not supposed to start the server. #startUp is the message
sent to notify of image startup. You can implement it to do
initialization if needed (take a look at WAListenerAdaptor in the
command adaptor package, for example, which uses it to reinitialize a
Proces, *but only if the adaptor was running when the image was
saved*).

Many adaptors do not need to implement #startUp, but if you do, you
should not start up unless you were running on image save.

Julian


More information about the seaside mailing list