[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 y

[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 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, 11:29 pm,

[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 wr

[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 whe

[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 wrote: > You should try Apache POI:http:

[appengine-java] Re: Is there any way to generate excel file in 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, 8:05 pm, datanucleus wrote: > Use DataNucleus Excel plugin perhaps

[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 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 > entities so i ca

[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 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

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

2011-07-19 Thread Didier Durand
On Jul 19, 10:53 am, Simon Knott 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 Google Groups "Goo

[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 wrote: > Hello, > I have a static XML file in my App Engine app that uploads just fine and

[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 a

[appengine-java] Re: Difference between xmpp and channel api

2011-07-18 Thread Didier Durand
Hi, the 1st very big difference is that XMPP is a standard independent of Google where Channel API is not. If you develop on XMPP, you can reach people using a vast palette of client software. regards didier On Jul 18, 12:38 pm, dreamer wrote: > Hi, > > I am going through the XMPP and Channel

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

2011-07-17 Thread Didier Durand
Hi, did you check oldImage.getFormat() to make sure that the initial PNG format is properly detected ? regards didier On Jul 18, 7:39 am, Zhenyu Wang wrote: > String iUrl = > "http://upload.wikimedia.org/wikipedia/commons/5/5c/Torchlight_help.png";; > URLFetchService fetchService = URLFetchSe

[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 wrote: > 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

[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 wrote

[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 wou

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

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

[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 wrote: > Hi, > I do frequently experience some problems with my app. Errors going up > or an unusual traffic load or whatsoever. I ofte

[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 wrote: > Okay I jus

[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" wrote: > DataStoreGwt provides an alternative to JPA itself. Please see whether > it suits your project. > > J.Ganesanwww.DataStoreGwt.com > > On Jun 19, 6:55 pm, Paolo

[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 i

[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 http://code.google.com/appengine/docs/java/javadoc/com/googl

[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 http://code.google.com/appengine/docs/java/datastore/entities.html#Entity_Gro

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

2011-06-12 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 wrote: > Hi, > > I am relatively new to Java appengine but I can imagine why one needs > something li

[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 wrote: > What is this DataViewer?  How do I use this?  Eclipse? -- You received this message because you are subscri

[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 wrote: > Hey, > > I have a "parent" entity which has a Set of "child" entities, as > follows: > > class Parent

[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 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 different UIs:

[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 wrote: > Yep, I'm using a totally new version -- You received this message because you are subscribed to the Google G

[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: 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 ku

[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 wrote: > Hi All, > > I am new to G

[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 to

[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 wrote: > Could it be the length? because it is working fine on a st

[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 15

[appengine-java] Re: : 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=gst&q=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 wrote: > M

[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 wrote: > Hi, > > I am developing a new application and need help utilizing task queues. > > Here is the problem: when I startup my applicati

[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 wrote: > I am evaluating imagesService.applyTransform() to transform 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 a

[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 wrote: > someone ki

[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, blu

[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 wrote: > Hey guys, > > I created an app whe

[appengine-java] Re: Blobstore vs. Datastore for HTML files

2011-05-05 Thread Didier Durand
Hi, a couple of points from my side a) The 1 Mb limit of Datastore can be overcome: you can make collections of blobs object in a class and read one 1 after the other in order to serve them. b) The blobstore was until 1.4 much more painful to update: uploads were from the client etc. So, before

[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 wrote: > I have created a servlet which r

[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 wrote: > My app started throwing exceptions right af

[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 wrote: > Hello,everyone. I am new to goo

[appengine-java] Re: web application migration to the cloud using GAE

2011-05-02 Thread Didier Durand
Hi, to reduce the initial effort suggested by Luca, you could try the sql support offered by GAE: see http://code.google.com/appengine/business/#features That could get you up and running on GAE more quickly. Then, you could decide if it is worth the refactoring or not because it's clear that dat

[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 wrote: > http://labs.google.com/papers/bigtable.html- her

[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 wrote: > Hello, > > Are GAE servers mult

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

2011-04-21 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: 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, 6

[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 wrot

[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 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 in the development

[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 wrote: > I posted a question on StackOverflow ab

[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 me

[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 wrote: > H

[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 wrote: > Please anybody reply... -- You receiv

[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:

[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, th

[appengine-java] Re: Mem cache

2011-04-13 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 piece

[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 wrote: > have you tried to use memcache or simply store session into datastore? -- You received this message bec

[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 wrote: > May be you can do womething like this > > class HouseProperty{ > Key id; > String Name;} > > in above class

[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 rathe

[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 ge

[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 data

[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 wrote: > Hi, > > I progra

[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 Ob

[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 Enti

[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 nee

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

2011-04-01 Thread Didier Durand
k for your app! didier On Apr 1, 5:30 pm, Didier Durand 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: definitel

[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: 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 wrote: > Static initializers will be th

[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 then

[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 wrote: > Hello, > > I find GWT standard components a bit dull. What would you recommand to > extends GWT components and still remain compatible with App Engine ? > Ideally a com

[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: 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 wrote: > How to check table exists or not or how to display all table -- You received this message because you are su

[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 wrote: > It looks that app engine is not serving compressed contents. > Is there something I need to configure? thoug

[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 particu

[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. re

[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 http://code.google.com/appeng

[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 Ma

[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'

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

2011-03-17 Thread Didier Durand
Hi, Did you add the .jars specific to the local dev server in the classpath of your IDE ? regards didier On Mar 18, 12:27 am, James Andersen wrote: > Apologize that this is a cross-post from a question I asked on > StackOverflow

[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 "pr

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

2011-03-16 Thread Didier Durand
question > > several times in the past). > > > I feel like I should add this to the FAQ ... > > > Ikai Lan > > Developer Programs Engineer, Google App Engine > > Blog:http://googleappengine.blogspot.com > > Twitter:http://twitter.com/app_engine > > Re

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

2011-03-16 Thread Didier Durand
o 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

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

2011-03-16 Thread Didier Durand
Hi, this question was already debated many times here: it is not a good idea to use the dev server of gae for production purposes as it is only a dev server as its name implies. It's limited in many functions, you have no guarantee on its long term, etc... Why don't you go to a standard servlet c

[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 t

[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=gst&q=framework+ikai#649797c2b590f672 tons of suggestions regards didier On Mar 15, 6:07 pm, Jay Young wrote: > http://code.google.com/closure/templates/ > > Google doesn't

[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 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 askForBlobStoreURL() { > >  try

[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: Datastore throwing exception while putting entity.

2011-03-12 Thread Didier Durand
, 2011 at 3:55 PM, Didier Durand wrote: > > > > > > > > > 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 >

[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 wrote: > Hi, > > I am using App Engine Locally with eclipse and while operating put on > dat

[appengine-java] Re: does the Google AppEngine or WebToolkit replace the bootclasspath of the running Java runtime?

2011-03-12 Thread Didier Durand
Hi, GWT doesn't run any Java on the client: it is converted to Javacript for execution on the brower. So, GWT won't modify anything on the machine of a regular app user. regards didier On Mar 12, 9:38 am, Shawn Brown wrote: > Hi, > > I used the open-jdk workaround to solve the problems introdu

[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 b

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

2011-03-11 Thread Didier Durand
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 > wrote: > > Hi, > > > You're right: you can't control

  1   2   3   4   5   >