Default Pubsub Node Configuration

I’‘m trying to write a plugin that allows you to set the default node configuration values, but it’'s not working. Creating a new instance of DefaultNodeConfiguration does not seem to get data from the database, and setting data on the instance does not write data to the database. Also, when I call getDefaultNodeConfiguration on a PubSubModule instance, I just get null.

Is this possible to do? Do I need to write code that goes directly to the database?

Thanks,

Christian

Ok, I figured out how to get the data…

XMPPServer.getInstance().getPubSubModule().getDefaultNodeConfiguration()

… but not set the data. Setting data on the DefaultNodeConfiguration instance seems to work until the server restarts, at which point the data is grabbed from the database again. Is there an easy way to get this data to persist?

Thanks,

Christian

I’'m assuming there is no API to do this, so I will just update the database manually.

Christian