aspose file tools*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "client/server program: how to?" Watch "client/server program: how to?" New topic
Author

client/server program: how to?

choubix alex
Greenhorn

Joined: Dec 25, 2009
Posts: 22
Hello!

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

Thanks!


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41525
    
  53
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.


Ping & DNS - my free Android networking tools app
choubix alex
Greenhorn

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
OpenJPA
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
Sheriff

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

Joined: Aug 11, 2007
Posts: 4646
    
    5

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: http://aspose.com/file-tools
 
subject: client/server program: how to?