[appengine-java] Bulk Uploading Data

2009-09-01 Thread mscwd01
I have some 30,000 files consisting of 800kb that I want to upload and save in the data store. As us java users dont have an easy way of uploading data I am resorting to using http POST requests to upload the files. This is painfully slow, each file takes about 2 minutes. Has anyone come up with

[appengine-java] Forwarding a request to a external URL preserve IP - Can it be done?

2010-03-03 Thread mscwd01
Hey, Is there a method in which I can receive a request and then forward the same request to an external URL (not redirect)? Importantly, the IP address of the device which made the initial request MUST be preserved. It must look, to the external URL, that the request came from the device which

[appengine-java] Re: Forwarding a request to a external URL preserve IP - Can it be done?

2010-03-04 Thread mscwd01
I dont like bumping posts, but this has wasted far too much of my time now ;) Any help would be greatly appreciated. On Mar 3, 4:47 pm, mscwd01 mscw...@gmail.com wrote: Hey, Is there a method in which I can receive a request and then forward the same request to an external URL (not redirect

[appengine-java] How to ensure object synchronization when using the datastore

2010-04-08 Thread mscwd01
Hey, How do you ensure, once you have queried an object from the datastore, that another call to that object cannot be made? I basically have a bunch of objects with counters which get incremented during each call to that object. What I need to ensure is the object doesn't get called by two

[appengine-java] Is it possible to convert a user defined String key to a unique Long?

2010-04-08 Thread mscwd01
Hey, As the title of this post suggests, is it possible to get a unique Long id from a user defined String key? Thanks -- 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

[appengine-java] Re: How to ensure object synchronization when using the datastore

2010-04-08 Thread mscwd01
be reset so you may need to periodically   store them in the datastore. On 8 Apr 2010, at 16:17, mscwd01 wrote: Hey, How do you ensure, once you have queried an object from the datastore, that another call to that object cannot be made? I basically have a bunch of objects with counters

[appengine-java] Re: Is it possible to convert a user defined String key to a unique Long?

2010-04-08 Thread mscwd01
, mscwd01 mscw...@gmail.com wrote: Hey, As the title of this post suggests, is it possible to get a unique Long id from a user defined String key? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group

[appengine-java] Re: How to ensure object synchronization when using the datastore

2010-04-08 Thread mscwd01
post Max Ross wrote about optimistic locking using built in features of JDO/JPA On Thu, Apr 8, 2010 at 2:42 AM, mscwd01 mscw...@gmail.com wrote: Thanks John. So basically the process should be: - Query for the object inside a transaction - Update the object counter - Commit

[appengine-java] Cannot persist a HashMap

2010-04-17 Thread mscwd01
I am not able to persist a HashMap field. This is how I define it: @Persistent(serialized = true, defaultFetchGroup = true) private MapString, Integer items; When I create the Object which the Map is a field of, I instantiate the Map as follows: items = new HashMapString, Integer(); When I

[appengine-java] Limiting the number of requests per IP each minute

2010-06-27 Thread mscwd01
Hey, I am developing an app which awards users for visiting a specific link. However, I want to ensure this is not abused by people writing scripts to visit the link rather than manually viewing it. Is there a way to check how many times a specific IP address has accessed your application within

[appengine-java] Re: Limiting the number of requests per IP each minute

2010-06-28 Thread mscwd01
I assume my idea was the best anyone can come up with? On Jun 27, 10:27 am, mscwd01 mscw...@gmail.com wrote: Hey, I am developing an app which awards users for visiting a specific link. However, I want to ensure this is not abused by people writing scripts to visit the link rather than

[appengine-java] Re: Any ETA for a backup/restore facility?

2010-06-28 Thread mscwd01
Thanks for your replying guys, it would be great if we could get an official Google response to update us on this as well though! I'll definitely have a look at the Bulk Loader in the meantime... On Jun 28, 1:52 pm, Mike Dillon mikedillo...@gmail.com wrote: Mscwd01, I'm not a google employee

[appengine-java] Re: Limiting the number of requests per IP each minute

2010-06-30 Thread mscwd01
in the past. For the key, however, I've used this as the key: (Pseudocode): strftime(%Y %m %d %h) + ipaddress Memcache uses LRU to expire elements, so once the hour passes, the key will be quickly expired as it falls off the end of the list. On Wed, Jun 30, 2010 at 8:50 AM, mscwd01 mscw

[appengine-java] Re: Any ETA for a backup/restore facility?

2010-06-30 Thread mscwd01
this, submit a request and we will add it to the Open Source projects page: http://groups.google.com/group/google-appengine/web/google-app-engine... On Wed, Jun 30, 2010 at 8:51 AM, mscwd01 mscw...@gmail.com wrote: Can I attempt to get the attention of a Google employee to ask When can we

[appengine-java] Re: Any ETA for a backup/restore facility?

2010-07-01 Thread mscwd01
to the bulkloader, which lets you do those things. App Engine's datastore isn't a relational database. We can't do a dump of all your data without iterating through all of your indexes, then retrieving your Entities. On Wed, Jun 30, 2010 at 4:02 PM, mscwd01 mscw...@gmail.com wrote: Thanks

[appengine-java] Re: Any ETA for a backup/restore facility?

2010-07-01 Thread mscwd01
export capability now, however, don't wait on this since it won't be soon. My suggestion is to learn to use the current bulkloader or build your own export mechanism. On Thu, Jul 1, 2010 at 8:16 AM, mscwd01 mscw...@gmail.com wrote: I second this. On Jul 1, 2:17 pm, xcdesz xcd...@gmail.com

[appengine-java] Getting email address of user from Google Account ID

2010-09-15 Thread mscwd01
Hey, For the primary key of my User object, I store the Google Account ID instead of the user's email address (in the event they change the email address). Is there a way of taking the Account ID and obtaining the current email address associated with the account? Thanks -- You received this

[appengine-java] JDO Concurrent Modification Exception

2010-09-27 Thread mscwd01
Hey, My app has been getting a higher number of requests per second recently and as a result I've seen an increase in the number of concurrent modification exceptions occurring when I persist objects to the datastore. The problem arises as I perform a lot of updates on a particular object and if

[appengine-java] Re: JDO Concurrent Modification Exception

2010-09-27 Thread mscwd01
Anyone? I have done more searching and cant find anything JDO specific to handle concurrency so I am assuming it's normal Java locking that'll need to be implemented? On Sep 27, 9:48 am, mscwd01 mscw...@gmail.com wrote: Hey, My app has been getting a higher number of requests per second

[appengine-java] Re: Urgent: Getting only Server Error (500) since ~12:30 am (September 28th)

2010-09-28 Thread mscwd01
I've been getting the second issue you mentioned for the last few days. Sometimes the error rate is above 50%. Don't expect to get any help from Google employees though, I've tried and got nowhere. It makes you wonder if they care any more. On Sep 28, 10:37 am, Lior Harsat lior.har...@gmail.com

[appengine-java] java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-19 Thread mscwd01
Hey, I was very pleased to see the class java.net.InetAddress present in the new SDK as I've been needing it for a while. However, after rebuilding my app with SDK 1.3.8 and uploading it to the App Engine's live servers I get the following exception: Internal Server Error (500) -

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-19 Thread mscwd01
Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Tue, Oct 19, 2010 at 11:41 AM, mscwd01 mscw...@gmail.com wrote: Hey, I was very pleased to see the class

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-19 Thread mscwd01
Any word on this? -- 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

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-20 Thread mscwd01
Ikai, did you get a chance to look into this? When can we expect every app to be upgraded to 1.3.8? -- 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

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-21 Thread mscwd01
://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Wed, Oct 20, 2010 at 4:27 PM, mscwd01 mscw...@gmail.com wrote: Okay now I'm confused. I added a quick test page to see what version my app is running and it appears I am on 1.3.8. http

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-21 Thread mscwd01
://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Thu, Oct 21, 2010 at 10:38 AM, mscwd01 mscw...@gmail.com wrote: Thanks for looking into it Ikai. If you were to guess is this likely to be a quick fix or a lengthy drawn-out one? I've made

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-21 Thread mscwd01
Great! Thanks for attempting to fix this so quickly. On Oct 21, 10:32 pm, Don Schwarz schwa...@google.com wrote: This is a temporary workaround only.  We should have this fixed in a few hours. On Thu, Oct 21, 2010 at 4:29 PM, mscwd01 mscw...@gmail.com wrote: Thanks for the update

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-22 Thread mscwd01
Thanks for the update and thanks again for the quick fix! On Oct 22, 4:02 pm, Don Schwarz schwa...@google.com wrote: The fix for this has now been rolled out to all applications. On Thu, Oct 21, 2010 at 4:40 PM, mscwd01 mscw...@gmail.com wrote: Great! Thanks for attempting to fix this so

[appengine-java] Setting up Warmup Requests

2010-12-06 Thread mscwd01
Hey I'm not sure if it's just me but I really cannot make sense of the documentation explaining how to set up warm up requests. http://code.google.com/appengine/docs/java/config/appconfig.html#Warming_Requests It states Warming requests are enabled by default for all Java applications. and then

[appengine-java] Re: Setting up Warmup Requests

2010-12-06 Thread mscwd01
loading and hotspot compilation early. Does that clear things up? -- Don [1] Some Java applications (e.g. JRuby apps) are configured with an app.yaml file instead. On Mon, Dec 6, 2010 at 9:22 AM, mscwd01 mscw...@gmail.com wrote: Hey I'm not sure if it's just me but I really cannot

[appengine-java] Re: Setting up Warmup Requests

2010-12-06 Thread mscwd01
Oh I just realised, the docs are wrong it's not: warming-requests-enabledtrue/warming-requests-enabled but in fact: warmup-requests-enabledtrue/warmup-requests-enabled Just in case that catches others out. On Dec 6, 4:01 pm, mscwd01 mscw...@gmail.com wrote: That clears things up nicely. I'll

[appengine-java] Re: Setting up Warmup Requests

2010-12-06 Thread mscwd01
Even better, thanks On Dec 6, 4:12 pm, Don Schwarz schwa...@google.com wrote: Ah, thanks.  We'll get that fixed.  However, true is the default so you can just leave this out entirely. On Mon, Dec 6, 2010 at 10:11 AM, mscwd01 mscw...@gmail.com wrote: Oh I just realised, the docs

[appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread mscwd01
This still doesn't solve the issue for me, mapping a servlet url pattern to a jsp file always fails... On Dec 6, 1:33 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Thanks guys, moving AppEngine (and GWT) to the top in Order and Export really solved this. Thanks a lot :) On Sun,

[appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread mscwd01
Where should it be? I cannot see it listed in my libraries. On Dec 6, 5:03 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: seems like repackaged-appengine-jasper-6.0.29.jar is not where it is supposed to be...? On Mon, Dec 6, 2010 at 5:58 PM, mscwd01 mscw...@gmail.com wrote

[appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread mscwd01
Library. Project - Properties - Java Build Path - Libraries On Mon, Dec 6, 2010 at 6:28 PM, mscwd01 mscw...@gmail.com wrote: Where should it be? I cannot see it listed in my libraries. On Dec 6, 5:03 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: seems like repackaged

[appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread mscwd01
I'm not sure I understand. It worked fine before I downloaded the new 1.4 SDK. On Dec 6, 5:54 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Could it be it is only a missing import declaration in the *.java result of your *.JSP? On Mon, Dec 6, 2010 at 6:46 PM, mscwd01 mscw

[appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread mscwd01
I'm running: Eclipse Java EE IDE for Web Developers. Build id: 20100218-1602 With V1.4 of the App Engine SDK and cannot get servlets mapping to jsp files, i.e. servlet servlet-nameabout/servlet-name jsp-file/about.jsp/jsp-file /servlet servlet-mapping servlet-nameabout/servlet-name

[appengine-java] Help me understand adding objects to existing entity groups

2011-03-07 Thread mscwd01
Pardon my ignorance, I have read the docs over and over and this still alludes me. I have two objects, lets call them User and Skill. When a person signs up to my site they are saved as a User. A user may have multiple skills, these are stored as a list within the User object, e.g. @Persistent

[appengine-java] Resize image to exact size using ImagesService

2011-04-03 Thread mscwd01
Hi Is there a way to resize an image to an exact size? I am currently using this: ImagesServiceFactory.makeResize(width, height); However, this scales the image until it reaches either the height or width value to ensure the aspect ratio is maintained. This is not what I want, I would like to

[appengine-java] Re: Resize image to exact size using ImagesService

2011-04-05 Thread mscwd01
No one? I guess I'll have to resize it myself then. I'm surprised the Image Service cant do this. On Apr 3, 7:10 pm, mscwd01 mscw...@gmail.com wrote: Hi Is there a way to resize an image to an exact size? I am currently using this: ImagesServiceFactory.makeResize(width, height); However

[appengine-java] Backup restore of my app - Is this really a joke or am I missing something?

2011-04-25 Thread mscwd01
Hey Okay, I have a simple request - I want to backup all of my apps data on my local machine so that in the event of my data becoming corrupt or lost I can do a restore. So I search backup/restore on gae and only really find the bulk loader as a solution. The trouble is it really isn't a

[appengine-java] Re: Backup restore of my app - Is this really a joke or am I missing something?

2011-04-26 Thread mscwd01
expect for a beta and free service? - Reply message - From: mscwd01 mscw...@gmail.com Date: Mon, Apr 25, 2011 6:44 pm Subject: [appengine-java] Backup restore of my app - Is this really a joke or am I missing something? To: Google App Engine for Java google-appengine-java

[appengine-java] Re: Backup restore of my app - Is this really a joke or am I missing something?

2011-04-26 Thread mscwd01
contain stale data. Omitting not-yet replicated data from a backup is not terrible nor unexpected. Perhaps you would like a 'checkpoint' feature? Suggest it in a ticket... On Tue, Apr 26, 2011 at 12:44 AM, mscwd01 mscw...@gmail.com wrote: Hey Okay, I have a simple request - I want

[appengine-java] Re: Backup restore of my app - Is this really a joke or am I missing something?

2011-04-26 Thread mscwd01
Yeah, I'm aware this exists, I'm also aware of the date it was raised: Reported by tran.the...@gmail.com, Oct 8, 2008 It's obvious the GAE team listen to important issues! On Apr 26, 11:38 am, Francois Masurel f.masu...@gmail.com wrote: You might be interested in this issue :

[appengine-java] How to make an unindexed property, indexed

2011-05-07 Thread mscwd01
Hey I want to make an unindexed property, indexed. I only have a few objects in the datastore but would prefer not to wipe it. Is there an easy way to recreate an index on the unindexed property? Thanks -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] Use Array as a query filter - possible?

2011-05-08 Thread mscwd01
Hey I have an entity with an Int Array and I would like to perform a query on the contents of the Array. For example, I would like to return entities which have a certain number within the array, I.e. Select * From MyObject Where numberArray contains 2 Is this possible in any way, shape or

[appengine-java] Re: Use Array as a query filter - possible?

2011-05-09 Thread mscwd01
( Arrays.asList(key, e1.getKey(), e2.getKey()) ); On May 8, 5:14 pm, mscwd01 mscw...@gmail.com wrote: Hey I have an entity with an Int Array and I would like to perform a query on the contents of the Array. For example, I would like to return entities which have a certain number

[appengine-java] Concurrent modification results in Entity being deleted

2011-05-12 Thread mscwd01
Hey I have an Entity which contains a ListEntity property that stores child entities. I have found a bug in my app where during concurrent modification of child entities all of the children in the parent entities list will be deleted. Firstly, why does this happen? Surely it'd be better to throw

[appengine-java] How To: Persist an entity, if and only if, another successfully persists

2011-05-14 Thread mscwd01
Hey I have two entities I update and which to persist. These are in two different entity groups so I cannot update and persist them within a Transaction. I am using JDO pm.makePersistentAll and must ensure each entity only saves to the datastore if both can be written. What's the best way to do

[appengine-java] HashMap within an Embedded Class

2011-05-24 Thread mscwd01
Hey Are you able to store a HashMap within an embedded class? I have a Class which implements Serializable and annotate the HashMap like this: @Persistent(serialized = true, defaultFetchGroup=true) private MapString, Integer myMap; However, I always get this error thrown: myMap:

[appengine-java] Re: HashMap within an Embedded Class

2011-05-24 Thread mscwd01
The issue I have though is HasMap's are supported if serialized=true is set. What I want to determine is why cant I use a HashMap within an embedded class? Thanks On May 24, 2:36 pm, Brandon Donnelson branflake2...@gmail.com wrote: Here are the supported property

[appengine-java] JDO Query ordering issue

2011-05-25 Thread mscwd01
Hey I have a JDO query which filters on two properties of a Person entity, lets call them age and height. I wish to order the results by the Persons score. However, due to the restrictions App Engine imposes I firstly have to order by age or height. So I currently have query.setOrdering(age

[appengine-java] Re: JDO Query ordering issue

2011-05-26 Thread mscwd01
The restriction I am referring to is mentioned here: http://code.google.com/appengine/docs/java/datastore/jdo/queries.html Scroll down to Query Sort Orders where it says: Due to the way the App Engine datastore executes queries, if a query specifies inequality filters on a property and sort

[appengine-java] Problem deleting an entity which has a dependent Set Entity

2011-06-05 Thread mscwd01
Hey, I have a parent entity which has a Set of child entities, as follows: class Parent { @Persistent @Element(dependent = true) private SetChild children; } When I delete the Parent entity I get the following exception: javax.jdo.JDOUserException: Cannot read fields from a deleted object

[appengine-java] Re: Problem deleting an entity which has a dependent Set Entity

2011-06-06 Thread mscwd01
delete each entity in the set in a loop by yourself before deleting the entity which the set is part of ? regards didier On Jun 6, 1:48 am, mscwd01 mscw...@gmail.com wrote: Hey, I have a parent entity which has a Set of child entities, as follows: class Parent { @Persistent

[appengine-java] Re: Problem deleting an entity which has a dependent Set Entity

2011-06-06 Thread mscwd01
:12 am, mscwd01 mscw...@gmail.com wrote: Thanks for the replies. @Didier - I have considered this, and I guess I will have to manually delete each entity if I cant find a more elegant solution, however going by what the documentation says it should just work. I'd like to find out why

[appengine-java] Is App Engine having problems? Cant load specific kind of Entity

2011-06-22 Thread mscwd01
Hey I just noticed my app stopped working correctly so I opened the logs and went back as far as I could (about an hour) and I noticed my app wasn't able to load a specific kind of entity. Going by my current CPU usage it seems like the issue has been ongoing for several hours. Whilst trying to

[appengine-java] Re: Is App Engine having problems? Cant load specific kind of Entity

2011-06-22 Thread mscwd01
only when I get a spike in traffic? On Jun 22, 10:52 pm, mscwd01 mscw...@gmail.com wrote: Hey I just noticed my app stopped working correctly so I opened the logs and went back as far as I could (about an hour) and I noticed my app wasn't able to load a specific kind of entity. Going by my

[appengine-java] Re: Is App Engine having problems? Cant load specific kind of Entity

2011-06-23 Thread mscwd01
in every request, hence the contentions as you trafic raises. regards ddoer On Jun 22, 11:59 pm, mscwd01 mscw...@gmail.com wrote: Okay I just got a single log entry pop up that may offer some insight to the problem. It reads: Too much contention on these datastore entities. please

[appengine-java] Re: Is App Engine having problems? Cant load specific kind of Entity

2011-06-24 Thread mscwd01
PM, mscwd01 mscw...@gmail.com wrote: Yes each time a user makes a request to the app, their user entity is loaded and their request count incremented, so the User entity is fetched, updated and put very frequently. Surely though the datastore should be able to handle this, it's not like

[appengine-java] How to ensure two entities are updated WITHOUT using transactions?

2011-07-10 Thread mscwd01
Hey I'm using JDO and need to update two entities both of which reside in their own entity group. As I cannot use a transaction, I'd like to determine how others achieve this. It is imperative that both entities are updated or none at all. Thanks -- You received this message because you are

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-11 Thread mscwd01
the amount to be x before you add y). On Jul 10, 9:15 pm, Didier Durand durand.did...@gmail.com wrote: Hi, Have a look at this to understand the issues:http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine regards didier On Jul 10, 11:09 pm, mscwd01 mscw

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-12 Thread mscwd01
) {                 pm.close();             }         }     } } On Jul 11, 3:41 pm, mscwd01 mscw...@gmail.com wrote: The try/catch/finally method seems better than the convoluted method mentioned in the blog. One question though, what is the success flag you mentioned? I'm confused as to how I can

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-17 Thread mscwd01
, or the corresponding persistent instance for detached parameter instances :) http://download.oracle.com/docs/cd/E13222_01/wls/docs103/kodo/jdo-jav... On Jul 12, 7:20 am, mscwd01 mscw...@gmail.com wrote: One final question. In the afterCompletion method when the userAccount has the amount subtracted

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-18 Thread mscwd01
be getting myself into more problems by messing with them. Could someone kindly tell me if my fix is suitable and/or safe? Thanks On Jul 18, 10:02 am, mscwd01 mscw...@gmail.com wrote: Thanks for theupdate. It's a pity you cant check to see if the first transaction committed before it leaves

[appengine-java] ArrayIndexOutOfBoundsException when trying to persist an ArrayList of Objects which utilise inheritence

2011-08-07 Thread mscwd01
Hey, I have 3 classes: Person, Car and Model. Person has an ArrayList property defined: ListCar cars; Car is an abstract class which class Model extends, I.e. @PersistenceCapable @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class Car { @PrimaryKey

[appengine-java] Re: ArrayIndexOutOfBoundsException when trying to persist an ArrayList of Objects which utilise inheritence

2011-08-08 Thread mscwd01
{ } and keep Model @PersistenceCapable public class Model extends Car { ... } Rolf On 8 Aug., 01:35, mscwd01 mscw...@gmail.com wrote: Hey, I have 3 classes: Person, Car and Model. Person has an ArrayList property defined: ListCar cars; Car is an abstract class

[appengine-java] Re: ArrayIndexOutOfBoundsException when trying to persist an ArrayList of Objects which utilise inheritence

2011-08-08 Thread mscwd01
class Car { } and keep Model @PersistenceCapable public class Model extends Car { ... } Rolf On 8 Aug., 01:35, mscwd01 mscw...@gmail.com wrote: Hey, I have 3 classes: Person, Car and Model. Person has an ArrayList property defined: ListCar cars; Car

[appengine-java] Re: GAE domains not resolving

2011-08-31 Thread mscwd01
I've noticed the same thing with our domain. However, it seems like a localised issue as I cannot reach my app from home but can at work. Also using a proxy server located in the US loads the site fine (I'm in the UK). Any news on why this may be would be great. On Aug 31, 10:20 am, footy

[appengine-java] Re: GAE domains not resolving

2011-08-31 Thread mscwd01
URL On Aug 31, 10:57 am, mscwd01 mscw...@gmail.com wrote: I've noticed the same thing with our domain. However, it seems like a localised issue as I cannot reach my app from home but can at work. Also using a proxy server located in the US loads the site fine (I'm in the UK). Any

