File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes client/server program: how to? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "client/server program: how to?" Watch "client/server program: how to?" New topic

client/server program: how to?

choubix alex

Joined: Dec 25, 2009
Posts: 22

I'd like to start coding next week but I am struggling with the architecture...

Does anyone knows of a good book (or any other good resource) that would allow me to build up the skills/understanding necessary to code a 'basic' client/server application?

I'd really like to be able to have a remotely accessible application with a front end using either a browser or swing and connecting to a server where the H2 database will be installed (connection through internet & intranet since we'll be using laptop when traveling and desktop in the office).

I suppose it is quite an ambitious project but I am confident I'll be up to the tasks


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42956
What kind of communication and backend where you thinking about? If HTTP and a web server/servlet container, then the Servlet, JSP and Tomcat forums might be more appropriate places to ask for advice.
choubix alex

Joined: Dec 25, 2009
Posts: 22
Hello and thanks for your reply. I was posting here as I am a beginner.

I was thinking about :

H2 database
Jetty / Tomcat webserver
and a Swing client

but since I am new to Java I would need some guidance (or some good references/books that I can buy to study)

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 43359
Ulf Dittmer wrote: . . . the Servlet, JSP and Tomcat forums might be more appropriate places to ask for advice.
Agree. Moving.
Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

Wow, that is a pretty ambitious project for a beginner.

Do you realize that the usual Tomcat server is a container for Java servlets and that it nearly always talks to a client's browser (i.e. Internet Explorer, FireFox, Chrome, Safari, etc.).

While it is possible to do what you list, that is:

1) not the normal way to approach it
2) fairly complex

As an initial project, you may have better luck just doing Client/Server from a standard browser over HTTP to your custom servlet code running under Tomcat or another container.
I agree. Here's the link:
subject: client/server program: how to?
It's not a secret anymore!