[appengine-java] Re: Snapshots...

2011-09-27 Thread Didier Durand
Hi, I do personally scan each entity type via an ad hoc request and store each instance as entry in an xml file stored in the blobstore. You can then externalize it via download from another machine. Another possible way is to store you data on Amazon S3: you can then also store them 1 by 1 if

[appengine-java] Re: How to detect the event of instantiating another instance of app

2011-09-13 Thread Didier Durand
Hi, You could try (didn't do it myself) the load-on-startup param with a value 0 in the servlet definition of a given servlet within web.xml This starts the servlet when the application is deployed in starting container. That should allow you to do what you want regards didier On Sep 13,

[appengine-java] Re: Is memcached also lost when all instances are pulled off?

2011-09-09 Thread Didier Durand
Hi, The survival of content of memcache is not garanteed by the specs of GAE: it can disappear at any time. Those specs say: However, when considering whether to store a value solely in the memcache and not backed by other persistent storage, be sure that your application behaves acceptably when

[appengine-java] Re: Delete Lots Of Data

2011-09-09 Thread Didier Durand
If you don't want to introduce MapReduce solely for this purpose, you can write a queued task that loops through the data to delete it and that recreates a new instance of itself just before time limit (10 min) to continue the deletion. regards didier On Sep 9, 8:37 pm, Marcelo Liberato

[appengine-java] Re: How to create excel file in servlet for google app engine application?

2011-09-05 Thread Didier Durand
Hi, Another way to do it is to use the spreadsheet api of Google Docs and send your users there (they can retrieve the web spreadsheet as a file if needed) See http://code.google.com/apis/spreadsheets/ regards didier On Sep 5, 7:57 pm, Marcelo Liberato mliber...@gmail.com wrote: You should

[appengine-java] Re: Advice for looping through 100K records and updating multiple entities on each iteration

2011-08-25 Thread Didier Durand
Hi, Yes, for such a task you will have to go via the Task Queue: an interactive task of this size would for sure reach the allowed limits. The way it works is : read an entity, do the updates, check the duration since start, if far from limit process another entity, if close to limit, reschedule

[appengine-java] Re: Correlative number

2011-07-23 Thread Didier Durand
Hi, have a look at this: http://code.google.com/appengine/articles/sharding_counters.html regards didier On Jul 22, 9:45 pm, katy ktu...@gmail.com wrote: Im trying to get a kind of auto increment number for an entity. I all ready create a counter class to take a track of the quantity of

[appengine-java] Re: Reading static XML file on App Engine

2011-07-19 Thread Didier Durand
Hi, Did you properly set up auths for access to static content See http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files regards didier On Jul 18, 9:37 pm, bb bayc...@gmail.com wrote: Hello, I have a static XML file in my App Engine app that

[appengine-java] Re: Reading static XML file on App Engine

2011-07-19 Thread Didier Durand
On Jul 19, 10:53 am, Simon Knott knott.si...@gmail.com wrote: Oops, read that link without any coffee!  It obviously states that you *can*use the FileInputStream class - have you tried dropping the war bit off your filepath? -- You received this message because you are subscribed to the

[appengine-java] Re: Help...How to convert png to jpg? Every time got black/orange background...

2011-07-19 Thread Didier Durand
Hi, Then, you should open an issue to get it fixed regards didier On Jul 19, 11:24 pm, Zhenyu wingzer...@gmail.com wrote: Hi Didier, It is PNG. You can change any other PNG images to test. GAE can NOT handle transparent when convert PNG to JPEG. Regards, On Jul 18, 6:34 pm, Didier

[appengine-java] Re: does Google+ use GAE ?

2011-07-18 Thread Didier Durand
Hi, J. Smarr, tech lead for G+, says: Our backends are built mostly on top of BigTable and Colossus/GFS in this short description of Google+ insfrastructure: http://www.quora.com/Can-someone-provide-some-information-about-Google+-infrastructure-architecture. regards didier On Jul 19, 6:57 

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

2011-07-10 Thread Didier Durand
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...@gmail.com wrote: Hey I'm using JDO and need to update two entities both of which reside in their own entity group. As I

[appengine-java] Re: JDO: 1-N relationships

2011-06-24 Thread Didier Durand
Hi, If you look at the recent recommandations of Google, the 1st best practice is probably to move away from JDO and go to either low-level API or some 3rd party package like Objectify (my choice) to give you good long-term perspectives. regards didier On Jun 24, 9:47 am, Martin Newstead

[appengine-java] Re: GAE heartbeat, notifications, parsing dashboard

2011-06-23 Thread Didier Durand
Hi Toby, The (new) capabilities API should help: http://code.google.com/appengine/docs/java/capabilities/overview.html regards didier On Jun 23, 8:39 am, Toby toby.ro...@gmail.com wrote: Hi, I do frequently experience some problems with my app. Errors going up or an unusual traffic load or

[appengine-java] Re: GAE heartbeat, notifications, parsing dashboard

2011-06-23 Thread Didier Durand
on the dashboard (load, quota, requests with the most errors etc.). Cheers, Toby On Jun 23, 12:15 pm, Didier Durand durand.did...@gmail.com wrote: Hi Toby, The (new) capabilities API should help:http://code.google.com/appengine/docs/java/capabilities/overview.html regards didier On Jun 23

[appengine-java] Re: How to download indexes from the data store ?

2011-06-23 Thread Didier Durand
Hi, Why would you do such a thing: if you don't want the indexes anymore, you deleted them. When you need them again in the future, you just rebuild them: the entities present in your datastore will redefine the new index entries. Indexes are anyway not accessible as such but if they were, it

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

2011-06-22 Thread Didier Durand
Hi, Don't you have some datastore entities that are used in every request or so? Let's say a global counter of requests or sthg equivalent. That entity would be updated in every request, hence the contentions as you trafic raises. regards ddoer On Jun 22, 11:59 pm, mscwd01 mscw...@gmail.com

[appengine-java] Re: null parent in bidirectional JPA OneToMany relation

2011-06-20 Thread Didier Durand
Hi, If switching storing api is your way to go, also give a try to Objectify. regards didier On Jun 21, 3:24 am, J.Ganesan j.gane...@datastoregwt.com wrote: DataStoreGwt provides an alternative to JPA itself. Please see whether it suits your project. J.Ganesanwww.DataStoreGwt.com On Jun

[appengine-java] Re: two accounts

2011-06-17 Thread Didier Durand
Hi, you have a couple of things to do: a) load your code in the new domain b) transfer data from the datastore of appspot.com to datastore of your new domaine c) set a redirect from pages in appspot.com to your new domain. When you see no more trafic on appspot.com acccount, you can then close