[appengine-java] JDO Batch PUT

2011-10-01 Thread mscwd01
Hey In an effort to reduce the number of datastore PUTs I am consuming I wish to use the memcache much more frequently. The idea being to store entities in the memcache for n minutes before writing all entities to the datastore and clearing the cache. I have two questions: Is there a way to

[appengine-java] Re: JDO Batch PUT

2011-10-01 Thread mscwd01
is modified while an iteration over the set is in progress the results of the iteration are undefined. My cache is updated very frequently so the map will be modified. So how do you prevent this from happening and persist each entity in the cache to the datastore? Thanks On Oct 1, 11:45 am, mscwd01 mscw

[appengine-java] Re: Howto return all values stored in memcache?

2011-10-03 Thread mscwd01
= cache.getIdentifiable(allKeys);   ListLong keys = i.getValue();   keys.add(id);   boolean put = cache.putIfUntouched(allKeys, i, keys);   if (!put) {        //response 409 for conflict due to concurrency so appengine will retry this later   } } On Mon, Oct 3, 2011 at 5:38 PM, mscwd01

[appengine-java] Re: Howto return all values stored in memcache?

2011-10-03 Thread mscwd01
Never mind, after realising you were using the low level MemcacheService all makes sense :) I shall probably try and use this strategy, thanks! On Oct 3, 10:29 pm, mscwd01 mscw...@gmail.com wrote: That's a shame, it's a real disadvantage not having that simple functionality. Thanks for your

