Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Need Help in creating Text Chat site . . .

Need Help in creating Text Chat site . . .

Scheduled Pinned Locked Moved Web Development
javahelplounge
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    khurram_shahzad
    wrote on last edited by
    #1

    Hello, I am creating TextChat site .. on java Servlet .. I want to know the mechanism of identifying each user to forward message updates between each other in that perticular chat room. whether it i by knowing there ip-adress OR how. THANKS to all Helpers ....

    L 1 Reply Last reply
    0
    • K khurram_shahzad

      Hello, I am creating TextChat site .. on java Servlet .. I want to know the mechanism of identifying each user to forward message updates between each other in that perticular chat room. whether it i by knowing there ip-adress OR how. THANKS to all Helpers ....

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      hi khurram shahzad, By little googling you will get ready made code of lot many chatting application. Please read this[^] guideline before posting a question. Just try yourself little and if you will stuck at some point then ask question, we are ready to help you. HTH

      Jinal Desai - LIVE Experience is mother of sage....

      K 1 Reply Last reply
      0
      • L Lost User

        hi khurram shahzad, By little googling you will get ready made code of lot many chatting application. Please read this[^] guideline before posting a question. Just try yourself little and if you will stuck at some point then ask question, we are ready to help you. HTH

        Jinal Desai - LIVE Experience is mother of sage....

        K Offline
        K Offline
        khurram_shahzad
        wrote on last edited by
        #3

        I know there's lot of examples .... I've also studied some of them ... but most of them are working like this, that page at client side sends query to server for updates and then server response back with updated / new msgs. But i want that server automically sends new messages to other client/users when recieve new message in chat history database . . So for that i want to know two things .. 1- its mechanism 2- how to identify users, means i have database of users ... in which i use there ID as PrimaryKey ... and let suppose i have to send update to user with ID A, B, & C so how i now there destination ... because there are many users using this chating page/site. So plz help me.....

        L 1 Reply Last reply
        0
        • K khurram_shahzad

          I know there's lot of examples .... I've also studied some of them ... but most of them are working like this, that page at client side sends query to server for updates and then server response back with updated / new msgs. But i want that server automically sends new messages to other client/users when recieve new message in chat history database . . So for that i want to know two things .. 1- its mechanism 2- how to identify users, means i have database of users ... in which i use there ID as PrimaryKey ... and let suppose i have to send update to user with ID A, B, & C so how i now there destination ... because there are many users using this chating page/site. So plz help me.....

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Now that's like good question. (Keep it up) The answer is: For the scenario you are looking for, you need to implement Observer Pattern[^] so that whenever chat history database updated you can send updates to respected user. Find following links useful... Implementing Observer Pattern in ASP.NET[^] Applying Observer Pattern in .NET Remoting[^] I have also found some articles with source code for developing chat application using ASP.NET however I am not sure whether they are using "Observer Pattern" or not. Simple Chat Application in ASP.NET[^] http://www.junnark.com/Articles/Build-a-Web-Chat-Application-Using-ASP-Net-LINQ-and-AJAX-CS.aspx[^] http://aspalliance.com/1217[^] Now, you can derive resolution of your problem from above links. HTH

          Jinal Desai - LIVE Experience is mother of sage....

          modified on Monday, July 12, 2010 9:58 AM

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups