[appengine-java] Re: How to delete data?

2009-09-20 Thread Gaurav
I agree. I often find myself changing my Class structure just to be able to run efficiently on Datastore. It's not like that I mind optimizing my code. It's just that in the past in the past 3 days I have spent only 10% time in writing the program logic and 90% in wondering how to read and write e

[appengine-java] Re: built in security features of GAE

2009-09-20 Thread George Simon
Thanks Jason. We are migrating our apps to GAE in 2-3 months, so our customers may ask some of the security measures. Though I know GAE is fully secured environment and google take security very seriously, I would like to know 1. Any firewall running? 2. Do you provide any safeguards to prevent t

[appengine-java] Re: Can't deploy my first guestbook application

2009-09-20 Thread yellowblood
Hey, just to let you know: the solution was to change the Java Runtime location in Esclipse (Preferences -> Java -> Installed JREs). You can see the full instructions here: http://code.google.com/p/googleappengine/issues/detail?id=1226 --~--~-~--~~~---~--~~ You rec

[appengine-java] How to run Testcases for DataStore

2009-09-20 Thread Gaurav Garg
Hi, I am a newbie to Google Datastore. I am trying to run a testcase in which i am counting the entities. Kindly guide me through as it is giving the following error: com.google.apphosting.api.ApiProxy$UnknownException: An error occurred for the API request datastore_v3.Count(). at co

[appengine-java] Re: Model to Optimize Queries

2009-09-20 Thread Sam Walker
Yea, I dont need to query on it, that's why I thought maybe storing in a HashMap would save me an extra query. Lets not go that way for now and assume I make a new relationship: I have another question, I was wondering if I can use TaskQueue to achieve some sort of transactions across entities and

[appengine-java] Re: How to delete data?

2009-09-20 Thread ??
Also, let's say I want to set all fields named "toilet" to value "flush" in entities with existing field value of "full of it". ? are you kidding me ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engin

[appengine-java] Re: Storing GWT-RPC objects to BigTable

2009-09-20 Thread Romain
As long as your Entities are in the client.* folder they can be seen as JDO objects as well as in GWT as POJOs On Sep 20, 5:07 pm, Max wrote: > It is possible to use same class with GWT-RPC and and in app engine > (JDO bigtable)? > > or I have to define 2 similar classes. One for GWT and other f

[appengine-java] Storing GWT-RPC objects to BigTable

2009-09-20 Thread Max
It is possible to use same class with GWT-RPC and and in app engine (JDO bigtable)? or I have to define 2 similar classes. One for GWT and other for JDO and write code to that will copy data from one object to another? Is there some way to automate it? Thanks, Max --~--~-~--~~--

[appengine-java] Re: Basic auth with GAE

2009-09-20 Thread Clay Lenhart
One option is to use this base64 library instead to implement basic auth in GAE. http://iharder.net/current/java/base64/ On Sep 19, 3:43 pm, Vik wrote: > Hie > I have requirement to post a request with BASIC AUTH but today when i tried > to use BASE64Decoder it said GAE does not support this.

[appengine-java] Re: grails app-engine: DataNucleus: An error occured for ClassEnhancer "ASM"

2009-09-20 Thread naeger
OK. I found the problem. I once used HTTP-Builder which comes with a asm-2.2.3.jar. Grails does not clear its stage directory. So this lib remained in the stage directory even after I removed http-builder and conflicted with asm 3 that is required by DataNucleus. Manually deleting the stage direct

[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] grails app-engine: DataNucleus: An error occured for ClassEnhancer "ASM"

2009-09-20 Thread naeger
Hi all, I tried to follow the the instructions and screencast on http://grails.org/plugin/app-engine. However, I seem to have a problem with the DataNucleus Enhancer that I cannot resolve: An error occured for ClassEnhancer "ASM" when trying to call the method "org.datanucleus.enhancer.asm.ASMCl

[appengine-java] Re: How to delete data?

2009-09-20 Thread ??
Thanks for your reply. Yes I can do that. I have been able to delete one or two things here and there with both queries and by manually clicking on Delete in the admin data viewer. However, deleting 10 entities per second!? I am at a loss to comprehend how this is scalable. I have 70,000 entiti

[appengine-java] can xmpp api send and receive messages using gmail ids?

2009-09-20 Thread Prashant
Hi, is it possible to use xmpp api to send and receive messages using gmail ids ? 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 goo

[appengine-java] Spring sessionForm not working

2009-09-20 Thread Jeune
My Spring sessionForm in Google Appengine works in the development environment but not when I deploy it. I have sessions-enabled set to true in my appengine-web.xml. Am I missing something here? I had to override the initBinder in my Controller for it to work in appengine because Spring tries to

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

2009-09-20 Thread Philippe Marschall
On Sep 19, 11:32 pm, Max Ross wrote: > The datastore supports a Double type and we have no plans to support > anything more precise. BigDecimal is the only sane choice for anything that includes monetary calculations. Cheers Philippe --~--~-~--~~~---~--~~ You r

[appengine-java] Re: JDO : How to make an unowned reference to an entity if we don't know its key yet ?

2009-09-20 Thread Ian Marshall
Hello Mickaël, I share your pain. I have a similar data structure for a portion of my persistent store, but it's for an administrative task and I persist just one new entity at a time. You can set the key yourself in the app for each persistent entity when you construct it and before persisting

[appengine-java] Re: How to use Unencoded String as primarykey with JDO

2009-09-20 Thread Jaap
On Aug 17, 1:09 am, Jaap wrote: > Hi, > > According > tohttp://code.google.com/intl/de/appengine/docs/java/datastore/creating... > > it is possible to set the primay keys yourself to a unique string. > When I use the code below this email however the hosted server gives > the following error >

[appengine-java] Re: JDO : How to make an unowned reference to an entity if we don't know its key yet ?

2009-09-20 Thread mlenormand
Unowned relationships are completely independent from owned relationships (correct me if I'm wrong !). Suppose you have 3 entities A, B and C of the same kind "Folder" and all of them have the same entity group parent P (which is of kind "Folders"). So all these entities belong to the same entity

[appengine-java] Re: How to delete data?

2009-09-20 Thread Gaurav
Try this : Query query = pm.newQuery(YourThing.class); query.setRange(0,300); List< YourThing > results = (List< YourThing >) query.execute(); Iterator iter = results.iterator(); while(iter.hasNext()){ YourThing p = (YourThing)iter.next();

[appengine-java] Page taking too long to process. Need advice.

2009-09-20 Thread Gaurav
The JSP page I created is using too much of CPU and showing high latency. The page lists all the entities of type Person.class. (At present there are 43 entities in the datastore.) (Person is a root entity) Following is the method to return the list of all Person objects in the datastore :- pub

[appengine-java] Re: RPC call and variables

2009-09-20 Thread Sahil Mahajan
Thanks Jason I used Transactions and now I don't see that message in my info log. Regards Sahil On Sep 18, 11:49 pm, "Jason (Google)" wrote: > Hi Sahil. It sounds like you can get rid of this particular log message by > performing all your writes inside of a transaction. If you don't need or >