[appengine-java] Re: Newbie question: how to create the memcache across several instances

2011-06-15 Thread Didier Durand
Hi, Memcache on GAE is based on JSR-107: see http://jcp.org/en/jsr/detail?id=107 The purpose of jsr 107 is Specifies API and semantics for temporary, in memory caching of Java objects, including object creation, shared access, spooling, invalidation, and consistency across JVMs So, memcache is

[appengine-java] Re: How to design an in-memory cache?

2011-06-14 Thread Didier Durand
Hi, Why don't you just update() with the appropriate setPolicy() or delete your items in the memcache when no longer needed ? See and http://code.google.com/appengine/docs/java/memcache/usingjcache.html#Configuring_the_Set_Policy and

[appengine-java] Re: Appengine whitelist: can all Interfaces be used?

2011-06-13 Thread Didier Durand
Hi, Shape is not in the white list: all the classes part of it are detailed here http://code.google.com/appengine/docs/java/jrewhitelist.html regards didier On Jun 13, 4:27 am, Dieter Krachtus dieter.krach...@googlemail.com wrote: Hi, I am relatively new to Java appengine but I can imagine

[appengine-java] Re: Problem. How should i change the parent object of the child object ?

2011-06-13 Thread Didier Durand
Hi, As the message says: you can't touch objects in more than 1 group in a single transaction. If it suits your needs you can put all the children of a Parent in a single entity group defined by the Parent instance: see

[appengine-java] Re: How do I migrate old data (change schema) in a deployed Java app?

2011-06-10 Thread Didier Durand
The data viewer is accessible from the management console in your account: you can see what's in your datastore in all details. regards didier On Jun 10, 5:12 am, Nathan Stiles stiles.nat...@gmail.com wrote: What is this DataViewer?  How do I use this?  Eclipse? -- You received this message

[appengine-java] Re: How to completely delete the code for an application?

2011-06-05 Thread Didier Durand
Hi, Check in the version management of the console how many versions of your app still known by gae. More than 1 ? regards didier On Jun 5, 10:07 am, Desarrollo VDK Guatemala devd...@gmail.com wrote: Yep, I'm using a totally new version -- You received this message because you are

[appengine-java] Re: newbie question: redirect users (GWT 2.3.0)

