Results 1 to 3 of 3
  1. #1
    cliff is offline Member
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Default Java Server Client with database

    Dear all,
    I want to write the java program as follows;

    ClientA: 1 2 3 (sending the message)


    ClientB: one two three (receiving the message)


    Using the Database(1,2,3 and one two three are stored in database) in the process. Can anyone have idea? Thanks!

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    Create a server which allows connections (from ClientA and ClientB) and has access to a database.

    After both the clients connect to your server then start listening for messages; when one is received then you convert it--via a database query--and then relay that message to the other client.

    Flow:
    Server Listens for connections
    ClientA connects
    ClientB connects
    ClientA sends message to Server
    Server recieves message from ClientA
    Server calls database to convert the message (i.e. "1" -> "One")
    Server sends Message to ClientB
    My Hobby Project: LegacyClone

  3. #3
    cliff is offline Member
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Default

    thanks! Very useful! Can you suggest some java code for reference and what database do you suggest?

Similar Threads

  1. Java Server, Flash Client
    By matbuckland in forum New To Java
    Replies: 3
    Last Post: 09-01-2009, 10:58 AM
  2. client server without database using rpc
    By amskj in forum Advanced Java
    Replies: 2
    Last Post: 07-09-2009, 01:01 AM
  3. Java Client Needs Database Acces Over Internet
    By etherkye in forum Networking
    Replies: 2
    Last Post: 07-01-2009, 11:44 AM
  4. java server-client comm
    By Manas Das in forum Networking
    Replies: 2
    Last Post: 01-28-2009, 05:58 PM
  5. Java Server & C# client communicating through sockets
    By yukijocelyn in forum Networking
    Replies: 0
    Last Post: 09-05-2008, 11:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •