Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

client/server program: how to?

 
choubix alex
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 50225
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote: . . . the Servlet, JSP and Tomcat forums might be more appropriate places to ask for advice.
Agree. Moving.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic