[appengine-java] Re: Pay to Reserve JVM

2009-12-01 Thread ted stockwell
The fact that the feature is called 'Pay to reserve a JVM' is interesting. Does it mean that each application runs in it's own JVM? On Nov 30, 4:57 pm, Jeffrey Goetsch wrote: > There is a feature request to allow you to Pay to Reserve a JVM.  They are > wanting to see if people would be willing

[appengine-java] Re: Why is it called "Google App Engine for Java" ?

2009-11-28 Thread ted stockwell
Actually, many people had the same reaction when GAE/J was released. See for instance, http://weblogs.java.net/blog/2009/04/16/google-app-engine-java-sucks Without a doubt if some smaller player created such an incompatible implementation they would not be allowed to call it 'Java'. On Nov 27,

[appengine-java] Re: Why is it called "Google App Engine for Java" ?

2009-11-28 Thread ted stockwell
On Nov 27, 7:19 pm, Diana Cruise wrote: > > Ted... java.lang.Thread, you want to launch new processes from within > your app server...that's a job for URLFetch. > Unlike Thread, I can't use URLFetch to perform a task asynchronously and return a result to the calling thread. -- You received t

[appengine-java] Re: Why is it called "Google App Engine for Java" ?

2009-11-27 Thread ted stockwell
2 pm, jago wrote: > What do you mean with not a problem? > > On Nov 27, 10:13 pm, ted stockwell wrote: > > > On Nov 27, 12:17 pm, Diana Cruise wrote: > > > > I'm curious which classes you are referring to that are missing and > > > are NOT considered

[appengine-java] Re: Why is it called "Google App Engine for Java" ?

2009-11-27 Thread ted stockwell
On Nov 27, 12:17 pm, Diana Cruise wrote: > I'm curious which classes you are referring to that are missing and > are NOT considered a stability risk running under a shared app server > environment.   Well, since you asked, java.lang.Thread is NOT a problem in most shared app server environments

[appengine-java] Re: Concurrency In Transaction

2009-11-18 Thread ted stockwell
On Nov 17, 10:27 pm, Rusty Wright wrote: > Ah, thanks.  So if I knew how many servers my cloud is made of then I should > use that number for my MAX_RETRIES.  ;-) > > I'm curious about how others are handling the exceptions.  The > JDOCanRetryException is subclassed by other exceptions that do

[appengine-java] Re: Concurrency In Transaction

2009-11-17 Thread ted stockwell
On Nov 17, 2:59 pm, Rusty Wright wrote: > Is there some way to pause before retrying the database transaction?  If you > don't, then it seems to me that the processes that are banging into each > other are going to keep failing.  I'd like to add a pause for a random amount > of time in the ca

[appengine-java] Re: Concurrency In Transaction

2009-10-27 Thread ted stockwell
On Oct 27, 1:35 pm, yccheok wrote: > > (Now, I assume there will be only one servlet instance in entire web > environment. Multiple thread will be spawn to access the code in the > one servlet instance, for multiple web request.) > That is not a valid assumption. There may be more than one ins

[appengine-java] Re: Java Low Level commit timeout

2009-09-22 Thread ted stockwell
On Sep 21, 1:07 pm, "Jason (Google)" wrote: > Since bulk updates to entities in the > same group are performed sequentially and not in parallel > > - Jason > Hi Jason, Question... If I do a bulk put where the entities are NOT in the same entity group then would the updates be performed in pa

[appengine-java] Re: when will BigDecimal be supported in datastore?

2009-09-21 Thread ted stockwell
bers. * The length of an encoded number is only slightly larger than the length * of its original number. * Unlike other schemes, there is no limit to the size of numbers which may be encoded. * * @author ted stockwell * */ public class StorageNumberCodec { public static

[appengine-java] Re: when will BigDecimal be supported in datastore?

2009-09-20 Thread ted stockwell
On Sep 20, 7:16 am, Philippe Marschall wrote: > > BigDecimal is the only sane choice for anything that includes monetary > calculations. > True, but just because a number is saved as a long doesn't mean you can't do calculations using BigDecimal. I think the CPU cycles it takes to convert a lo

[appengine-java] Re: How to query multivalued properties in low-level Datastore API?

2009-08-25 Thread ted stockwell
Thanks much. One more question... If I want to select recipes that have both hamburger and olives should I just add two filters??? Query query = new Query("recipe"); query.addFilter("ingredients", Query.FilterOperator.EQUAL, "hamburger"); query.addFilter("ingredients", Query.FilterOperat

[appengine-java] How to query multivalued properties in low-level Datastore API?

2009-08-25 Thread ted stockwell
a Query in the low-level API that will select all recipes that include 'hamburger" in the ingredients??? I'm thinking that it's possible since it's supported in the JDO API, but I cannot see how it should be done. Thanks in advance, -ted stockwell --~--~-~--~~-

[appengine-java] Re: aggregate functions implementation in Google App Engine

2009-08-19 Thread ted stockwell
On Aug 19, 5:00 am, PSL wrote: > Hi, > I want to implement aggregate functions like sum and avg in Java in > Google App Engine. I don't know a good way to acomplish this in GAE right now. I think that having Asychronous URL fetches is one way that this could be done (this is a feature in the Pyt