Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

GWT in Action - Database Topics

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Adam,

I understood the whole point. Thanks for the reply!
 
reply
    Bookmark Topic Watch Topic
  • New Topic