[appengine-java] Re: Junit Problem

2010-05-18 Thread Ravi
Finally found the problem that in documentation its not mentioned that few of the jars need to be included. They did mention few but not all, may be documentation need to be fixed. So it worked now. but now getting another problem, data is not being persisted in local file. I am using following cod

[appengine-java] Re: Facebook/social website design problem

2010-05-18 Thread boustanihani
Take a look at this, I think it should help => Google I/O 2009 - Scalable, Complex Apps on App Engine: http://www.youtube.com/watch?v=AgaL6NGpkB8 -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send emai

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread Luca
End Very kind from you !! And you haven't asked twice. Anyway I will be back on the main argument that is the fact that I think DataNucleus is not working like all other JPA engines. Those lines you reports only says that flush synchronize the state to the underling database, nothing strange

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread datanucleus
I've already asked you twice to post your class. You haven't. That provides no context for any comment, and I've already told you why datastore operations are delayed until commit/flush. Why do you think there's a flush() method if you think things ought to go straight to the datastore ? JPA2 spe

Re: [appengine-java] Anti-aliasing/Image Quality with Java Image Service

2010-05-18 Thread nicolas melendez
Same problem here, the image api is very poor. On Mon, Apr 5, 2010 at 11:25 PM, John Patterson wrote: > > On 5 Apr 2010, at 18:39, Jim wrote: > > Hi there, >> >> First a bit of background: >> I'm building an app that maintains a number of images. Once the images >> are uploaded I use the images

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread Luca
I did some more tests, printing the key IMMEDIATELY AFTER the em.persist and these are the results: - OpenJPA (1.0.1): key assigned - EclipseLink (1.0.1): key assigned this with the results of yesterday's tests: - Hibernate (3.4.0.GA): key assigned - DataNucleus (1.1.5): key null Two considerat

[appengine-java] Re: Facebook/social website design problem

2010-05-18 Thread Tristan
What about doing this? Have your user activity object keep track of friends as well... So something like Class UserActivity { Key id; String statusMessage; Date time; User user; List friends } Then when you want to display the "wall", you just query all User Activity objects that have your user

[appengine-java] Re: 1MB limit and multi-put in datastore bug?

2010-05-18 Thread Tristan
I was testing my splitting library. I had a 2GB file accessible in my test environment. From that I created a 2GB blob and set it as a property of my Entity. My library then split that property into entities around 1MB each, and then did multiput 500 of those 4 times and then whatever was left on t

[appengine-java] Re: How to use OpenID on the GAE (with the GWT frontend)

2010-05-18 Thread Drasko
I put some stuff on http://super-easy.blogspot.com ... hope it helps. On May 16, 5:13 am, Drasko wrote: > I am a bit slow in creating the GWT part ... but it looks already much > better. > The latest code is running onhttp://super-easy.appspot.com > There will be soon some content on super-easy.b

[appengine-java] Re: two applications accessing the same datastore

2010-05-18 Thread Thomas
Using version has one major problem. The ssl certificate is for URIs which is like *.appspot.com . The browser complained that you are probably visiting a malicious site when you browse a ssl page of a specified version. On 5月18日, 下午5時29分, Erdinc Yilmazel wrote: > You are not allowed to access th

[appengine-java] Re: two applications accessing the same datastore

2010-05-18 Thread François Masurel
Sounds like an interesting functionnality to add to GAE. May be you could create a feature request : http://code.google.com/p/googleappengine/issues/list On 18 mai, 11:29, Erdinc Yilmazel wrote: > You are not allowed to access the same data from different applications > (Using different appIds)

[appengine-java] Re: List all entitie kinds from the datastore

2010-05-18 Thread Laco Skokan
I have tried, but it does not. I have ro specify "kind_name" as a parameter. But I want to list all kinds. If I do not specify the parameter, the stat returns null. Ladislav. On 18 kvě, 11:16, Didier Durand wrote: > Hi, > > did you try the sample code > athttp://code.google.com/appengine/docs/j

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread Luca
Well, I'm not saying "DataNucleus is not a good product", I'm using it !! On May 18, 9:10 pm, datanucleus wrote: > http://www.datanucleus.org/development/test/jpa_tck.html > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group.

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread Luca
Sorry I can't get your point about Optimistic Locking. If I do some insert inside a transaction that is at least with isolation level "read committed" I don't have any kind of problem with versioning. Can you please give me an example of how can I have such a problem ?? Thx. On May 18, 9:09 pm,

[appengine-java] Junit Problem

2010-05-18 Thread Ravi Sharma
Hi, First time i am trying to run local junit test in eclipse. I am following exactly what is written here http://code.google.com/appengine/docs/java/tools/localunittesting.html but no use, i am getting following error. com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'da

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread datanucleus
http://www.datanucleus.org/development/test/jpa_tck.html -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to go

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread datanucleus
Define your class first, since without a context there is no point to this. JPA uses optimistic txns *only* and so nothing should go in the datastore before flush(). Nothing. Any implementation that does put something in the datastore before then is actually problematic since it can cause optimist

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread Luca
>From ejb-3.0-persistence-specification, section 3.2 I can read that "A managed entity instance is an instance with a persistent identity that is currently associated with a persistence context." >From this I understand that em.persist() (paragraph 3.1.1) should give me the persistent identity.

Re: [appengine-java] Re: Facebook/social website design problem