2011-06-05 Thread Didier Durand
Hi, yes, that should do the job. regards didier On Jun 3, 8:13 am, meiaestro jmalbre...@gmx.de wrote: Hi! Thanks a lot for the helpful hints! Now let me see if I got it right. In my case I only have the entry point starting page.  Within this class I have three methods building three

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

2011-06-05 Thread Didier Durand
Hi, As a workaround, why don't you 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

[appengine-java] Re: How to add task to pushQueue and when task will execute

2011-06-02 Thread Didier Durand
Hi, Did you specifically read http://code.google.com/appengine/docs/java/tools/localunittesting.html#Writing_Task_Queue_Tests for local tests Via the provided sample, you can access the scheduling params of your task regards didier On Jun 2, 2:04 pm, ramesh chiluverirame...@gmail.com wrote:

[appengine-java] Re: RuntimeException: Couldn't find MR with job ID: ... ??

2011-06-02 Thread Didier Durand
Hi, Did you check the source code at http://appengine-mapreduce.googlecode.com/svn/trunk/java/src/com/google/appengine/tools/mapreduce/AppEngineJobContext.java the comments at the point where exception is thron may help you understand why you get it regards didier On Jun 2, 7:00 pm, Santosh

[appengine-java] Re: newbie question: redirect users (GWT 2.3.0)

2011-06-02 Thread Didier Durand
Hi, the beauty (or the horror...) of Java apps with GWT is that you can stay alway in the same page: so, you don't need multiple urls with redirects between them by any mean. You can just programmatically decide in the java code of your unique servlet which content you decide to put on the page.

[appengine-java] Re: Checking if I understand transactions correctly

2011-05-31 Thread Didier Durand
Hi, entity group is not useful at rollback but rather limits you to which updates you can do: all the entities you touch in a single transaction must be in the same entity group. So, designing your groups properly is a key design issue in GAE to avoid unnecessary complexity when you later need

[appengine-java] Re: Using URLFetchService / URL

2011-05-20 Thread Didier Durand
Hi, It seems that the character at index 58 in your request is wrong Did you check this char in your url ? (I assume that you do a http get and not a http post) What is this char ? regards didier On May 20, 12:24 am, yousefgh fe...@yousefgh.com wrote: Could it be the length? because it is

[appengine-java] Re: any way to find all the namespaces used ?

2011-05-16 Thread Didier Durand
Hi, to my knowledge, app engine doesn't store used namespaces, it just uses the corresponding string as prefix to separate data structure. If you want to remember all used namespaces, it's something that you have to handle by yourself: you create your system namespace then define an entity for

[appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Didier Durand
HI, From the description of your needs, it seems that the Java inheritance mechanism is all what you need. Yours servlets should all inherit from HomeServlet, in their doGet() method, they will just call super.doGet() at the beginning and then execute their own thing. regards didier On May

[appengine-java] Re: stderr: SystemId Unknown; Line #57; Column #31; Failed calling setMethod method

2011-05-14 Thread Didier Durand
Hi, Look at http://groups.google.com/group/google-appengine-java/browse_thread/thread/f6f40411a076aa30/1b0f2adb19ce0997?lnk=gstq=Failed+calling+setMethod+method+#1b0f2adb19ce0997 At the very bottom, you may have the answer to you question regards didier On May 14, 11:25 am, Daniel

[appengine-java] Re: Help with local testing of Task Queue

2011-05-13 Thread Didier Durand
Hi, Did you follow the guidelines of http://code.google.com/appengine/docs/java/tools/localunittesting.html ? regards didier On Apr 25, 11:13 pm, Amar Z amarzumkhaw...@gmail.com wrote: Hi, I am developing a new application and need help utilizing task queues. Here is the problem: when I

[appengine-java] Re: Can remote api be used inside a GAE java app.

2011-05-12 Thread Didier Durand
Hi, Don't know if what you do is possible but why don't you just obtain the data that you need from the other application via simple requests to servlets delivering the needed data. By using Java standard object serialization, you can achieve what you need whatever the object class via a unique

[appengine-java] Re: imagesService.applyTransform cannot transform some PNG ? Why ?

2011-05-12 Thread Didier Durand
Hi, Do you have the issue on your dev machine or on productive infrastructure: I remember having issues with PNGs on my dev machine but that would work ok on live machines regards didier On May 12, 8:27 pm, Teng Shiu Huang small...@gmail.com wrote: I am evaluating

[appengine-java] Re: App engine SDK jars in WEB-INF/lib. Why???

2011-05-11 Thread Didier Durand
Hi, 1 of the reasons is that all applications don't run all at the same version on the gae productive infrastructure. So, google would have to know which one you are using in order to put it for you in your war when you upload it. It's probably simpler to handle if the developper puts the jars at

[appengine-java] Re: Ancestor query

2011-05-10 Thread Didier Durand
Hi, this question should be posted in the Objectify group and not in this one. It works in A for B because A is a parent of B so you can search with for B instances having an A instance as ancestor. For the others, it doesn't work: an A is not ancestor of a C so it can't work. It could work for

[appengine-java] Re: bug with cron job?

2011-05-09 Thread Didier Durand
Hi, You syntax seems correct: so you're right, probably a bug. But, at least, you may check the date in your job and if not 1st of month then you can just exit. So, it still get scheduled every day but at least works only on the 1st. regards didier On May 9, 7:52 pm, Vik vik@gmail.com

[appengine-java] Re: URGENT--Exception in running first app

2011-05-08 Thread Didier Durand
Hi, I checked: newSetFromMap() method appears in jre 6: see the javadoc of jre 5.0 where it is not present at http://cupi2.uniandes.edu.co/web/javadoc/j2se/1.5.0/docs/api/java/util/Collections.html So, you must upgrade your jre to v6 for your code to work. regards didier On May 7, 9:06 pm,

[appengine-java] Re: xml parsing on GAE servers acts weird

2011-05-06 Thread Didier Durand
Hi, You have a ClassNotFoundException on a Xerces class according to your dump: so you are not using the basic xml classes to parse your xml but also xerces. You should add the xerces jar in you lib directory regards didier On May 5, 6:16 pm, Richie richiejr...@gmail.com wrote: Hey guys, I

[appengine-java] Re: Can an app request external webpages?

2011-05-05 Thread Didier Durand
Hi, To get the page, do you use the specific URL Fetch service that is part of the gae sdk ? See http://code.google.com/appengine/docs/java/urlfetch/overview.html If not, may be the source of your issue. regards didier On May 5, 1:22 pm, Luke Waldron therabidw...@gmail.com wrote: I have

[appengine-java] Re: NoSuchMethodError totalMemory()

2011-05-03 Thread Didier Durand
Hi, An answer from google is needed as Runtime still is in the whitelist: http://code.google.com/appengine/docs/java/jrewhitelist.html So, it should provide all the methods of the regular jre class. regards didier On May 4, 4:40 am, emurmur emur...@conceptuamath.com wrote: My app started

[appengine-java] Re: A question about google service dashboard

2011-05-02 Thread Didier Durand
Hi, It may be only a partial response to your needs but at least you can use AppStats (http://code.google.com/appengine/docs/java/tools/ appstats.html) to get a programmatic view of the health of your application regards didier On Apr 30, 8:02 am, uronn oukin...@gmail.com wrote:

[appengine-java] Re: Are GAE servers multicore ?

2011-04-30 Thread Didier Durand
Hi, You can't multithead directly in GAE: it's forbidden. You rather gain parallelism via queued tasks. You don't really care in the servers are multi-core or not: gae starts more jvms automatically when needed. regards didier On Apr 30, 6:14 pm, hadf hadrien.for...@gmail.com wrote: Hello,

[appengine-java] Re: Some details on how GAE actually works

2011-04-30 Thread Didier Durand
Hi Luca, Would also advise you to read the book Programming Google App Engine by Dan Sanderson (Google engineer) full of technical stuff that you will not find elsewhere on the net. regards didier On May 1, 12:26 am, Brandon Donnelson branflake2...@gmail.com wrote:

[appengine-java] Re: Best Practice for Java Datastore API

2011-04-22 Thread Didier Durand
Hi Andy, My suggestion - if you're reluctant to use a 3rd party package - is at least to read their source code (they are open source) to see how they proceed to achieve what you want, which is also what they do. I read most of Objectify: not that long - approx 10K lines. Definitely a must read

[appengine-java] Re: java.lang.IllegalArgumentException: query not found

2011-04-21 Thread Didier Durand
Hi, You should also submit this in the Objectify group regards didier On Apr 21, 5:30 pm, Simon Knott knott.si...@gmail.com wrote: Hi, What version of the SDK are you using?  The increase to the time allocated for backgrounds tasks only took place in v1.4 onwards.  Also, there was a bug

[appengine-java] Re: How to make persistent fields from parent class

2011-04-21 Thread Didier Durand
Hi, Did you try to bring the jar containing those annotations over to Android and then make it an Android dex file, If android sdk accepts to dex it, that may be good enough Let us know if this works else I may have another less direct solution regards didier On Apr 21, 4:39 pm, cghersi

[appengine-java] Re: Best Practice for Java Datastore API

2011-04-21 Thread Didier Durand
Hi Andy, Why don't you try a 3rd party package with an intermediate level of abstraction: they enforce types. See Google recommandations at http://code.google.com/appengine/docs/java/datastore/overview.html#Introducing_the_Java_Datastore I personally use Objectify. regards didier On Apr 22,

[appengine-java] Re: can I use Google maps in my Google Appengine java Application

2011-04-19 Thread Didier Durand
Hi Ram, The web is full of good tutorials for the subjects that you want to learn: use google to find some. Please, understand that this group is not a place for all what concerns Jav dev: far too broad... regards didier On Apr 19, 7:56 am, Ram ram...@gmail.com wrote: Please anybody reply...

[appengine-java] Re: HTTP Post not working

2011-04-19 Thread Didier Durand
Hi, Read this part of app engine doc: http://code.google.com/appengine/docs/java/urlfetch/overview.html You will see that there are some restrictions in the URL service: port numbers, etc... Maybe you will into one of them with c2dm regards didier On Apr 15, 1:37 pm, Thomas Riley

[appengine-java] Re: Cheapest way to update a versioned object?

2011-04-19 Thread Didier Durand
Hi, Be careful with the cron job: you may lose some of your updates if gae has some trouble between some updates and the cron job. There is no guarantee from Google on that point: see Under rare circumstances, values may also disappear from the cache prior to expiration for reasons other than

[appengine-java] Re: Data being stored in a weird way

2011-04-19 Thread Didier Durand
Hi, Are you using eclipse ? if yes check under File Properties Text File encoding that your file is UTF-8 encoding. I would guess not. So, change it to UTF-8 and your issue should get fixed. regards didier On Apr 19, 6:32 pm, Luca Matteis lmatt...@gmail.com wrote: I posted a question on

[appengine-java] Re: How to log user generated traffic per user

2011-04-18 Thread Didier Durand
Hi, You should have your own implementation of the class Servlet Then, you should derive all your own servlets from this child of Servlet So, when a call a made to your central server is made, this child of Servlet will be instantied and you can get which url was called, the input parameters,

[appengine-java] Re: can I use Google maps in my Google Appengine java Application

2011-04-18 Thread Didier Durand
Hi, yes, you can. If you use Google Webtoolkit, the simplest way is to use the Java api for GWT at http://code.google.com/p/gwt-google-apis/ else, you have to generate your html via java to respect the google maps api requirements: script line, etc. regards didier On Apr 18, 8:44 am, Ram

[appengine-java] Re: Mem cache

2011-04-14 Thread Didier Durand
Hi, If you don't use memcache, it means that you do your reads from datastore, so you incur the delay of accessing a remote datastore server and then the delay of its disk access time. Memcache is direct access memory so much faster! You see most of the benefits if you can use memcache for

[appengine-java] Re: How to model object with lots of small properties

2011-04-10 Thread Didier Durand
Hi, You should use an enum class for the properties (so that you can extend later on) and store them as proposed above in a Set regards didier On Apr 10, 8:29 am, Ravi Sharma ping2r...@gmail.com wrote: May be you can do womething like this class HouseProperty{ Key id; String Name;} in

[appengine-java] Re: How can I make the session to be held open as long as the user got its browser opened?

2011-04-10 Thread Didier Durand
Hi, You should clarify what you mean by an open session: do you mean the http one defined by the cookie, the security one after login, etc ? regards didier On Apr 10, 9:35 am, Max thebb...@gmail.com wrote: have you tried to use memcache or simply store session into datastore? -- You

[appengine-java] Re: Datastore - best way to insert/update a record

2011-04-08 Thread Didier Durand
Hi, I guess that you just have to - select how you access the Datastore (JDO/JPA or low-level API or 3rd party package like Objectify) - make an annotated entity Counter with the 2 fields above - code the algo as you say above - you may want to put this code in a task

[appengine-java] Re: Unable to delete entities

2011-04-07 Thread Didier Durand
Hi, You should try querying them all (so that you don't have to create an invalid query) via a Java program and then check the value of the property once the object is instantiated in order to issue a delete if the prop value is wrong. You may have to do this via chained queued tasks if your

[appengine-java] Re: Detecting orphaned blobs in the Blobstore

2011-04-07 Thread Didier Durand
Hi, You get the key of your blob via BlobKey blobKey = blobs.get(myFile) (see http://code.google.com/appengine/docs/java/blobstore/overview.html) So, I would personally store all the myFile ids that I distributed from the server side and in an asynchronous queue task would do to see if the get()

[appengine-java] Re: Sending/Receving data to/from my application

2011-04-05 Thread Didier Durand
Hi, You can simply post (http POST request) and get (http GET request) from your client which can then be a very simple batch java program. You do those http requests on the url of your servlet. That's the simples way I know. regards didier On Apr 5, 3:18 pm, jake189 binhmin...@gmail.com

[appengine-java] Re: Best practice for multithreaded access/update to entity

2011-04-03 Thread Didier Durand
Hi, Having a version (or even better a timestamp) for last update is also what I use to maintain integrity of my data. To manage it simply, a) I use a hierarchy of object all inheriting from a DsObject so that I to manage this version only in one place b) I use the @PrePersist annotation (from

[appengine-java] Re: Tips/Pitfalls for total newbies?

2011-04-01 Thread Didier Durand
Hi, Also think about Google Web Toolkit for the UI: you will remain so full-Java and you can do nice interface even if you are as bad as I am in graphics / ui design ;-) I agree with Simon: definitely forget JPA/JDO! (I went with Objectify) Also study carefully the datastore, especially entity

[appengine-java] Re: Tips/Pitfalls for total newbies?

2011-04-01 Thread Didier Durand
for your app! didier On Apr 1, 5:30 pm, Didier Durand durand.did...@gmail.com wrote: Hi, Also think about Google Web Toolkit for the UI: you will remain so full-Java and you can do nice interface even if you are as bad as I am in graphics / ui design ;-) I agree with Simon: definitely forget

[appengine-java] Re: Uploading New Data into App Engine Java App

2011-04-01 Thread Didier Durand
Hi, The simplest way is to write a servlet on GAE. When your own server is done with the calculation, it posts (http POST) the new data to this servlet who reads it and separate each line as a new entity in the datastore. The servlet can then do further processing (cleanup, updates, etc.) if

[appengine-java] Re: JPA/JDO vs low level API

2011-04-01 Thread Didier Durand
Hi, You should also consider 3rd party packages like Objectify who works at an intermediate level of abstraction. The low-level api forces you to handle everything by yourself: the Entity, its Properties, etc... In JPA, JDO: you work much higher in abstraction: you define a Java class as an

[appengine-java] Re: How do I run my Junit test suite on the server?

2011-03-31 Thread Didier Durand
Hi, Yes, you can run your tests on the GAE server itself and it's very useful to dig out the last errors that the run on the dev server didn't show. It saved me days. For that, you have to write you own Junit TesRunner as as servlet: you can start simply by using the TextRunner of Junit and

[appengine-java] Re: Are Java static initializers thread safe on GAE ?

2011-03-31 Thread Didier Durand
The consequence of what Simon says is that you have to be prepared to have a separate init for each jvm and this can cause issue if your application relies on the semantics of a single init (singleton, etc..) regards didier On Mar 31, 1:55 pm, Simon Knott knott.si...@gmail.com wrote: Static

[appengine-java] Re: Appengine mapper - Question

2011-03-28 Thread Didier Durand
Hi, I have successfully used ThreadLocal on GAE to define some variables specific to a given transaction represented by its thread. I wanted theses variables to be shared by various subservices in my transaction. So, it's very close to what you tried to achieve. Then, you should be ok using it.

[appengine-java] Re: Best GWT component library compatible with GAE ?

2011-03-28 Thread Didier Durand
Hi, Vaadin is also a possible good choice in addition to ext-gwt regards didier On Mar 28, 1:04 pm, Thierry Lejealle thierry.lejea...@gmail.com wrote: Hello, I find GWT standard components a bit dull. What would you recommand to extends GWT components and still remain compatible with App

[appengine-java] Re: Check Table Exists

2011-03-27 Thread Didier Durand
Hi, Check the metadata queries: exactly what you need http://code.google.com/appengine/docs/java/datastore/metadataqueries.html regards didier On Mar 28, 4:53 am, Arjun Jain arjun.j...@gmail.com wrote: How to check table exists or not or how to display all table -- You received this

[appengine-java] Re: gae gwt - to serve compressed java script

2011-03-24 Thread Didier Durand
Hi, It's depending on certain values in the header of the request: see http://code.google.com/appengine/docs/java/runtime.html#Responses regards didier On Mar 24, 11:46 am, pac parvez.chau...@gmail.com wrote: It looks that app engine is not serving compressed contents. Is there something I

[appengine-java] Re: Task Enqueue in a Transaction

2011-03-22 Thread Didier Durand
Hi, For me, the answer is here: http://code.google.com/appengine/docs/java/datastore/transactions.html#Isolation_and_Consistency They say: Queries and gets inside a transaction are guaranteed to see a single, consistent snapshot of the datastore as of the beginning of the transaction. In

[appengine-java] Re: sharing the code base

2011-03-21 Thread Didier Durand
Hi, The invitation you send from the GAE dashboard is not about source code sharing but about giving the other person access to this dashboard so that he can also see logs and administer app. For code sharing, you have to use Github (if your project is open) or go a hosted subversion service.

[appengine-java] Re: JUnit Test of Code that uses GAE/J URLFetchServiceFactory.getURLFetchService()

2011-03-18 Thread Didier Durand
Hi, There is a difference: a) the build path is what's needed to compile your source as you code it b) the classpath is what's needed to run the application The local jars provide low-level service used by the jars facing the user code and replace equivalent jars of the prod env. So, you don't

