1. Copy JARs
2. Create jdoconfig.xml
3. Obtain a PersistenceManager

http://code.google.com/appengine/docs/java/datastore/usingjdo.html

What do you exactly mean by "create the DB connection"?

Just obtain the persistence manager ...and persist.

On Jul 24, 5:06 pm, genjlc <[email protected]> wrote:
> 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 <[email protected]> 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 <[email protected]> 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 [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-appengine%2bunsubscrib­[email protected]>
> > > .
> > > 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 [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-appengine?hl=en.

Reply via email to