[appengine-java] Re: Two apps hitting the same datastore

2010-11-08 Thread Eyal
Thank you Robert, and Starman. The thing is, the application that does the daily updates can't be a web application, at least not through GWT, because it needs to get a feed from Analytics, and it takes too long so that GWT throws a timeout exception. Is there a way to deploy a simple, GUI-less J

[appengine-java] gclid requests

2010-11-08 Thread aswath satrasala
Hello, I am getting too many gclid requests in my application. What can be done to turn off these requests. Is these requests good or bad. What is the purpose of these requests in my appengine application. Regards -aswath 1. 11-08 02:39AM 07.207 /?gclid=CIqzlt6DkaUCFUV76wodemQlMg 200 3544ms

[appengine-java] Re: Two apps hitting the same datastore

2010-11-08 Thread Didier Durand
Hi Eyal, deploying a gui-less is the same thing as deploying any other gaej appl (gwt, etc.) Then, you can schedule regular jobs via cron: see http://code.google.com/appengine/docs/java/config/cron.html regards didier On Nov 8, 9:16 am, Eyal wrote: > Thank you Robert, and Starman. > > The thing

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Didier Durand
Hi Eyal, Where do you run your application when getting this exception: on your dev env or on the google infrastructure ? regards didier On Nov 8, 8:44 am, Eyal wrote: > Thank you lp, and Didier. > > Actually this application will need to run in production, and not only > in testing. > > I need

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Eyal
On my dev, when running "As A Java Application." If I try to run it as a Web Application I get a Timeout exception, because the Analytics feed takes too long to respond... Thanks for looking into this, Didier! Eyal On Nov 8, 1:55 pm, Didier Durand wrote: > Hi Eyal, > > Where do you run your app

[appengine-java] Timeout while fetching URLFetch

2010-11-08 Thread bengroot87
I'm using the XMLReader to read a feed like below. URLConnection urlConnection = url.openConnection(); XmlReader reader = new XmlReader(urlConnection); When this is called I receive within 5 seconds an IOException "Timeout while fetching" I also tried to set the timeouts but still no luck. urlCo

[appengine-java] Re: Timeout while fetching URLFetch

