• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

GWT in Action - Database Topics

 
Ranch Hand
Posts: 10192
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the book teaches how to talk to database from GWT code??
 
author
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually it doesn't in detail. But there are some good reasons for this.

You can't talk to a database directly from GWT client side code, since this gets compiled into JavaScript running in a browser. There is no way to talk to a database from the client side JavaScript (if you put Google GEARS to one side for the moment).

We do point that out in the book, as it is quite a common question for people coming to GWT.

But rather than GWT looking deficient in this area, it is acutally really flexible. You can write your server side database access code in whathever language / technology you prefer.

Unfortunately there were page count restrictions on the book, otherwise I am sure Rob and I could easily have gone over 1000 pages So, in the book we chose to devote around 4 chapters to focus on the various ways of communicating from client to server GWT provides (HttpRequest, RequestBuilder, RPC) letting the details of database connection be covered by books better suited to those questions.

Would be interesting to know if you think this was a good approach or not?

Cheers,

Adam
 
Joe Harry
Ranch Hand
Posts: 10192
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adam,

I understood the whole point. Thanks for the reply!
 
I don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!