Re: [appengine-java] problem with documentation

2010-01-28 Thread Cristian Nicanor Babula
Hi, I don't think it's a good approach to explain the datastore relationship types by using tree-related terms, because a tree implies that a child could be accessed only by it's parent and that is absolutely contrary to the datastore. I think owned and unowned are the best attributes for

[appengine-java] How do you get a generated ID value of an persistent object in JDO using datanucleus rdbms?

2010-01-28 Thread ivanceras
When you instanciate a persisten object in google app engine the object automatically is assigned with a value to its primary field even before persisting it in the database. sample class: MyClass{ @PrimaryKey @Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY) private Long id; } But in the

Re: [appengine-java] App Engine cold starts and overly aggressive cycling

2010-01-28 Thread Miroslav Genov
Hello, I have similar problem. Here are my application details: - What is your application ID? Application ID: cmsevobg - How do you know it is being cycled out? You'll need to insert some code that only gets called when the app cold starts. I have a ServletContextListener that is logging

[appengine-java] java.io.FilePermission on GAE plugin for Eclipse

2010-01-28 Thread jaljal
Hi, I'm using the GAE plugin of Eclipse. I tried to open my jsf page, but I had that stacktrace : 27 janv. 2010 22:41:50 javax.faces.webapp._ErrorPageWriter handleThrowable GRAVE: An exception occurred java.security.AccessControlException: access denied (java.io.FilePermission

[appengine-java] Fetch groups

2010-01-28 Thread KasperDK
I'm planning to use fetch groups in my java-app hosted on google app engine. I can't seem to find much about fetch groups in the java app engine documentation, so my question is if google app engine has implemented fetch groups as defined in JSR-000243 Java Data Objects 2.2 Maintenance Release 2 ?

[appengine-java] Fetch groups

2010-01-28 Thread Kasper Hansen
I'm planning to use fetch groups in my java-app hosted on google app engine. I can't seem to find much about fetch groups in the java app engine documentation, so my question is if google app engine has implemented fetch groups as defined in JSR-000243 Java Data Objects 2.2 Maintenance Release 2 ?

[appengine-java] Re: Merge join on list properties / more efficient on one list or on separate lists

2010-01-28 Thread Max
Bump! In my opinion, the 2nd one performs better but use more storage. Because the first one fan out (n + m) copies whereas the second one fans out (n * m) copies. This is just MY THEORY. Please correct me if I am wrong. Thanks a lot, Max On 1月28日, 上午1時06分, Raphael André Bauer

Re: [appengine-java] Updating an owned One-To-One relationship (JDO)

2010-01-28 Thread Robert Munro
i had a similar problem, I had to force a commit by closing the persistence manager after changing the child objects info and before acessing the child object via the parents field, it seems it gets refreshed when accessing it via the parent. On Wed, Jan 27, 2010 at 8:24 AM, Nick Wiedenbrueck

[appengine-java] Incorrect number of entities returned

2010-01-28 Thread aswath satrasala
I have the following unittest code. I am persisting two SecurityGroup entities, one as a child of Tenant and one entity not having any parent. beginTxn(); Tenant tenant = new Tenant(); SecurityGroup securityGroup = new SecurityGroup();

[appengine-java] Unsupported method contains while parsing expression:

2010-01-28 Thread Ftaylor
Code: Class Page { ListString aliases; ... query = pm.newQuery(Page.class); query.setFilter(:aliases.contains(alias)); query.declareVariables(String alias); ListPage results = (ListPage)query.execute(alias); ... } I want to select Page objects where the aliases

[appengine-java] Re: User authentication

2010-01-28 Thread Brian
Is there any documentation on how to combine app engine, openID, and oauth? We have already set up our production app (serving over 100K users) to act as a shibboleth service provider, but would like to move it to app engine. We need a way to provide the same federated authentication support

Re: [appengine-java] Re: Updating an owned One-To-One relationship (JDO)

2010-01-28 Thread Robert Munro
is the existing child object null in the parent? otherwise try modifying the child object that you get from the parent? and do you have the mappedBy property set in the parents annotation? On Thu, Jan 28, 2010 at 11:05 AM, Nick Wiedenbrueck nick.wiedenbru...@googlemail.com wrote: Thanks for

[appengine-java] Re: Updating an owned One-To-One relationship (JDO)

2010-01-28 Thread Nick Wiedenbrueck
Here is what I'm doing: employee.setContactInfor(new ContactInfo(...)) // in another request employee.setContactInfor(new ContactInfo(...)) // in yet another request, this would give me the first ContactInfo employee.getContactInfo() is the existing child object null in the parent? What do you

[appengine-java] Re: 30 seconds

2010-01-28 Thread elwis
Hi, yes http://camel.apache.org/ is the thing. It's a routing engine, you get input, examines it and send it to the correct user. That's the simplest flow, usually you do some enrichment and transformation also. Regards Stefan On 27 Jan, 22:29, Ikai L (Google) ika...@google.com wrote: What's

[appengine-java] How can I install my GAE application into other user accounts?

2010-01-28 Thread mjustin
Hello, is there a way to copy my GAE application into somebody elses account? I would like to make it as easy as possible for the recipient, so he/ she should not need the GAE SDK installed. I have seen that there is a way to invite a Developer to Collaborate on an Application. So my idea is

[appengine-java] Retrieve User object by UserId string

2010-01-28 Thread Grégoire Galinand
Hi, I store on the datastore the UserId (who is a String that i get with the method User.getUserID()) and I want to retrieve the Object User corresponding to this UserId to get his EmailAddress. Is it possible to do ? Thanks Grégoire -- You received this message because you are subscribed

Re: [appengine-java] Retrieve User object by UserId string

2010-01-28 Thread Don Schwarz
Why not just store the User object in the datastore property directly? 2010/1/28 Grégoire Galinand gregoire.galin...@gmail.com: Hi, I store on the datastore the UserId (who is a String that i get with the method User.getUserID()) and I want to retrieve the Object User corresponding to this

[appengine-java] Mail message dispatch from the web.xml

2010-01-28 Thread Dom Derrien
I've problems setting up specific servlets to respond to mail messages... I've followed the directions given at http://code.google.com/appengine/docs/java/mail/receiving.html to setup a series of three filters: - /_ah/mail/maezel* = MailResponder - /_ah/mail/twitter* = TwitterResponder -

Re: [appengine-java] How can I install my GAE application into other user accounts?

2010-01-28 Thread Ikai L (Google)
You should just be able to change the application ID in application-web.xml and push it. On Thu, Jan 28, 2010 at 8:23 AM, mjustin michael.jus...@gmx.net wrote: Hello, is there a way to copy my GAE application into somebody elses account? I would like to make it as easy as possible for the

[appengine-java] Webservice on Google App Engine

2010-01-28 Thread Pravesh
Hi Friends, Can anyone tell me the way I can create a webservice and deploy on google app engine. Actually my requirement is to access the data from the google data source using the JDO Api's and and expose it using a webservice. I am trying to create a 3rd party integration solution in which I

Re: [appengine-java] Webservice on Google App Engine

2010-01-28 Thread Jeff Schnitzer
The easiest way to publish a web service (interpreted as an http-based rpc protocol) is with Hessian. The 4.0.3 version of Caucho's hessian jar should work fine as both client and server on Appengine. Other solutions (JAX-RS, SOAP) are available but they are all a lot more complicated. With

[appengine-java] Re: Mail message dispatch from the web.xml

2010-01-28 Thread Dom Derrien
Little update: - In fact specifying the full email addresses after the /_ah/mail/ prefix works! - I was fooled by the empty path info :( - It seems to me the given example has not been tested ;) Note that there's a typo in the example given at

[appengine-java] Re: jaxb-impl version?

2010-01-28 Thread Iqbal Yusuf Dipu
I'm kind of in the same boat. May we know which version of JAX-B implementation is being supported in App Engine? Thanks. IY -- 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

Re: [appengine-java] Question about server side security

2010-01-28 Thread Ikai L (Google)
Hi there, From this page: http://code.google.com/apis/apps/profiles/developers_guide_protocol.html http://code.google.com/apis/apps/profiles/developers_guide_protocol.htmlIt looks like it's possible to use AuthSub or OAuth, which would preclude you from having to store a username and password.

Re: [appengine-java] Re: SocialWok.com presentation qusetion on workaround on join

2010-01-28 Thread Ikai L (Google)
Can you summarize the technique used? As far as join table goes, App Engine's datastore isn't relational. Filtered queries will work differently and were built with scalability characteristics in mind. Sometimes these characteristics will overlap with functionality that SQL provides and may even

[appengine-java] Re: Local datastore lost after deployment

2010-01-28 Thread captain
Thank you John! On Jan 26, 12:59 am, John Patterson jdpatter...@gmail.com wrote: The local datastore does not get deployed to the app engine servers.   That would be a cool feature though! But deploying an app will not modify your local datastore.  However, I   have occasionally had my local

Re: [appengine-java] Questions about JDO/JPA versioning

2010-01-28 Thread Ikai L (Google)
1. No, the parent will not be updated. You are updating a Child - not a parent. However - you will want to be very careful with Child entities in a Collection. I believe there is an outstanding issues where if you only update the Child entity, the Parent entity will not know the Collection has

Re: [appengine-java] Are java.lang.String properties on an entity limited to 500 chars or 500 bytes (which may be 250 chars depending on encoding). Please clarify.

2010-01-28 Thread Ikai L (Google)
It should be 500 characters. We need to fix the documentation: http://code.google.com/p/googleappengine/issues/detail?id=2519 On Thu, Jan 28, 2010 at 4:19 PM, Ugorji ugo...@gmail.com wrote: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Text.html It

[appengine-java] Rules for creating multiple child entities at the same time

2010-01-28 Thread Ugorji
I want to put some entities in the same entity group as a parent. If multiple users try to create child entities at the same time, will their put requests all lock on the parent entity and get executed in sequence (even though I am not making any changes to the parent? and the parent does not hold

[appengine-java] Re: Rules for creating multiple child entities at the same time

2010-01-28 Thread Enrique Perez
My understanding is that all writes within the same entity group are serialized. Hence a best practice is keep Entity Groups as small as possible. If there is contention between two simulatanous writes to the same Entity Group, one fails, and having retry logic here will help get that second

[appengine-java] Re: How do you get a generated ID value of an persistent object in JDO using datanucleus rdbms?

2010-01-28 Thread ivanceras
Okay, I have found my answer. You have to persiste the object first before you could get its generated primary field value. Cheers! On Jan 28, 4:07 pm, ivanceras ivance...@gmail.com wrote: When you instanciate a persisten object in google app engine the object automatically is assigned with a

[appengine-java] Re: SocialWok.com presentation qusetion on workaround on join

2010-01-28 Thread asianCoolz
i will try. The reason socialwork suggested to use code snippet above is because bigtable doesnt support join. by using this technique they claim overhead will be smaller. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to

[appengine-java] Re: Rules for creating multiple child entities at the same time

2010-01-28 Thread Ugorji
Thanks Enrique for your response. This seems to be what the app engine docs are alluding to, but they are not specific on the writes when the parent entity is not part of the transaction, and furthermore they suggest that optimistic concurrency is used and not locking, which lends credence that

[appengine-java] Re: Rules for creating multiple child entities at the same time

2010-01-28 Thread Ugorji
I think I found half of an answer here: http://bolour.com/blog/2009/06/the-google-app-engine-data-model/ Quoting: GAE uses optimistic concurrency control for transactions, and its concurrency control algorithm operates at the root level of an entity group. The optimistic concurrency control

[appengine-java] Re: Rules for creating multiple child entities at the same time

2010-01-28 Thread Enrique Perez
Ugorji, I agree with you that the documentation is not 100% clear. In Google I/O 2008, Under the Hood of AppEngine Datastore, Ryan Barrett discusses transactions under the hood. Toward the backend of the video (about 40 minutes in), he talked about how transactions are implemented within the

[appengine-java] change timezone of date that is already persisted

2010-01-28 Thread mar_novice
Hi, Is there a way to change the timezone of the whole app and also change the timezone of the dates that were already in the datastore from UTC to a specific timezone? thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To

[appengine-java] Re: Using a Key in a query filter

2010-01-28 Thread Szymon Malok
Hi, I have the same problem with following code: public static RService getOneService(String owner, String idService, PersistenceManager pm) { ListRService Services = new ArrayListRService(); Query query = pm.newQuery(RService.class);

Re: [appengine-java] java ip to location library

2010-01-28 Thread Ikai L (Google)
There's another thread about this topic here: http://groups.google.com/group/google-appengine/browse_thread/thread/ebebbacc69688925 http://groups.google.com/group/google-appengine/browse_thread/thread/ebebbacc69688925Typically, this won't exist in a library - it's just data. You'll need to find

[appengine-java] Re: Are java.lang.String properties on an entity limited to 500 chars or 500 bytes (which may be 250 chars depending on encoding). Please clarify.

2010-01-28 Thread Ugorji
Thanks much. On Jan 28, 4:36 pm, Ikai L (Google) ika...@google.com wrote: It should be 500 characters. We need to fix the documentation: http://code.google.com/p/googleappengine/issues/detail?id=2519 On Thu, Jan 28, 2010 at 4:19 PM, Ugorji ugo...@gmail.com wrote:

[appengine-java] Re: Rules for creating multiple child entities at the same time

2010-01-28 Thread Ugorji
Thanks Enrique for your responses. I've done more research and it seems that - every write is serialized (regardless of within tx or not) - contention will always exist at the Entity Group - use retries to manage On Jan 28, 5:28 pm, Enrique Perez enrique.m.pe...@gmail.com wrote: Ugorji, I

[appengine-java] setting null for entity field

2010-01-28 Thread Andrei
i am trying to set entity property to null, but it does not persist it to db, it just keeps old string value how do i set property to null? Thanks -- 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