[appengine-java] Re: can I perform a query in transaction without the pk-parent filler?

2011-03-18 Thread Didier Durand
Hi, You don't need to explicitely use the parent filter in you query as long as all entities effectively are in the same group. The need for that is to isolate all entities potentially updated by a transaction on a single store server, i.e the one hosting the entity group. regards didier On

[appengine-java] Re: Local development server classpath - com.google.appengine.tools.KickStart

2011-03-18 Thread Didier Durand
Hi, You will be ok if you add not only 1 single gae jar (appengine-tools- api.jar) but all those (about 2) appearing in the GAE sdk library on Eclipse when you create a new project + those needed to run locally. The simplest way for you is to follow he hints given in

[appengine-java] Re: Design choices.

2011-03-17 Thread Didier Durand
Hi, namespaces are not related to entity groups: entity group is a notion to group entities for transactional purposes. The aim is to limit a transaction to update of objects in a single group (i.e on the same server) to get a higher reliability and good scalability. The namespace is a just a

[appengine-java] Re: for the problem Applications are limited to 150000000 bytes of resource files

2011-03-16 Thread Didier Durand
Hi, In order to achieve your goal is the quota limit cannot be changed, may I suggest though that you still update your file to the datastore to serve them back to your clients. You would not serve them from datastore but upload them into memcache (all at startup or 1 by 1 on 1st use) and serve

