a) are you authenticated at the time?
b) is this code in the processAction() or doView(), doEdit(), ...
You need to be authenticated, and changing prefs can only be done in processAction()
Ah... interesting, I wasn't authenticated, I'll try that.
The call is in the processAction scope (helper method call)
Thanks for the quick response.
Yes that worked thank you.
One quirk is that redeploying the ear doesn't overwrite them, this is a bit more persistent than I expected, any idea where the preferences are written?
preferences are stored in the database.
I haven't looked at that part of the code, but knowing Julien, the preference store is probably pluggable ;)