Re: Configuring instances/app directly in SiteConfig.xml

Dev WO <[email protected]> Tue, 20 Jul 2004 19:08:54 +0200
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
> On Jul 20, 2004, at 3:50 AM, Dev WO wrote:
>
>>>> We've also got some problems when we use Monitor after modifying 
>>>> directly the xml file (we stop Monitor before modifying):
>>>> The instances and apps show up in Monitor, but if we change 
>>>> anything regarding the previous app/instances, it erases everything 
>>>> we added to the xml file. And if we try to change something to the 
>>>> instances/apps we added directly, Monitor gives an error 
>>>> complaining it doesn't exist (because it seems it erases it just 
>>>> after submitting a modification).
>>>
>>> Monitor is just a frontend to wotaskd. In order to modify 
>>> SiteConfig.xml manually you first have to stop wotaskd.
>> Does that mean I have to stop all WO applications to update that 
>> file?!
>> if yes, how Monitor is doing to modify this file without stopping the 
>> applications?
>
> Monitor talks to wotaskd. wotaskd talks to the applications. wotaskd 
> records the configuration to disk. Why would wotaskd need to stop the 
> applications?
>
> The problem is that wotaskd doesn't try to check the file for changes; 
> it doesn't expect that you will modify the file by hand - why would 
> it? Why do you need to modify the file by hand at all (while using 
> wotaskd/Monitor)?
Because I cannot use Monitor method (as they are not easily accessible 
and not supported by Apple), so I have to write directly to the xml 
file. I think.
What I'm doing is a web application to install, update and deploy WO 
application, so I won't use Monitor at all, but to test my app, I'm 
starting Monitor to see if I can manage the application/instance with 
both tools (but not at the same time of course).

I probably don't understand very well how it works. I mean is there any 
way I could launch an app with the command line and have everything 
written in the xml file by wotaskd? if yes, I couldn't find how to 
write the name of the application (I mean the Monitor name, not the 
filename)

>
> Karl
>
> --
>
> Caffeine-free Diet Crystal Pepsi
>
> Homepage:
>      http://homepage.mac.com/khsu/index.html
>
>