[appengine-java] Re: for the problem Applications are limited to 150000000 bytes of resource files

2011-03-16 Thread Didier Durand
into the main memory and loading the records into the memory cache. An other question is, both of the two approaches will consume a lot of time, but the performance of the former is still questionable. Expecting your further directions. Thanks for your attention! Chun 2011/3/16 Didier Durand durand.did

[appengine-java] Re: running app engine application totally on local environment

2011-03-16 Thread Didier Durand
Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine On Wed, Mar 16, 2011 at 10:13 AM, Didier Durand durand.did...@gmail.comwrote: Hi, this question was already debated

[appengine-java] Re: suggestions on template engine for GAE-java

2011-03-15 Thread Didier Durand
Hi, see http://groups.google.com/group/google-appengine-java/browse_thread/thread/ef090c0e6ea4a6d6/649797c2b590f672?lnk=gstq=framework+ikai#649797c2b590f672 tons of suggestions regards didier On Mar 15, 6:07 pm, Jay Young jayyoung9...@gmail.com wrote:

[appengine-java] Re: Jersey crash in Eclipse

2011-03-13 Thread Didier Durand
Hi, Jersey is supposed to work officially on app engine: see http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine May the associated how-to will help you fix your issue: http://tugdualgrall.blogspot.com/2010/02/create-and-deploy-jax-rs-rest-service.html regards

