We are adding some new features to our Buddy List Administrator. In addition to an updated user interface, we are also implementing some updates to our core buddylist updating engine - which is written in Java.
As part of one of these updates, our java code will need to read/write a profile document maintained in our configuration database.
Here is a old, but still very interesting, article on Java access to Domino objects
Our Java code either receives the notessession as a value passed from the agentcontext, or we initialize our own notessession is we are running in a standalone (i.e. testing, development, or possibly servlet) environment.
Here is a early article on profile documents and how they can be manipulated using the formula language or LotusScript.