google-app-engine

How do I annotate a collection of embedded objects in Google App Engine (Java)?

Is it possible to store a collection of embedded classes in Google App Engine (Java)? If so, how would I annotate it? This is my class: @PersistenceCapable public class Employee { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) Key key; @Persistent(embeddedElement = "true") private List<Contac...

uploading data in google app engine datastore

I am working in uploading and downloading data into google app engine datastore.I refered the following link http://code.google.com/appengine/docs/python/tools/uploadingdata.html In that they gave if we are using key as primary key datatype than remove you can remove the entire key property from the property map. so that i sho...

Activate a Java Servlet from another Java Servlet

My problem is this:Google App Engine allows cron jobs to be active for only 30 seconds before an DeadlineExceededException is thrown. And my app that isn't suited for the google app engine platform from this point of view, needs to call a time-consuming cron job. One solution that I figured out was to calling another Servlet (Servlet2) a...

google app engine blob store creation.

In order to save precious bandwidth, the image serving app (a minor, but important part of the total app) tries to serve only thumbnails or reduced size previews of possibly large photos or illustrations. Storing the original image in the BlobStore is simple enough, and generating the thumbnails is also simple using the the Image servic...

Strange problem with Google App Engine Java Mail

Hi, I'm using the MailService feature of Google App Engine in my application. It works fine in one application without any issues. But the same code doesn't work in another app. I'm not able to figure it out. Please help. Following is the piece of code that I use to send mail. public static void sendHTMLEmail(String from, Strin...

Appengine without google apps?

I was using GAE with Gapps on my domain, however it seems that ghs.google.com is unavailable in China. How can I use GAE on my domain without Gapps? Edit: A solution I'm considering is using something like a proxy. This way the firewall doesnt see google. By the way, my site is not banned because of its content, it can be acessed norma...

What is a good place to store configuration in Google AppEngine (python)

I am making a Google AppEngine application and am doubting were I should store (sensitive) configuration data like credentials. Should I make a single bigtable entity for configuration, or is there another advised way to store it. ...

End to end example of CQRS implementation on top of AppEngine

All of the infrastructure components required to implement a CQRS based application seem to be out of the box within AppEngine. Unfortunately, I can't find anything related to this subject. Few possible reasons It's a well kept secret beyond "Architecture Astronauts" It's a worthless overkill architecture because AppEngine scales ou...

GAE JPA DataNucleus One-to-Many object creation

Hello all, Let's say an Owner has a collection of Watch(es). I am trying to create Watches and add the newly created Watches to an existing Owner's collection of watches (an arraylist). My method is as follows: public void add(String ownerName, String watchName) { Owner o = new OwnerDAO().retrieve(ownerName); //retrieves owner o...

Java Google Appengine sharded counters without transactions

I'm going through the Sharded Counters example in Java: http://code.google.com/appengine/articles/sharding_counters.html I have a question about the implementation of the increment method. In python it explicitly wraps the get() and increment in a transaction. In the Java example it just retrieves it and sets it. I'm not sure I fully ...

mapping encoded keys to shorter identifiers in appengine

I want to send unique references to the client so that they client can refer back to specific objects. The encoded keys appengine provides are sometimes 50 bytes long, and I probably only need two or three bytes (I could hope to need four or five, but that won't be for a while!). Sending the larger keys is actually prohibitively expens...

Python Exception handling in Google App Engine

I have exception handling in my app engine app. The code work perfectly fine on the dev server. But when I upload the file on the app engine server, I get a syntax error. Here is the traceback: Exception in request: Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/h...

Datastoreindex-Google app engine

I have created new application and deployed,in admin console Datastore index contains block_id ▲ , board_id ▲ , branch_id ▲ , input ▲ , school_id ▲ , sec_id ▲ , std_id ▲ , sub_id▲ Serving block_id ▲ , board_id ▲ , branch_id ▲ , input ▲ , school_id ▲ , sec_id ▲ , sub_id ▲ , std_id ▲ Serving block_id ▲ , board_id ▲ , branch_id ▲ ...

Designing a scalable product database on Google App Engine

I've built a product database that is divided in 3 parts. And each part has a "sub" part containing labels. But the more I work with it the more unstable it feels. And each addition I make it takes more and more code to get it to work. A product is built of parts, and each part is of a type. Each product, part and type has a label. And...

Constructing a simple HTTP Post request to send a single image from iPhone

I'm trying to send a single image from my iPhone app to my Google App Engine Java server. On the server, I'm getting a FileUploadBase$InvalidContentTypeException, which is thrown when the request is not a multipart request. ServletFileUpload.isMultipartContent(req) is printing false. I'm trying to send an image, encoded as a jpeg, and...

Platform-neutral JSP Zip File Upload (Google App Engine / Tomcat)

Is there a consistent code-base that allows me to upload a zip file to both GAE and Tomcat-based servers, extract the contents (plain-text files), and process them? ...

Google App Engine does not accept cleared values for db.IntegerProperty from my django forms

I have a very simple db.Model that contains a db.IntegerProperty and a db.TextProperty: class Foo(db.Model): shoe_size = db.IntegerProperty() comments = db.TextProperty() From this I created a very simple Django Form Object: class FooForm(djangoforms.ModelForm): shoe_size = forms.IntegerField(required=False) comments ...

foreign key in google app's datastore

A quick question, Does google app's datastore support foreign key mapping, if yes, can anyone enlightened me XD, or share some link. thank you very much, ...

How to set up a staging environment on Google App Engine

Having properly configured a Development server and a Production server, I would like to set up a Staging environment on Google App Engine useful to test new developed versions live before deploying them to production. I know two different approaches: A. The first option is by modifying the app.yaml version parameter. version: app-sta...

Is there any performance risk in having transactions wrap every datastore event in App Engine - reads and writes?

According to the App Engine docs, you wrap a datstore event in a transaction like this: import javax.jdo.Transaction; import ClubMembers; // not shown // ... // PersistenceManager pm = ...; Transaction tx = pm.currentTransaction(); try { tx.begin(); ClubMembers members = pm.getObjec...