Re: [appengine-java] how to keep fields unique

2011-03-04 Thread Ed Murphy
I'm struggling with a bug that is closely related to this thread. I think transactions all by themselves will not work here. This is because the transactions are optimistic. So, if the transaction looks like this (pseudo code) pm.currentTransaction.begin(); Object preexistingEntity =

Re: [appengine-java] how to keep fields unique

2011-03-04 Thread Ed Murphy
OK, here is something that looks promising; http://squeeville.com/2009/01/30/add-a-unique-constraint-to-google-app-engine/ This shows a solution in python, but the concept is applicable to Java. Basically, for the unique field, you create another database entity and derive a primary Key

[appengine-java] Re: Task queue + datastore transaction + jdo: is it possible?

2011-01-11 Thread Ed Murphy
Yes, I do this with JDO. Just add to you queue within the current transaction, for instance; PersistenceManager pm = PMF.get().getPersistenceManager(); try { // // start transaction so we can atomically check the secondary key // pm.currentTransaction().begin();

[appengine-java] Re: SDK/Eclipse pains on Ubuntu

2010-10-26 Thread Ed Murphy
If you right-click your appengine project and choose properties from the contextual menu (or just select the project and select properties item in the Project menu on the menubar), you get the project properties. Select the Google in the navbar on the left, then select App Engine from the tree

[appengine-java] Re: SDK/Eclipse pains on Ubuntu

2010-10-25 Thread Ed Murphy
I use Windows and I have the same problem when I upgrade and sometimes when I create a new workspace. (tried to use Ubuntu, but can't get my Adobe Flex plugin and Google plugin to both play nice). It seems the the plugin update changes the SDK version, but does not copy the new jars; it leaves the

[appengine-java] Re: How to use junit test in the newest SDK1.3.1

2010-03-02 Thread Ed Murphy
Thanks for starting this thread. I have my Junit tests working, including my datastore tests, but I have a question regarding project setup. I suppose this is more of an Eclipse question than anything else, but perhaps you can help. I've worked in NetBeans prior, and I can setup a 'test' folder

[appengine-java] Re: why my app on GAE first access is so slow

2010-01-04 Thread Ed Murphy
There are some proposed new features for GAE to allow apps to keep their byte-code 'warm', either on the application server, or as a pre- initialized image on disk that can be loaded and not incur a full initialization. Check out this issue, contribute suggestions and vote for it if you want to