2010-11-08 Thread PhilBeaudoin
Also see my similar question from a few days ago: http://goo.gl/d3T2d On Nov 8, 4:41 am, bengroot87 wrote: > I'm using the XMLReader to read a feed like below. > > URLConnection urlConnection = url.openConnection(); > XmlReader reader = new XmlReader(urlConnection); > > When this is called I rece

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Didier Durand
Eyal, Now it's clear = you MUST run the application as a Web Application to be able to activate the App Engine environment with the Datastore that you need for JDO. Then you MUST activate the local dev env for App Engine on your machine : see my previous answer with the link. If you don't do bot

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Eyal
Hi Didier, Thanks for your reply. Here's the problem, though: when I run it as a web application I'm getting a timeout error. I've already posted this issue on the Analytics dev group at (http://groups.google.com/group/ google-analytics-data-export-api/browse_thread/thread/ 3f9956a25d718b59) but s

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Didier Durand
Hi Eyal, Can you detail (i.e post code samples) on what you do with Analytics ("I need to be able to update the application's datastore with a feed from Analytics.") and how you want to do it. It's too vague as of now. regards didier On Nov 8, 4:41 pm, Eyal wrote: > Hi Didier, > > Thanks for

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Eyal
Hi Didier, Sure, here is an example method: public SiteBasicData getSiteBasicData(AnalyticsService as, Site site, DateTime date) { SiteBasicData sd = new SiteBasicData(); as.setConnectTimeout(1); as.setReadTimeout(1); DataFeed dataFeed = null;

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Eyal
Just to complete the picture here's the initialization of the AnalyticsService: AnalyticsService as = new AnalyticsService("gaExportAPI_acctSample_v1.0"); as.setUserCredentials(CLIENT_USERNAME, CLIENT_PASS); Thanks again, Eyal On Nov 8, 7:27 pm, Eyal wrote: > Hi Didier,

[appengine-java] The class "idv.petrie.prtm.model.Tweet" is not persistable.

2010-11-08 Thread Petrie Wong
Sorry. I am just facing this defeat. I just followed the instructions startup page and modified it. I try to google this but cannot find the answer. Any one can help me? package idv.petrie.prtm.model; import java.util.Date; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.anno

[appengine-java] DTO object

2010-11-08 Thread Koen Maes
Hi, I am using GAE/JAVA/GWT 2.1 and storage JDO/Datastore GWT 2.1 and the RequestFactory are in use to send DTO objects between client and server. Now, I have a Entity with a property of type "com.google.appengine.api.datastore.Email". But I cannot directly use this type on the proxy DTO object,

[appengine-java] about【PreparedQuery.countEntities ()】 problem, how can I get the total count of a specific Q uery?

2010-11-08 Thread liqwei
case 【PreparedQuery.countEntities()】 is Deprecated。 but how can I get the Total Count of a specific Query? the 【PreparedQuery.countEntities(FetchOptions fetchOptions) 】only return the count specificed by fetchOptions! ex. Query query = new Query(Book.getKind()); // there are 3 entities with "B

[appengine-java] Blank Page on Server

2010-11-08 Thread PawanModi
Hi, I am using Java SDK for Google App Engine. Using eclipse google plugin for application development. My application works fine in my local machine in eclipse but getting blank page on application server. But I used python for bulkloader. I stuck here badly and not able to proceed. I am not sur

[appengine-java] Determine Tenancy Quota

2010-11-08 Thread Johan Pretorius
Hi I am writing an application that will allow an undetermined number of clients on the application. Every client's data will be stored using the NameSpace mechanism. There will be a huge difference on the quota usage per client. (A client will be a company and the company will add users to it's

Re: [appengine-java] Sync datastore between server and local

2010-11-08 Thread Ikai Lan (Google)
You can, but one will need to expose an API to the other applications. Different application IDs cannot access the same datastore. Different deployed versions of the same application can. As far as syncing goes, there's the bulk upload/download tool: http://code.google.com/appengine/docs/python/t

Re: [appengine-java] mapreduce - passing filters

2010-11-08 Thread Ikai Lan (Google)
No, the mapper will go over everything. If the number of entities is small, you are better off placing an indexed property on ONLY these fields, then just iterating over them with a cursor and either a local client making multiple HTTP calls to your App Engine app or chained task queues. -- Ikai L

Re: [appengine-java] Determine Tenancy Quota

2010-11-08 Thread Ikai Lan (Google)
There's no way currently to determine quota usage per namespace. Our preference is that you use a single, multitenant namespaced application. Do you have severely assymetric clients app usage? I'm curious to see if the current pricing structure of $0.12 gigabyte/$0.15 gigabyte stored is actually

[appengine-java] Re: DTO object

2010-11-08 Thread Starman
Remap these complex types onto native Java types while copying your entities onto your dtos... or are you sending your entities to the client directly? Usually, you will not want to send the entities to the client as it exposes your data model directly. You should create your service layer so as t

[appengine-java] Re: Determine Tenancy Quota

2010-11-08 Thread Mouseclicker
Is this recommendation just for quota distribution (so that the big ones do not eat up the quota of the smaller ones) or is this a recommendation for better scalability and performance? I always had the impression that the GAE infrastructure would be able to handle such access patterns and give go

[appengine-java] Re: mapreduce - passing filters

2010-11-08 Thread Brad
Ikai, Are there any plans to support filter functionality in the future? I have a similar situation where I want to iterate over a collection that is big enough to be used by the mapper framework, but much smaller than the actual collection size of all entities of that kind. Brad On Nov 8, 11:56

Re: [appengine-java] Re: mapreduce - passing filters

2010-11-08 Thread Ikai Lan (Google)
There was talk about supporting it, but the priority is getting out the shuffle/reduce steps first. appengine-mapreduce is an open source project. You can probably just edit/subclass DatastoreInputFormat.java and add the filter functionality: http://www.google.com/codesearch/p?hl=en#XwsseYUY0Ps/t

[appengine-java] Re: DTO object

2010-11-08 Thread Koen Maes
Hi Starman, Thx for your reply. >From what I understand, you are "manually" copying the properties from the Entity to the DTO. But this process is automated in GWT 2.1 So, I am not sending my entities directly, but the proxies as per the documentation : http://code.google.com/webtoolkit/doc/late

Re: [appengine-java] Re: Trouble unit testing JPA data access objects.

2010-11-08 Thread Lucio Piccoli
hi didier i would like to see your unit test config and your spring config. can u post pls. thanks -lp On Fri, Nov 5, 2010 at 12:12 PM, Lucio Piccoli wrote: > hi didier, > > i did follow the google unit test doc. > But my issue is using the spring tx with JPA in unit test. > ii cant seem to ge

Re: [appengine-java] about【PreparedQuery.countEnti ties()】 problem, how can I get the total count of a specif ic Query?

2010-11-08 Thread Yasuo Higa
Hi liqwei, You can get the total count of a specific query as follows: Query query = new Query(Book.getKind()); PreparedQuery pq = ds.prepare(query); FetchOptions option = FetchOptions.Builder.withLimit(Integer.MAX_VALUE); out.println(pq.countEntities(option)); Hope this helps, Yasuo Higa On S

[appengine-java] GAE or EC2

2010-11-08 Thread JY
I want to ask fellow GAE users whether you think GAE is good choice to build real business on? I have used GAE for some personal projects, and right now help a friend on a tiny start up (but with big dream). The project is related to social network - I am thinking of two options: 1, GAE The benefit

[appengine-java] Tasks & SSL

2010-11-08 Thread Dom Derrien
Context: - Tasks as defined in http://code.google.com/appengine/docs/java/taskqueue/overview.html - Secured URLs as described in http://code.google.com/appengine/docs/java/config/webxml.html In the following excerpts, you can see I want to be sure that only administrators can access over SSL res

Re: [appengine-java] GAE or EC2

2010-11-08 Thread Ikai Lan (Google)
I'm biased, naturally, but here's my piece: They're both great, young platforms, and successful businesses have been built on both Google App Engine as well as Amazon EC2. Amazon's lower level access appeals to some, whereas Google App Engine's abstractions appeal to the folks in this group. Have

[appengine-java] Re: GAE or EC2

2010-11-08 Thread Starman
Having worked for a SaaS company with 500K users and +500M items in its database, the cost of just managing your infrastructure are enormous. Recently, I have been working on two unrelated projects, but both of pretty similar sizes. One on AWS, the other on GAE. AWS is rented virtualized servers

[appengine-java] Re: GAE or EC2

2010-11-08 Thread Didier Durand
Hi JY, I have used both: for a small company aiming at big applications, I would definitely go GAE because it's PaaS: you don't have to deal with the infrastructure which can become quite time consuming when your application gets big if on EC2 (you have to update/patch your images, take care of yo

[appengine-java] Re: GAE or EC2

2010-11-08 Thread JY
Thanks IKai and Starman, very good advice. I don't have problem with big table or even limit of the data store since my project relies on social graph so I will very likely take the de-normalized approach, the other NoSQL solutions all have restrictions. I guess I am mostly concerned about the sta

[appengine-java] Re: GAE or EC2

2010-11-08 Thread JY
Thanks Didier, will check out AppScale. On Nov 8, 10:32 pm, Didier Durand wrote: > Hi JY, > > I have used both: for a small company aiming at big applications, I > would definitely go GAE because it's PaaS: you don't have to deal with > the infrastructure which can become quite time consuming whe

[appengine-java] Re: GAE or EC2

2010-11-08 Thread Vikas Hazrati
You might also want to check out a detailed comparison on technical aspects here http://thoughts.inphina.com/2010/11/01/comparing-google-app-engine-and-amazon-ec2-on-technology/ Regards | Vikas On Nov 9, 9:32 am, Didier Durand wrote: > Hi JY, > > I have used both: for a small company aiming at

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Didier Durand
Hi Eyal, Independently of App Engine, how many seconds does it take to get an answer to your request to Google Analytics (as given above) when you run is "as a Java application" ? A servlet cannot last more than 30s in App Engine, so knwoing your timing is important. But, from my experience, you s

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Eyal
Hi Didier, It takes about 8-9 seconds to return with a reply "as a java application" for one query. I'm going to need a lot more than one query, though, so some of my fetch requests will take much longer. But in any case the timeout exception hits even before the 8-9 seconds, and even when I incre

[appengine-java] Re: No API environment is registered for this thread

2010-11-08 Thread Eyal
Just to be clear, the timeout exception hits on App Engine. All is well as a java app. On Nov 9, 8:06 am, Eyal wrote: > Hi Didier, > > It takes about 8-9 seconds to return with a reply "as a java > application" for one query. I'm going to need a lot more than one > query, though, so some of my fe