[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] CCE behaviour in Sausalito



Hi,

I am currently developing a package for Sausalito architecture and
I have come across an, in my eyes, odd behaviour of cce. 

I have created an object, rather a namespace of object: 

<class name="System" namespace="Blah" version="1.0">
  <property name="enabled" type="boolean" default="true" />
</class>

Upon creating this namespace property enabled is default true:

cceclient: get 1.Blah
cceclient: 102 DATA NAMESPACE = "Ssh"
cceclient: 102 DATA CLASSVER = "1.1"
cceclient: 102 DATA enabled = "true"
cceclient: 201 OK 

If I toggle this property to false and check:

cceclient: get 1.Blah
cceclient: 102 DATA NAMESPACE = "Ssh"
cceclient: 102 DATA CLASSVER = "1.1"
cceclient: 102 DATA enabled = ""
cceclient: 201 OK 

and then uninstall the package that this object is a part of, 
the namespace 'disappears' from CODB after refreshcce:

cceclient: get 1.Blah
cceclient: 303 UNKNOWN NAMESPACE Ssh
cceclient: 401 FAIL 

After reinstalling package and refreshing cce:

cceclient: get 1.Blah
cceclient: 102 DATA NAMESPACE = "Ssh"
cceclient: 102 DATA CLASSVER = "1.1"
cceclient: 102 DATA enabled = ""
cceclient: 201 OK 

How come the enabled property is still false? Isn't my
schema file reread after restart of cced in which property
enabled is defaulted to true? 

Can one of the Cobalt Sausalito developers or anyone else shed
some light on this CCE behaviour? The reason why I ask this I 
have a binary in this package that I do want to start upon
installation. Now if I install, set enabled property to false and
unistall package, upon re-installation, my binary has started while
codb still thinkls it's unenabled. ;-(

Regards,

Joost Soeterbroek