I'm not sure if this is the right form for this (if it isn't, i apologize). i want to add a functionality to my web app that a user can send other user a private message that will be saved in the other user's mail box. I was thinking of using database to store and retrieve messages. Is this the right approach, if its not could someone please tell me what would be better. I'm not asking for the code but what to study or consider. This is my design so far, Servlet retrives the message from JSP text box and passes it to the bean that stores it in the database with the sender and recievers id (same functionaily of retriving it). THanks for your time.
Thanks for replying. Could you please explain to me the functionality of getting something like "MSN Messenger" on a website where viewers can chat one on one. Whats involved there. Again, i'm not asking for the code but direction on what i would need to use and learn. A little psuedocode(algorithm) would help. THanks a lot.
There's a big difference between 'private messages' (which is sort of a lightweight e-mail), and instant chat. I would use a DB for messaging, but not for chatting. (I wouldn't use HTTP at all for chatting, but that's another issue). [ February 22, 2005: Message edited by: Bear Bibeault ]
Thanks for replying. Ben clarified that my approach for private messaging was right. I didn't want to start a new thread to ask for chatting (sorry if that created confucion). What would you use for chatting? Whats the normal practice because i don't understand the concept at all. Only thing i know is you should NEVER go to database for doing that. Could you please point me to right direction on this. I just want to know what i should learn or look into. Thanks a lot.
Mala [ February 22, 2005: Message edited by: Mala Sharma ]
Most chat apps I've seen that run in a browser use an Applet rather than HTTP.
Joined: Oct 29, 2004
Hey Bear, Could you please elaborate on it some more so i would have a general idea on what to look into and study. If you explain the flow, it would help me immensely in designing one (i know there must be some example if i google it, but i want to desgin my own without looking at any code). I would really appreicate it. THanks for your time.
Actually, not my area of expertise -- nor is it a JSP question, so you'd be better off asking such a question in the Applet or Networking forums. [ February 22, 2005: Message edited by: Bear Bibeault ]