[appengine-java] sandbox restrictions

2010-06-08 Thread RockyWolf
Hi, I would like to know what all kinds of system calls can't be used in App Engine. The App Engine documentation also says that once a request is sent to the client no further processing can be done. What do you mean by this? I thought it was true for all JEE applications. Could you give me more

[appengine-java] Re: many to many relation with additional attribut

2010-06-08 Thread wilberforce
I have used the above mentioned solution for my many to many relations. Now if I want to get all the entities of type Entity2 for one entity of type Entity1 I query the ManyToManyLink with the key of Entity1. As a result I get a list of keys for Entity2. Now how do I query Entity2 to get all the

[appengine-java] Re: many to many relation with additional attribut

2010-06-08 Thread Ian Marshall
You might want to try one of the javax.​jdo.​PersistenceManager.getObjectsById(...) methods. I have not done this myself yet (although I do use getObjectById(...)), so I have not used an array or collection of OIDs. You might want to give this a try. Failing that, you might want to have as an

[appengine-java] Re: SecurityException with Hessian on google app engine

2010-06-08 Thread Matija
Any news about this SecurityException ? Matija. On Jun 5, 4:46 pm, dilbert dilbert.elbo...@gmail.com wrote: I am having trouble with Hessian on Google App Engine. First I will describe the setup. I have a persistent class MessageDb declared as (It contains a String and an arraylist of

[appengine-java] Unnecessary memcache request from jetty SessionManager?

2010-06-08 Thread dmitrygusev
Can somebody comment on: http://code.google.com/p/googleappengine/issues/detail?id=3319 -- 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

[appengine-java] JPA entity listner callbacks are not invoked when using Query API

2010-06-08 Thread Sudhir Ramanandi
When an entity is loaded using query, postLoad() call back is not invoked. postLoad() works only with entityManager.find(clazz, id) As per the JPA specification: The PostLoad method is invoked before a query result is returned or accessed or before an association is traversed. Example:

[appengine-java] Fwd: JPA entity listner callbacks are not invoked when using Query API

2010-06-08 Thread Sudhir Ramanandi
Ohh, sorry.. in the example, I gave a wrong class name UnownedRelationLoader Its FooEntityListner and still it does not work public class FooEntityListner { public void postLoad(BaseEntity entity) { --- } -- Forwarded message -- From: Sudhir Ramanandi sramana...@gmail.com Date:

[appengine-java] Re: Unnecessary memcache request from jetty SessionManager?

2010-06-08 Thread Peter Ondruska
How I understand memcache: cache.containsKey(some-key) tells you whether there is such key in memcache and cache.get(some-key) retrieves the value for key You could skip asking for existence of the key in memcache only in case you expect to return non-null values (and null being non-existent

[appengine-java] Getting an error while using Struts 2 with Google App Engine

2010-06-08 Thread Gaurav Munjal
I referred to this post http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/ Getting this error Jun 8, 2010 10:31:06 AM com.google.apphosting.utils.jetty.JettyLogger info INFO: Logging to JettyLogger(null) via

[appengine-java] Re: many to many relation with additional attribut

2010-06-08 Thread Anna
Thanks a lot for your helpful code Ian! Now I've implemented the long as gae.pk-id. Both entities and the link are stored but I don't know how to adopt what you wrote: On 7 Jun., 21:54, Ian Marshall ianmarshall...@gmail.com wrote: Beware that in this case, the Long ID values are not the full

[appengine-java] Re: many to many relation with additional attribut

2010-06-08 Thread Anna
Thanks a lot for your helpful code Ian! Now I've implemented the long as gae.pk-id. Both entities and the link are stored but I don't know how to adopt what you wrote: On 7 Jun., 21:54, Ian Marshall ianmarshall...@gmail.com wrote: Beware that in this case, the Long ID values are not the full

[appengine-java] Re: many to many relation with additional attribut

2010-06-08 Thread Anna
Thanks a lot for your helpful code Ian! Now I've implemented the long as gae.pk-id. Both entities and the link are stored but I don't know how to adopt what you wrote: On 7 Jun., 21:54, Ian Marshall ianmarshall...@gmail.com wrote: Beware that in this case, the Long ID values are not the full

[appengine-java] Connecting to a remote datastore

2010-06-08 Thread John Patterson
Hi, I had a problem in my app that would only show when using the live data and I could not load all the live data into the local datastore. So I wrote an ApiProxy.Delegate which intercepts all datastore RPC calls on the dev server and posts the binary data to a servlet running in my

[appengine-java] Re: Transaction exception when not using a transaction ?

2010-06-08 Thread JD
I am not using a transaction (see original POST), which is the problem. On Jun 4, 11:03 am, Chau Huynh cmhu...@gmail.com wrote: Did you have different entity groups inside a transaction? Google have a constraint of what can be done in a transaction

[appengine-java] Re: many to many relation with additional attribut

2010-06-08 Thread Ian Marshall
How do I build a key from parent and child if I don't know the parent's key? I use a field to link the entity group parent instance to a child instance. I make this bi-directional, so from an entity I can retrieve both its parent and also its child or set of children. Thanks a lot for your

[appengine-java] Re: sandbox restrictions

2010-06-08 Thread Tristan
Here's an exhaustive list: http://code.google.com/appengine/docs/java/jrewhitelist.html On Jun 8, 5:40 am, james isaac jamesisaa...@gmail.com wrote: I would also like to know what you mean when you say we can't open a socket or access another host directly.What API is being referred to here?

[appengine-java] Re: AspectJ + Spring

2010-06-08 Thread Tristan
Something to consider, that if you start an entire AspectJ framework you're increasing your server startup time (whether it's large or not). I liked the solution Roo brings to the table, and that is it compiles AspectJ out of the source by the time it is deployed simply by inserting the Java code

[appengine-java] Re: AspectJ + Spring

2010-06-08 Thread Nacho Coloma
Hi Sudhir, Try using interfaces for your objects. I have been able to use aspects in my applications using Spring interceptors instead of weaving, which is triggered (I may be wrong here) when your class does not implement any interfaces. Bottom line: inject interfaces instead of bean

[appengine-java] Re: Task Queues: no method to get their current size()

2010-06-08 Thread Nacho Coloma
You can while testing (this is from the users guide): LocalTaskQueue queue = LocalTaskQueueTestConfig.getLocalTaskQueue(); QueueStateInfo qsi = queue.getQueueStateInfo().get(default); assertEquals(entriesCount, qsi.getTaskInfo().size()); Out of the development environment, you cannot. On Jun 5,

[appengine-java] Google Profile API

2010-06-08 Thread Jeevan
Hello all, Am Jeevan and am doing a project on Google Profile API. The objective of my application is I need to fetch the profile of all the users who are in a particular domain, and then display the information of the users of that particular domain in the Google Apps, and I have to deploy this

[appengine-java] Fetching previous and next entity

2010-06-08 Thread Johan
Hi, My problem: Given a key and x sort criteria i want to fetch the previous and next entity. Im looking for suggentions on the most effective ways of implementing this using the low level api. -- You received this message because you are subscribed to the Google Groups Google App Engine

[appengine-java] error accessing page

2010-06-08 Thread Jeremy-t
I get the following error trying to access a jsp: The requested URL was not allowed: /sprintbbreport.jsp (resource reports-sprintbb2010.appspot.com) It needs to be protected by the admin user associated to the domain - i set up the domain with this option on creation instead of allowing any

[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-08 Thread Tin
Hi all: We have found a temporary solution for this issue: Try with an AJAX timer kicking the server (doing nothing), maybe one request per minute (or less) and GAE will keep our site / users in the same node. In our testing it could avoid the GAE web instance reloaded, but if the request

[appengine-java] Sessions - Working in request scope, not persisting between requests

2010-06-08 Thread klonq
I have a problem with sessions. This is not a new problem it has been something that has been bugging me since I started developing for GAE, I am using SDK 1.3.3.1 Things I have done: 1. Enabled sessions in app-engine.xml with sessions-enabledtrue/ sessions-enabled. 2. Implemented Serializable in

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

2010-06-08 Thread Laco Skokan
Erich, yes, this works fine. Thank you! Ladislav. On 28 kvě, 19:10, Erich erich.re...@gmail.com wrote: I've used the following code, to limited success... code %@ page import=com.google.appengine.api.datastore.DatastoreService % %@ page

[appengine-java] Re: Version not ready error (but it's ready)

2010-06-08 Thread Tristan
Well??? This problem happens EVERY time I deploy these days. As a result Google App Engine has become USELESS as a hosting solution. Any plans to fix this? Anything I can do on my side so that my uploads work? On Jun 7, 4:59 pm, Tristan tristan.slomin...@gmail.com wrote: I keep on getting this

Re: [appengine-java] Re: Version not ready error (but it's ready)

2010-06-08 Thread Don Schwarz
What version of the SDK are you using? I believe that this deadline was increased significantly in 1.3.4. On Tue, Jun 8, 2010 at 10:39 PM, Tristan tristan.slomin...@gmail.comwrote: Well??? This problem happens EVERY time I deploy these days. As a result Google App Engine has become USELESS as

[appengine-java] iterating through items in cache (Java)

2010-06-08 Thread radzish
Hi Memcache API is missing this. Are there any ideas how to do that? Regards, Alex -- 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

Re: [appengine-java] iterating through items in cache (Java)

2010-06-08 Thread Ikai L (Google)
Memcache doesn't natively have this ability, even outside of App Engine. You'll have to keep an index of used keys, or consider a different storage strategy. On Tue, Jun 8, 2010 at 4:36 PM, radzish radz...@gmail.com wrote: Hi Memcache API is missing this. Are there any ideas how to do that?

[appengine-java] Using the Gdata Java Client Application Library on GWT and GAE. Authenticating with OAuth.

2010-06-08 Thread drthink
I am building a GWT-GAE-Java application that imports Google Contacts using the GData Java Client library. I am following this example here: http://code.google.com/apis/gdata/docs/auth/oauth.html I am attempting the first stage of this demo where I create a URL the user gets redirected to to

[appengine-java] Date based sorting and result pagination

2010-06-08 Thread RAVINDER MAAN
Hello all how can i get my query result sorted based on creationdate and also i want to do pagination for the same.what is the best way to do that.can anybody refer me any example code? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for