Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
2.60/5 (3 votes)
See more:
i'm developing a multi user chat system, here i have a problem to save chat history at client side and at server side. please tell me solution about it
Posted
Comments
joshrduncan2012 4-Jun-13 10:24am    
What have you tried? Show us your code. Where are you stuck?
Sergey Alexandrovich Kryukov 4-Jun-13 10:28am    
It all depends on where and how you stored chat data before "saving" and where do you want to save it :-)
—SA
ZurdoDev 4-Jun-13 16:03pm    
Save it into a database. What's the issue?

1 solution

- database
I recommend the app integrated Apache Derby DB[^]

- text file
I recommend to use a logging solution like Apache log4j[^] to work on with/in style of log files. You can create a default error-log and add another config to save the chat-content in a seperated file. That would make sure that only a decent amount of chat entries are stored and deleted automatically when too old.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900