• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to sends data over network ?Help me!!

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,I am beginner of learning Java Networking.I want to connect 3 or more computers. One for server and others(eg A and B )for clients .But I want to connect
1.A to Server and vise versa
2.B to Server and vise versa
3.A to B and vise versa.
First I want to send message from either A or B to server and server sends stored data to sender(eg A ) and sender (A ) will connect to B .Then A and B will confirm message and A and B will send data one to another.But this occasion can occurs from A and B concurrently.
But I just learned simple code for connection of one server and one client using Server socket and socket . Will all 3 computers require to act for both server and client ?Is there other ways to connect between clients . I don't know how to consider to solve data conflict between computers . I also want to satisfy if new clients are added . If anyone know to solve above problem including data conflicts ,please help me with simple sample code for both server and clients . Thanks !!
 
Author
Posts: 3473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Firstly workout what protocols you are going to use to talk to the other systems TCP/IP, HTTP, RMI, JMS, etc.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unless you are interested in learning about socket programming, you could use Java Message Service - a much higher level API.

A google search will get you LOTS of tutorials on JMS.

Bill
reply
    Bookmark Topic Watch Topic
  • New Topic