[appengine-java] Re: Blob Store Service and GWT

2011-03-13 Thread Didier Durand
Hi, please provide the stack trace of your exception regards didier On Mar 14, 2:04 am, Miguel Angel De la Torre Martínez mdelatorr...@gmail.com wrote: Hello I'm new to the Blobstore so please help. I'm trying to use a really standard GWT RPC like this:     public String

[appengine-java] Re: Datastore throwing exception while putting entity.

2011-03-12 Thread Didier Durand
Hi, Are you using queued tasks ? This can of error may appear then. It appears on the dev server when the Task Queue env in not correctly started. regards didier On Mar 12, 8:03 am, dalchand choudhary dc4...@gmail.com wrote: Hi, I am using App Engine Locally with eclipse and while

[appengine-java] Re: Datastore throwing exception while putting entity.

2011-03-12 Thread Didier Durand
, Mar 12, 2011 at 3:55 PM, Didier Durand durand.did...@gmail.comwrote: Hi, Are you using queued tasks ? This can of error may appear then. It appears on the dev server when the Task Queue env in not correctly started. regards didier On Mar 12, 8:03 am, dalchand choudhary dc4

[appengine-java] Re: Blobstore Java API - people can upload whatever they want with no control

2011-03-11 Thread Didier Durand
Hi, You're right: you can't control WHAT (size, etc...) the users upload but you can control IF they upload: the key after /upload is generated by App Engine and has to be a valid one (not too old, not used yet, etc,,) to be usable for an update. If you generate such an upload for authentified

