[appengine-java] write a file on server side

2010-06-29 Thread Lu
Hi, I want to write some output to a text file on server side and I don't think database (JDO) is necessary for my application. Is there any way to do that? Because google engine does not support the standard java I/ O, i.e. PrintWriter. Thanks -- You received this message because you are

[appengine-java] Re: Local Persistance of Data

2010-06-29 Thread Prateek
Is it related to ur FIle Upload. are you trying to upload a file??? There is some config you wil have to take care for upload functionality of Strut2 and GAE . Check this link, hope it might be of some help http://whyjava.wordpress.com/2009/10/04/file-upload-on-google-app-engine-using-struts2/

[appengine-java] Re: JDO delete objects

2010-06-29 Thread Lu
Thanks. I've tried it but it is pretty slow if I have to control it this way. The problem I met is when I create an object and its ID is, say 1, if I run my application again, the ID becomes 2. How can I let my application have refreshed new database everytime? Because if it keeps adding the

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

2010-06-29 Thread Simon
Ignoring the GAE-side of the question, how are you planning on handling people who are behind proxies and routers? Multiple people will all look like they are coming from the same IP address - maybe this isn't an issue for you! From a GAE perspective you might want to do some reading around

[appengine-java] Re: Application restart for almost every request? What happened?

2010-06-29 Thread Simon
You probably want to have a read of the following FAQ - http://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request On Jun 29, 4:13 am, opok vir...@gmail.com wrote: Error Message: This request caused a new process to be started for your application, and thus caused your application

[appengine-java] Re: JDO delete objects

