-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

spierce7 wrote:
[...]
> By the way, I'm going to need to integrate with a web database. The
> obvious one for me was MySQL, but that was mainly because PHP
> integrates so easily with it. What kind of options do I have with this
> while using GWT? I'd rather not have to have GWT integrate with PHP,
> and then MySQL, or some other ridiculous thing. What options do I have
> here? Thanks in advance!

I'm using Berkeley DB JE for one of my apps; it's a pure-Java
reimplementation of the old classic Berkeley DB non-relational database.
It's got some really nice Java reflection glue that combines well with
GWT's RPC glue. I can pull an object out of the database on the server
and pass it directly to the client in about three lines of code, and GWT
and Berkeley DB take care of all the plumbing. And because it's pure
Java, there's no extra dependencies on the server --- you just drop the
jarfile in WEB-INF/lib and it Just Works(tm).

A server-side RPC implementation can be as literally trivial as this:

DataObject getFromDB(int key)
{
  try
  {
    return _index.get(key);
  }
  catch (DatabaseException e)
  {
    return null;
  }
}

- --
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "People who think they know everything really annoy those of us who
│ know we don't." --- Bjarne Stroustrup
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKnxPQf9E0noFvlzgRAhmbAJ9VSY0eSfTjCoUUwNyJtf32UyYNcgCghhbe
Qe2VV/Tvae3wndsEBQJvyKo=
=4rPN
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to