[appengine-java] Re: Howto return all values stored in memcache?

2011-10-03 Thread mscwd01
, 2011 at 2:29 PM, mscwd01 mscw...@gmail.com wrote: That's a shame, it's a real disadvantage not having that simple functionality. Thanks for your example, although I found it a little difficult to understand it completely. Are you suggesting having an entry in the cache with a key string

[appengine-java] JDO and XG transactions - Performance

2011-10-15 Thread mscwd01
Hey, the docs state: There is currently no way to enable XG transactions for an individual JDO or JPA transaction. Instead you must enable XG transactions for the whole app. This is fine but I'm wondering if this effects performance of transactions? Most of the transactions I perform are on the

[appengine-java] Re: XG Transactions

2011-10-17 Thread mscwd01
Hey, To quote Max Ross: Due to a mix-up,the JDO/JPA jars that are included in the 1.5.5 SDK do *not *support XG Transactions. If you want to use XG Transactions with JDO or JPA in 1.5.5 you can download an updated jar from

[appengine-java] Backup Restore Data

2011-11-15 Thread mscwd01
Hey I'd like to make a backup of the data of my HR datastore app. I looked at using the remote API but it somewhat unhelpfully says: If your app uses the High Replication datastore and you attempt to download data, you'll see a high_replication_warning error in the Admin Console, and the

[appengine-java] Re: Backup Restore Data

2011-11-15 Thread mscwd01
...@jaggard.org.uk wrote: Why would it be a problem to be missing data at 14:59 in your 15:00 backup? Presumably if you have to restore at 18:23, you'll be far more concerned about the data missing between 15:00 and 18:23 than the data from 14:59 to 15:00? Mat. On 15 November 2011 15:31, mscwd01 mscw