2010-06-29 Thread Ian Marshall
Hi Lu, One way is for your app to create a task on the task queue at start- up. This task can iterate through your existing document instances in the datastore and delete them. (For robustness, you could fetch a few instances only, and if more exist then get the task to create a new task to

[appengine-java] Re: write a file on server side

2010-06-29 Thread Ian Marshall
Hi Lu, One cannot write to file server-side using GAE/J! For guaranteed server-side persistence, one must use the Google BigTable datastore. If you want, you could write to log, and then extract log entries to your local PC using the relevant GAE/J tool, but I personally would not want to use

[appengine-java] Re: Application restart for almost every request? What happened?

2010-06-29 Thread Jake
Hey, Actually, what you probably want to do is star this issue: http://code.google.com/p/googleappengine/issues/detail?id=2931 It's been happening for awhile now, but generally only to low-traffic users, so it hasn't gotten much attention. Creeping up in the list, though! Jake On Jun 29, 4:44 

[appengine-java] Re: Application restart for almost every request? What happened?

2010-06-29 Thread opok
OK, I did that. But is there any workaround or some other way to avoid this, I am sure that my app is run with low resource requirement, it indeed have no reason to restart, but currently it restarts almost in every incoming request! On 6月29日, 下午8时05分, Jake jbrooko...@cast.org wrote: Hey,

[appengine-java] Re: Application restart for almost every request? What happened?

2010-06-29 Thread Simon
There is no real workaround, since they are cycling your application out since it's getting such low traffic as explained in the FAQ. The best you can do is minimise the loading time, by removing dependencies on complicated frameworks and using lazy initialisation. As soon as your application

[appengine-java] Re: JDO delete objects

2010-06-29 Thread Lu
Yes, thanks. That's cool. But why the key will keep incrementing by 1? If modifying this link https://appengine.google.com/dashboard?app_id=yourappid, I can delete the entities manually. It seems like the data shown in 'datastore viewer' is inconsistent with the data shown under the runtime

[appengine-java] Re: JDO delete objects

2010-06-29 Thread Ian Marshall
(Of course, all this discussion is about the datastore in the GAE cloud, not a local one kept by the dev app server.) But why the key will keep incrementing by 1? This depends on how you have defined your persistent entity class. I have no preference

[appengine-java] Re: Jetty reload and scanIntervalSeconds?

2010-06-29 Thread Nacho Coloma
You can use Jrebel with GAE: http://www.zeroturnaround.com/jrebel/ You will have to combine both instrumentation agents in the launcher, but it works fine. On Jun 27, 6:22 pm, Rob Roland rob.rol...@gmail.com wrote: Hi all, If you've used Jetty via Maven before, you've probably used the reload

[appengine-java] Re: Google Plugin for Eclipse 3.6 is now available

2010-06-29 Thread Benjamin
Just to Add to Arian's post. I has all sorts of trouble installing the new plugin for eclipse Helios. I did it through the update site and the marketplace says it's installed, but i don't have any of the google options i'm used to. If this helps - i tried this with Eclipse Helios EE x64 and x86,

[appengine-java] Re: Application restart for almost every request? What happened?

2010-06-29 Thread Max
This is really one of the core problems why you cannot use GAE for anything serious. Even if you get enough traffic, some users suffer from instance recycling every second (read the comments at the issue). -- You received this message because you are subscribed to the Google Groups Google App

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

2010-06-29 Thread Benjamin
It's funny, i can't think of a better way to stop the abuse but i can think of a 100 ways to abuse it. I hate getting stuck in one of those spy vs spy - measure vs counter measure situations so i'm sympathetic to the challenge. Maybe you could randomly redirect a user to one of those prove your

[appengine-java] Haunted Guestbook Tutorial

2010-06-29 Thread kiraice
Before I describe my question let me briefly introduce my environment. I use Windows XP, Chrome, and Apache Ant. This is what happened: Everything went pretty well. I had my first hello world response as expected. Then I met a problem I don't know how or why it happens. In a step this tutorial

Re: [appengine-java] Haunted Guestbook Tutorial

2010-06-29 Thread Ikai L (Google)
First off, BEST. SUBJECT. EVER. Can you see if the server was actually killed in the process manager? You shouldn't be able to rebuild the project since there will be a port conflict, but it's worth looking at. Also, is there a reason you're using Ant and not the Eclipse plugin? That could make

Re: [appengine-java] Re: Google Plugin for Eclipse 3.6 is now available

2010-06-29 Thread Jason Parekh
Benjamin and Arian, Your issues sound very similar to http://code.google.com/p/google-web-toolkit/issues/detail?id=4168 , could you try running as Administrator to see if the issue disappears? jason On Tue, Jun 29, 2010 at 12:27 AM, Benjamin bsaut...@gmail.com wrote: Just to Add to Arian's

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

2010-06-29 Thread Matthew Blain
The bulk loader does indeed provide backup and restore functionality today. While the implementation is in Python it can talk to your Java server and the entities are shared between Java and Python. On Jun 28, 4:46 pm, mscwd01 mscw...@gmail.com wrote: Thanks for your replying guys, it would be

[appengine-java] RE: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2010-06-29 Thread James
I'd love to see Max Ross continue on these posts. I've burned about 4 hrs now trying to get JDO owned, bidirectional relationships working. It seems like every issue I fix, another pops up. Whack a mole... I'm experiencing everything from: - Child entities persisting, but not subsequently

Re: [appengine-java] Re: Google Plugin for Eclipse 3.6 is now available

2010-06-29 Thread Arthur Kalmenson
When I tried installing from the Marketplace on Eclipse Helios EE x64 for Mac OS X, Eclipse crashed each time it would start up (right when it tried to load the GEP). I had to manually remove the plugin to get Eclipse to start up. After uninstalling (it was already gone) the Marketplace version, I

[appengine-java] Re: AppEngineConfigException: XML error validating on Uploading files using Deploy App Enginer Project

2010-06-29 Thread Nick
Could you please look into my request, where Ikai Lan asked me to provide XML files which are as follows Thanks Nick On Jun 17, 10:59 pm, Nick lgfr...@gmail.com wrote: Hi, Thanks for your reply. Please note web.xlm as follows   ?xml version=1.0 encoding=utf-8? web-app

[appengine-java] Re: Application restart for almost every request? What happened?

2010-06-29 Thread Jake
I think this is more supportive of not being able to use GAE for anything casual :) Serious applications don't seem to suffer from this problem. Jake On Jun 29, 9:28 am, Max max.at.xam...@gmail.com wrote: This is really one of the core problems why you cannot use GAE for anything serious.

Re: [appengine-java] a google app engine sample with objectify

2010-06-29 Thread nicolas melendez
Here: http://code.google.com/p/fulltext-search-in-objectify/ i made a port from a jdo to objectify for full text search, it is a start, but look in objectify page and group for best practices NM On Mon, Jun 28, 2010 at 3:19 PM, Ikai L (Google) ika...@google.com wrote: You might also want to

[appengine-java] Re: JDO delete objects

2010-06-29 Thread Lu
I mean everytime my application will create an object so the id will keep increasing. In datastore viewer, I can delete them manually so this causes the difference in the two locations. I think you've answered that the local dev app server is different. Thanks very much On Jun 30, 1:15 am, Ian