[appengine-java] Re: android app and google app engine

2011-04-25 Thread Kevin
Is there a reason why you don't use the datastore?



On Apr 21, 5:56 am, dass  wrote:
> I have developed an android app  which decodes a QR code .I need to
> send this decoded information to a sever which has a Mysql database.
> Here I need to check in database that the information is present or
> not. I dont have a sever whose url I  can specify in myapp. Plz help
> by suggesting on how do I deploy the Mysql db on google app engine and
> use it in my android app.

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



[appengine-java] Integration with OpenJPA

2010-10-07 Thread Kevin
Hi,
I'm trying to get GAE to integrate with OpenJPA (instead of the built-
in DataNucleus) for various reasons.  From the Setting Up JPA section
on the Using JPA with GAE page [1], it sounded like this might be
doable by replacing the DataNucleus binaries with the OpenJPA binaries
in the war/WEB-INF/lib directory and doing the necessary enhancement
steps (also required by OpenJPA).

But, I have not had any luck.  The DataNucleus version in GAE seems to
be limited to JPA 1.0 functionality, although I found some references
to the JPA 2.0 APIs...  So, I have removed all 3 jars related to
DataNucleus along with the Geronimo spec jars, and inserted the
openjpa-all jar.  I get a little further, but now I am hitting
classloader issues.  I'm working with the simple Guestbook sample.

I also just noticed that Hibernate is not compatible with GAE either,
so at least we're in good company...  :-)

Are there any plans to open up GAE to alternate JPA providers?  Is
there anybody interested in the GAE development community to help with
this endeavor?  I like the GAE development and deployment environment,
but I would like to use OpenJPA instead of DataNucleus.

(I can provide more details (stack traces, test projects, etc) if I
get some indication that there is interest in this exercise.)

Thanks for any information,
Kevin
Apache OpenJPA PMC

[1]  
http://code.google.com/appengine/docs/java/datastore/usingjpa.html#Setting_Up_JPA

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



Re: [appengine-java] URLFetch HTTPRequest.fetch throws NPE

2009-12-09 Thread Kevin Shekleton
This looks like it might be
http://code.google.com/p/googleappengine/issues/detail?id=2412

On Wed, Dec 9, 2009 at 4:03 AM, Satheesh Babu Vattekkat wrote:

> Hi,
>
> I've a code like this to a remote web service (under https) that
> expects a form data post. Output is XML.
>
>  URLFetchService f = URLFetchServiceFactory.getURLFetchService();
>  HTTPRequest req = new HTTPRequest(url, HTTPMethod.POST);
>  req.setPayload(data.toString().getBytes());
>  HTTPResponse resp = f.fetch(req);
>
> It fails with an NPE on f.fetch() above.
>   java.lang.NullPointerException
>atcom.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch
> (URLFetchServiceImpl.java:31  )
>
> Any thoughts on what could be wrong here?
>
> I access this service regularly through python and it works.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
>

--

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




[appengine-java] remote_api get and put

2011-08-12 Thread Kevin Kuei
Dear All,

I'm trying to use remote_api to query and update an entity on
datastore.
I read the following article and successfully query the data.

http://code.google.com/intl/en/appengine/docs/java/tools/remoteapi.html

But the poor thing is, after the query, I would like to update the
entity. But it didn't work without any error message.

Here is part of my code. Would you plz help to check it?? Thanks!!

===
public class RemoteApiExample {
public static void main(String[] args) throws IOException {
String username = System.console().readLine("username: ");
String password =
new String(System.console().readPassword("password: "));
RemoteApiOptions options = new RemoteApiOptions()
.server("9x9tvqa.appspot.com", 443)
.credentials(username, password);
RemoteApiInstaller installer = new RemoteApiInstaller();
installer.install(options);
try {
DatastoreService ds =
DatastoreServiceFactory.getDatastoreService();
//System.out.println("Key of new entity is " +
//ds.put(new Entity("Hello Remote API!")));

// My code is beginning here
Key k0 = KeyFactory.createKey("MsoChannel", 7);
Entity e0;

e0 = ds.get(k0);

String langCode = (String) e0.getProperty("langCode");
System.out.println("Key=7, langCode=" + langCode);  // <--
this works, langCode="en"

System.out.println("Now we are going to modify it to be
langCode=\"zh\"...");
e0.setProperty("langCode", "zh");
ds.put(e0);

} catch (EntityNotFoundException e) {
System.out.println("Exception caught!");

}
finally {
installer.uninstall();
}
}
}

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



[appengine-java] Problems pointing my GoDaddy domain to App Engine (no other posts have been able to help!)

2010-11-09 Thread Kevin M
So I have a domain hosted on GoDaddy.com and I just set up Google App
Engine and Google Apps. I registered my new domain with Google Apps so
that I can see it in my dashboard and I believe I did what I needed to
do to verify I'm the owner of the domain. I added the CNAME entry in
GoDaddy for www to point to ghs.google.com and removed all others. I
set up the MX records I saw in another post so at least my email is
going where I expect it to. But, my new URL is not going to my google
app engine application for some reason. Do I need to change the Name
Servers from GoDaddy name servers to Google name servers? Do I need
A(Host) entries? I'm confused. Please help!

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