2010-05-18 Thread Baz
I think you're best bet is to do all the work in the write, and have each profile's page constantly updated and ready for an extremely simple read. For one, this will significantly reduce your costs, because everyone reads more than they write. Two, by the time you get big enough to surpass the 30

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread datanucleus
> and discovered that the entity key was not populated, but remain > "null" until the transaction is committed or a flush is done. This was > very confusing to me, because I know that, from JPA specs, the persist > change the state of the entity from new to managed, and being managed > means that t

Re: [appengine-java] Re: is createFederatedLoginURL() working?

2010-05-18 Thread Ravi Sharma
Drasko, I checked your demo,its great. I found one small problem. For Yahoo and google it works fine but for AOL and OpenId it go to goole login page. does this mean we can use only google and yahoo or its something you have just not provided correct info while creating the urls. Thyanks, Ravi. 2

Re: [appengine-java] Re: Java Uploader

2010-05-18 Thread Ikai L (Google)
Also, I should mention that in general, use HTTP POST for anything destructive. An HTTP GET should not change data. It's too easy for a user to reload a page without a warning or a web crawler to accidentally invoke some action. On Tue, May 18, 2010 at 8:59 AM, Erich wrote: > Thanks for the tips

[appengine-java] Re: is createFederatedLoginURL() working?

2010-05-18 Thread Drasko
As of 1.3.4 the method createFederatedLoginURL is being merged into the "standard" createLoginURL method. Same happend to other "federated" methods. UserService userService = UserServiceFactory.getUserService(); to get the authenticated user: User user = userService.getCurrentUser(); to

[appengine-java] Persistent Identity of JPA Entities

2010-05-18 Thread Luca
Hi all, I would like to share with you some concerns I have about the way DataNucleus/DataStore manage identities and their persistence. All started when I tried to do a simple em.persist(entity); and discovered that the entity key was not populated, but remain "null" until the transacti

[appengine-java] Cannot access app from main URL after update

2010-05-18 Thread Chuk
Hi I'm pretty new to GAE. I'm using the Java SDK. My problem is I cannot access my app from the main URL (eg. foo.appspot.com). Only through the version URL (eg. alpha-1.latest.foo.appspot.com). A little history I created an app and I deployed the first version. I let the version in appengine-web

[appengine-java] Query in JPA

2010-05-18 Thread drift elysium
Hi all, I'm trying to query JPA datastore. Let's assume that we have a Product entity with ProductId as the primary key and Prodqty and ProdPrice as attributes. An example might look like this. ProductId Prodqty ProdPrice 1501000 234998 3

[appengine-java] issue in uploading KML file

2010-05-18 Thread shri
hello, I made a stand alone project for uploading the KML file (ie reading the file through JAK ) but when i tried to integrate the code in a web app project it showed me a runtime error stating that it is not able to read the file so i wanted to know that whether JAK is compatible with google app

[appengine-java] Re: Facebook/social website design problem

2010-05-18 Thread Ravi
Thanks Li for looking into it. For me 1-2 minute delay is fine, problem is like contains query(for finding friend's data), i can pass max 30 user id, so basically on one page i will be able to show max 30. But in other case where wall type data need to be saved queries need to perform faster and ne

Re: [appengine-java] Facebook/social website design problem

2010-05-18 Thread Yiming Li
This is an interesting problem, I am not an expert on database design, especially key-value based datastore, but I will try to answer this question. For me, the design like Class User{ Key id; String name; String email; List friends. ...etc } makes perfect sense, and as you said, you can do more

[appengine-java] Facebook/social website design problem

2010-05-18 Thread Ravi
Hi, I am trying to design a website like Facebook, where user will have friends and will have wall where they can see there friend's updates etc. While designing it on GAE i got confused with what will be the best approach like data duplicate, data read time or data write time etc Friend's Design:

[appengine-java] Re: Persisting object with generic supertype

2010-05-18 Thread Didier Durand
Hi, Did you correctly parametrize the storage strategy for inheritance at the root level of your hierarchy tree: check http://www.datanucleus.org/products/accessplatform/jdo/orm/inheritance.html and http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Inheritance I remember hav

[appengine-java] Persisting object with generic supertype

2010-05-18 Thread Jaroslav Záruba
Hello Following is what I get after adding new field to my class: -- org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The class "net.jzaruba.appengine1.Article" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in

Re: [appengine-java] two applications accessing the same datastore

2010-05-18 Thread Erdinc Yilmazel
You are not allowed to access the same data from different applications (Using different appIds), however you can deploy different versions of your application and they will run on separate urls. (Something like .latest..appspot.com. So you can create a version named admin for that purpose which is

[appengine-java] two applications accessing the same datastore

2010-05-18 Thread aswath satrasala
Hello, I want to create two webapps accessing the same datastore - Admin webapp - enduser webapp I want to separate out these, so that I will not end up creating one big application and that in turn will have an effect on the startup time of the application on the appengine. -Aswath -- You rece

[appengine-java] Re: List all entitie kinds from the datastore

2010-05-18 Thread Didier Durand
Hi, did you try the sample code at http://code.google.com/appengine/docs/java/datastore/stats.html with __Stat_Kind__ ? Should do what you want. didier On May 17, 10:51 pm, Laco Skokan wrote: > Hello, > > did anybody tried to list all entity kinds from the datastore? How can > this be done? >

[appengine-java] Re: BlobstoreService: can't call getUploadedBlobs

2010-05-18 Thread BimboJones
Hi, Some code would be helpful, have you checked the form for errors? you can use httpfox to see whats going to the servlet. You can use this line of code to get the blob info, "LOLUPLOAD" being the name of the FileUpload widget. private BlobstoreService blobstoreService = BlobstoreServiceFactory