[appengine-java] Re: When is the ConcurrentModificationException thrown in GAE?

2012-01-03 Thread Broc Seib
Suppose you have two threads calling your code snippet below, both trying to update the same entity. The first thread to call commit() in your transaction wins. The second thread will throw a ConcurrentModificationException upon calling commit(). I created a live demonstration to understand this

[appengine-java] Re: ConcurrentModificationException question

2011-12-16 Thread Broc Seib
, the end result will be the same. Doesn't that mean I can still get a ConcurrentModificationException even if the write was/will be successful? And if so then that example I outlined could still be possible? Thanks On Dec 14, 4:43 pm, Broc Seib broc.s...@gmail.com wrote: I think you

[appengine-java] Re: ConcurrentModificationException question

2011-12-14 Thread Broc Seib
I think you are mistaken about ConcurrentModificationException meaning it will eventually commit. If you get a ConcurrentModificationException, then that means the entity *failed* to write (because another write has modified the update timestamp on that entity group). You must catch that

[appengine-java] Re: Documentation Issue: TaskQueue Testing

2011-11-20 Thread Broc Seib
Erick, A while back the API changed to use with() functions, and I'm sure they did not catch all the docs that needed updated. You should file an issue here for fixing the documentation and someone will eventually get to it: http://code.google.com/p/googleappengine/issues/list Broc On Nov

[appengine-java] Re: Merging older queries with ancestor queries.

2011-10-28 Thread Broc Seib
You will not have the delay if you query for your data with an ancestor query. This page explains: http://code.google.com/appengine/docs/java/datastore/hr/overview.html Ancestor queries work because entity groups are a unit of consistency: all operations are applied to the entire group. Ancestor

[appengine-java] Re: Object does not persist [JDO, HR]

2011-10-25 Thread Broc Seib
There's this thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/8c8d3191d287553f Might I add, I wrestled with using JDO for several months before I realized it was just not a good fit for AppEngine's DataStore. I switched to Objectify and life has been much better

[appengine-java] Re: multiple GAE apps under one Google Apps domain

2011-10-19 Thread Broc Seib
Hi Eliot, Short answer: When asked for what domain, I think you need to enter domain.com, not dev.domain.com. The next page is where you get to specify the hostname. Broc For the longer answer, I thought I'd share some of the other subtle things I learned by trial and error when going down

[appengine-java] Re: Crons Optimization

2011-10-14 Thread Broc Seib
It may require a bit of typing (one time), but may I suggest just explicitly scheduling each of the 14 cron jobs, staggered appropriately. Use the following variety of syntax to specify the schedule: every N (hours|mins|minutes) [from (time) to (time)] (from

[appengine-java] Re: [objectify-appengine] white labeling

2011-08-19 Thread Broc Seib
Here are some thoughts: With respect to segregating your data for each brand, you can read a bit about DataStore and Multitenancy here: http://code.google.com/appengine/docs/java/multitenancy/overview.html I also know that when your are a paying Google Apps customer, you can add domain aliases

[google-appengine] Query Blobstore by creation date?

2011-05-22 Thread Broc Seib
I've been through the blobstore overview and API docs (for Java) and I can't see how to query the blobstore meta data. I want to delete all blobstore items older than a particular date. Seems like a normal thing to want to do. I can see all the dates, etc when I view from the /_ah/admin/ tool,

[appengine-java] Re: Slow JAXB context initialization

2011-03-28 Thread Broc Seib
Aurel, JAXB on AppEngine has been slow for me as well, and causes me pain. In my case the Google Checkout SDK uses JAXB, and it causes problems when using Google Checkout with App Engine (yikes -- two Google products not getting along!). I described my problem

[google-appengine] Re: Yahoo Classing GAE Mail as Spam

2011-03-24 Thread Broc Seib
Check out this other thread: http://code.google.com/appengine/forum/?place=topic%2Fgoogle-appengine%2FazhX_BKiNiE%2Fdiscussion There is mention of using Amazon's SES with more success. -broc -- You received this message because you are subscribed to the Google Groups Google App Engine

[appengine-java] Re: How can I front GAE's Jetty with Apache/mod_jk?

2011-03-21 Thread Broc Seib
Hi all, I wrote up a solution which uses mod_proxy rather than mod_jk. It is here: http://blog.broc.seib.net/2011/03/fronting-eclipse-jetty-server-with.html Broc -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this

Re: [google-appengine] Re: Unable to deploy to app engine recently

2010-09-30 Thread Broc Seib
made was about fifteen minutes ago, i.e. 12:09AM 9/30/2010 EST. I got another 403 error in my deploy logs. I was also going to try to manually send a war file up using appcfg, but I can't seem to export a war file out of eclipse for this type of project... Broc On Sep 29, 10:21 pm, Broc

[google-appengine] Unable to deploy to app engine recently

2010-09-29 Thread Broc Seib
Hi, In the last 24 ~ 48 hours, I have no longer been able to deploy apps to my app engine account. I get error Unable to update app: Unknown. To be specific, I right-click my project in Eclipse, choose Google in the menu, and Deploy to App Engine in the sub-menu. I supply my id

[google-appengine] Re: app engine errors

2010-09-29 Thread Broc Seib
You should write you code to expect the data store to be read-only on occasion. You ought to at least expect the scheduled maintenance periods. Two tips to stay informed of these: 1) You can add the scheduled downtimes to your calendar: iCal