client server communication protocol

Posted on 2003-02-19
Medium Priority
Last Modified: 2010-03-31

I'm implementing a java based inventory and order control system using a traditional 3 tier approach - client, server, database server. I am using java for both client and server along with mySql for the database side of things.

The question relates to how to communicate between the java client and server. Due to the nature of the system it has a rich set of requests and variety of data structures to be exchanged across the tcp connection. My initial thought was to encode this into an XML dtd and use appropriate xml parsers at each end to direct the requests and results to the appropriate sub handler and so on. However it looks like it could get quite messy with the inherent variety of message configurations possible.

Has anyone else had a similarly complex message structure to support using similar techniques? Or maybe there is an ability of Java I have overlooked (I prefer to use simple tcp socket based communication as opposed to the numerous messaging protocols for speed and processing overhead).

As this is a bit vague I'm not after a complete solution, just some pointers in the right direction will be fine!

Many thanks,

Question by:andyedwards
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Accepted Solution

CEHJ earned 100 total points
ID: 7982408
Why not use SOAP?
LVL 35

Assisted Solution

girionis earned 100 total points
ID: 7982420
 Why don't you use RMI? Better and faster than reinventing the wheel and creating your own protocol from scratch.

  If you see the system expanding a lot in the future and becoming more complicated you could easily go with J2EE.

Expert Comment

ID: 9059236
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Expert Comment

ID: 9553034
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
SPLIT between CEHJ and girionis

Please leave any comments here within the next seven days.


Thomas Boshell
EE Cleanup Volunteer

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question