I am trying to connect to the datastore from within the confines of an
app.  The app (client) is currently looping through an array of
strings, where every string is a URL to a pic.  The client is
periodically bugging the server for some data that it then displays to
the user.  This is all static and has no user interaction.
http://cd-jks-countdown-app-v2.appspot.com/

The ideal is to allow the user to search the DB by any number of
filters (first name, last name, event, ,,, )  So I am setting up the
client to capture the user's search parameters and pass them to the
server, I am trying to get the server to build a query and ask the DB
for the correct result set.  The server would then pass the list of
strings to the client and the client would only loop through those
photos.  This implies, however, that I can:

1. Connect to the DB.
2, Pass the query to the DB and get a result set back
3. That I can load data to the DB to be queried against.

I think I have the "Add data" part correct:
PersistenceManager.persist(entity).
I think I have the entity correct.  Basically a standard bean with
getter and setters for the instance variables, with the exception of
the primary kay (auto assigned Long), and a few annotation tags.
I think I have the query portion correct.  Dynamically builds the
WHERE clause based on the parameters passed to it:  if (firstName !=
null) query.append(blah)
(There is lots of information, online, about what to do when you have
the connection)

I haven't, however, figured out how to create the DB connection for
the server to use.
(There isn't any information about how to establish the connection, in
Java at least)

This is supposed to be a learning app, its only my second GWT app, but
it is rapidly becoming an exercise in extreme frustration.



On Jul 22, 2:34 pm, Christoffer Viken <christof...@viken.me> wrote:
> are you trying to use it trough another platform?
> You can't connect to the datastore, you can only use it (from within a
> AppEngine app) as i understand it (and that makes sense)
> You could expose the datastore to your app (on 3p server) trough a REST API
> that you deploy to AppEngine (unless that breaks the TOS)
>
>
>
> On Thu, Jul 22, 2010 at 10:28 PM, genjlc <jeremy.sh...@gmail.com> wrote:
> > I've made a simple Client/Server/Shared app that I would like to add
> > data to.  I am trying to use Google's data store.
>
> > I have been reading for two days and have yet to find a step by step
> > checklist/example of how to establish a connection to the cloud, in
> > Java, without resorting to PHP.  There seems to be lots of information
> > on what to do once the connection is made, but no information on
> > actually establishing the connection
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscrib...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to