How to traffic real-time data with JAVA?

Asked

Viewed 196 times

1

What is necessary to develop a Chat system, in which two people receive messages in real-time, and how to establish a connection between users' computers?

The front-end is already developed, but it lacks the back-end where there should be the connection and send the message to the program that is on the other computer.

  • TCP or HTTP connection.
  • Java SE
  • Peer-To-Peer
  • Chat with only 2 users
  • My friends and I in college set up a database just to store the messages, so we put the messages on a list that was updated every second. If you’re thinking of this app just to play, it breaks a branch, now you think of something bigger, like a Whatsapp or the late MSN, then I no longer know how it works.

  • Does this chat have a central server? Or is it totally Peer-to-peer?

  • I’d like to totally do peer-to-peer

  • 1

    Java EE or Java SE ?

  • If it’s totally peer-to-peer, how would a chat with more than 2 users?

  • Java EE and would only be 2 users per chat(At first I want to make only two users using the program only for testing).

  • I tried to modify my comment, but had already exceeded the time limit, correcting Java SE.

  • Gives a search in Java Websockets. The following are two examples: http://blog.caelum.com.br/websockets-html5-java-com-jetty-web-em-tempo-real/ http://www.devmedia.com.br/java-websockets-introducao/30443

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.