Ron has done some quick PHP scripts that can read the UBB cookie and fetch the profile, mainly for the purpose of putting a "Hello, username" gretting on the page.
They could probably be easily modified to pull data into a form for a Java chat.
I think you can find them over at UBBDev...
The chat hack itself has also been upgraded to work with 6.6/6.7, IIRC.