Not sure if this is a possible solution, but you should have a look at the lily project. It's a mud-like chat client/server app. My company uses it heavily, inter-department communication, customer service requesting assistance from a specific department, staff notices, etc. You can turn on a java client accessible from the web. I've given it a try briefly and it does work.
thank you for the suggestion problem is that i have to make everything run from the one web server and i can install any new binaries on it (we dont own it, we only get web host from it) so i cant hotlink off to any other server like i would have to for lily or jabber. I have figured out how to make a daemon so my problem may be solved, i will have to stress test a few ideas and add in a feature or two but my tests worked which is good :)