[appengine-java] Re: Blobstore Java API - people can upload whatever they want with no control

2011-03-11 Thread Didier Durand
you're saying I should only generate the upload key url if the user is authenticated? And that would make it secure? avoid spam and such? On Fri, Mar 11, 2011 at 12:32 PM, Didier Durand durand.did...@gmail.com wrote: Hi, You're right: you can't control WHAT (size, etc...) the users upload

[appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Didier Durand
Hi Luca, 1 thing before going in the new code: by using the blobs in datastore, the interactive time limit (30s) apply (it does not for the blobstore) I.e., the upload must be finished in 30s after that request is cancelled by gae. It may be harder to achieve even if your image is 1Mb if the

[appengine-java] Re: Doubt about Datastore (Python/JDO/Low level api)

2011-03-10 Thread Didier Durand
Hi, You should give a try to packages like Objectify (recommended by Google also: they tend to push people away from JDO / JPA...) It is simpler to learn than JDO and much more efficient in terms or performance. I abandonned JDO for Objectify many months ago and I am extremely happy about that

[appengine-java] Re: GregorianCalendar source packages

2011-03-10 Thread Didier Durand
Hello, The jvm implementation of GAE is not complete either: see this list to see which classes are usable or not. http://code.google.com/appengine/docs/java/jrewhitelist.html regards didier On Mar 10, 7:50 pm, Damien Dessagne damien.dessa...@gmail.com wrote: I ran into the same problem

[appengine-java] Re: uploading 100k lines into the datastore is enough to max out the CPU time?

2011-03-08 Thread Didier Durand
) {                 this.geoBoxL5 = geoBoxL5;         } } On Mar 7, 10:23 am, Didier Durand durand.did...@gmail.com wrote: Hi, Could you please disclose the source code of your objects stored in the ds ? You maybe right or wrong depending on how they were defined. regards didier

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-08 Thread Didier Durand
Hi, Even if you solve the File I/O issue, I would guess that you may then face security issue: Google has probably protected its instances against execution of code not coming direcly from the war file... Anyway, very interesting question: pls, let us konw how you progress. regards didier On

[appengine-java] Re: uploading 100k lines into the datastore is enough to max out the CPU time?

2011-03-07 Thread Didier Durand
empty. Through debugging I have been able to isolate that it's the bottleneck is pm.makeConsistent of each entity to insert. Wouldn't having indexes make the inserting even slower (since these indexes have to be updated/rebuilt)? thanks C. On Mon, Mar 7, 2011 at 5:44 AM, Didier Durand

[appengine-java] Re: What is maximum number of entities I can update within the 30 sec time limit of App engine ?

2011-03-07 Thread Didier Durand
Hi, I have a personal rule of thumb of 10 udpated entities / second [Ds is made for heavy read throughput but is not so fast on writes] The new High Replication datastore seems (not tried it personally...) slower: 1 update per second is what is the max recommended. See

[appengine-java] Re: compute intensive application

2011-03-07 Thread Didier Durand
My 2 cents: - queues scale up very well: I tried them with no throttle (on bucket size) and you easily get 12-15 jvm running your computations. To my knowledge, queues are the best way to get parallelism on GAE. but - data access / contention may be the issue: don't you write anything back ? That

  1   2   3   4   5   >