The Sun Java Communications Suite provides the following two ways to archive chat sessions:
Archive provider API. Using this API, developers can extend the archive capability.
Portal Server search database or Message Store. Without changing any capabilities, you can archive chat sessions in Portal Server's search database or in Messaging Server's Message Store.
By default, the single host deployment example, on which this evaluation guide is based, uses the Message Store to archive chat sessions. By viewing Duncan's inbox, you can see that he has several messages that contain the chat conversations he had with Kathy and others.
To change the Message Store to the Portal Server search database to archive chat sessions, do the following:
Edit the /etc/opt/SUNWiim/default/config/iim.conf file and set the following parameter:
iim_server.msg_archive.provider = "com.iplanet.im.server.IMPSArchive"
Restart the Instant Messaging server.
Perform a poll, or a chat, to generate some Instant Messaging data. For performing poll or chat, see The Instant Messaging Demo.
Click the Search tab from within Duncan's Portal Server desktop.
In the Find field, type a key word such as poll or a word from the chat, and click Search.
The results of the search are displayed. Note that the poll results look like actual final poll results, not extraneous data points. Also, the entire conversation is returned, not just the sentence containing the keyword.