[appengine-java] Lists not persisting in HR datastore
Hi, I have a problem with persisting ArrayList with JDO. It works totally fine locally, but when I deploy my app it does not work. My only idea is that the reason is HR. Anyway, I'd appreciate some ideas how to fix it :) in User class: @Persistent(defaultFetchGroup = true, serialized=true) private ArrayListArrayListLong colonisations = new ArrayListArrayListLong(); public void addColonisation(ArrayListLong colonisation) { colonisations.add(colonisation); } And in another class I do: @Inject public RepositoryUser userRepo; ... ... private ArrayListLong colonisation = new ArrayListLong(); ... ... MySession.get().getUser().colonisations.addColonisation(colonisation); Colonisation.this.userRepo.persist(MySession.get().getUser()); -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Crons Optimization
Hi Hakim, 1. You could remove the text synchronized from your cron's schedules. Then the execution times will get out of synch over time. 2. You could have your cron jobs enqueue a task. Each of your 14 cron jobs would have a different delay to space executions over your 30 minutes. For example: +2 min, +4 min, ..., +28 min. 3. You could specify 2 x 24 = 48 exact run times for each of your 14 crons. Any help? Cheers, Ian On Oct 12, 10:27 am, Hakim rhani2...@gmail.com wrote: Hi everybody, I've an application that runs 14 crons that have the same schedule configuration: every 30 mins synchronized I'm looking for a technique to desynchronise the execution of these crons, I don't want them to execute at the same time in order to reduce the number of instances used to serve them each 30 minutes 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Crons Optimization
On further reflection, please reject my suggestion 2, since your crons will still fire simultaneously. On Oct 13, 10:19 am, Ian Marshall ianmarshall...@gmail.com wrote: Hi Hakim, 1. You could remove the text synchronized from your cron's schedules. Then the execution times will get out of synch over time. 2. You could have your cron jobs enqueue a task. Each of your 14 cron jobs would have a different delay to space executions over your 30 minutes. For example: +2 min, +4 min, ..., +28 min. 3. You could specify 2 x 24 = 48 exact run times for each of your 14 crons. Any help? Cheers, Ian On Oct 12, 10:27 am, Hakim rhani2...@gmail.com wrote: Hi everybody, I've an application that runs 14 crons that have the same schedule configuration: every 30 mins synchronized I'm looking for a technique to desynchronise the execution of these crons, I don't want them to execute at the same time in order to reduce the number of instances used to serve them each 30 minutes 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Facebook Login integration with java appengine
Facebook recently (as in, a couple weeks ago) made it possible to associate multiple domains with your application. Add my-appid.appspot.com as well as aggenda.com. Jeff On Thu, Oct 13, 2011 at 3:09 AM, marco marco.m.al...@gmail.com wrote: Hi guys. (i'm newbie) I'm trying to make an existing GWT+AppEngineJava (GWTGAE/J) app into a Facebook Canvas app (iframe). The GWTGAE/J app already supports login with Google. The problem: The Site Url on facebook is www.aggenda.com -- i bought the domain and associated it the App Engine via Google Accounts In order to make the GWTGAE/J app into a FB Canvas app, I have to provide an https url to FB App Engine does not provide https for www.aggenda.com, it only provides https to my-app-id.appspot.com -- this means i have to provide my-app-id.appspot.com/facebook/canvas/ (where a servlet handles FB https posts) If the user clicking on the canvas page inside facebook did not already authorize the app, I request an authorization following the normal facebook login flow that I use for when the user logs in the GWTGAE/J App via facebook Facebook says that the redirect_uri is not allowed by the application -- I thinks it's because it comes from my-app-id-appspot.com instead of www.aggenda.com If I try the request_uri to www.aggenda.com, it does not work because www.aggenda.com can not respond to https requests Have you had this problem? Any hints? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/sisf8zcwCyYJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Crons Optimization
I can think of two methods 1. Schedule the cronjob for every 2 minutes, keep a counter to check which task is next in line. 2. Create a task queue with 1/120s frequency. Make the cronjob push the 14 task onto the taskqueue -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/eXxxdQx_mkkJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Wicket NonCachingImage not showing image
Hello everyone, I use Apache Wicket's NonCachingImage component to show an image in a form. The image shows correctly when using the GAE/J development application server but fails to show when the code is running on GAE proper. I believe that this may be due to the image's src tag not being interpreted by GAE's cloud, whereas it is rendered properly by the dev app server. Has anyone had this happening to them? Can anyone think of a solution or suggestion? Regards, Ian HTML img wicket:id=imgImage alt=[None] width=100% height=100% Java code - // ImageModel extends LoadableDetachableModelItemImageResource // ItemImageResource extends DynamicImageResource ImageModel imodImage = new ImageModel(pidmModel); NonCachingImage imgImage = new NonCachingImage(imgImage, imodImage); frmForm.add(imgImage); Sample HTML output -- !-- This output shows an image with the dev app server, but [None] when served by a GAE/J production server. -- img wicket:id=imgImage alt=[None] width=100% height=100% src=page?8-IResourceListener-frmForm- imgImageamp;antiCache=1318502670796/ -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Wicket NonCachingImage not showing image
Hello everyone, I use Apache Wicket's NonCachingImage component to show an image in a form. The image shows correctly when using the GAE/J development application server but fails to show when the code is running on GAE proper. I believe that this may be due to the image's src tag not being interpreted by GAE's cloud, whereas it is rendered properly by the dev app server. Has anyone had this happening to them? Can anyone think of a solution or suggestion? Regards, Ian HTML img wicket:id=imgImage alt=[None] width=100% height=100%/ Java code - // ImageModel extends LoadableDetachableModelItemImageResource // ItemImageResource extends DynamicImageResource ImageModel imodImage = new ImageModel(pidmModel); NonCachingImage imgImage = new NonCachingImage(imgImage, imodImage); frmForm.add(imgImage); Sample HTML output -- !-- This output shows an image with the dev app server, but [None] when served by a GAE/J production server. -- img wicket:id=imgImage alt=[None] width=100% height=100% src=page?8-IResourceListener-frmForm- imgImageamp;antiCache=1318502670796/ -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Spring or Struts with Google app engine.Is it feasible to use any of these?
Hi, both frameworks are compatible with GAE for Java, (Struts 2 with some workarounds, not much complex). I suggest you to use the framework with which you are accustomed. I have ever used Struts 2, Spring and now I am using GWT (ultimately I have preferred this one), all of them were pretty straightforward to develop. Regards, Alessandro Barbosa 2011/10/13 sagar misal sagar1982mi...@gmail.com Hello everyone, I have developed and deployed an application using GAE java and now looking forward to develop another one using the same but with Struts or Spring framework,can anyone suggest me where to start and whether it is feasible to do this?Or should i follow general way of developing GAE java project ? Thanks and Regards Sagar Misal -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: XG Transactions with JDO/JPA
Thanks for the quick update. Got the local error: transactions on multiple entity groups only allowed in High Replication applications What is the magic trick to enable HR on the local server? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/5FxDQJ8eeh4J. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Facebook Login integration with java appengine
It's in the Basic Info section in the upper part of the page (which you scrolled past). Look for App Domain - you can put multiple entries there. Jeff On Thu, Oct 13, 2011 at 4:01 AM, marco marco.m.al...@gmail.com wrote: Hi Jeff. Thanks for the quick reply. I'm looking in Apps Aggenda Basic (inside Facebook) and can not find where i can add additional URL. Check the attached screenshot. Thanks again for your help. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/hIcn2myHn-YJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] XG Transactions with JDO/JPA
datanucleus-appengine-1.0.10 will also be available in Maven Central shortly /dmc On Wed, Oct 12, 2011 at 6:31 PM, Max Ross (Google) max.r...@gmail.comwrote: Hi everyone, Due to a mix-up, the JDO/JPA jars that are included in the 1.5.5 SDK do *not *support XG Transactions. If you want to use XG Transactions with JDO or JPA in 1.5.5 you can download an updated jar from http://code.google.com/p/datanucleus-appengine/downloads/detail?name=datanucleus-appengine-1.0.10.final.jarand follow the installation instructions on that page. Please let me know if you have any problems with it. Sorry for the trouble, Max -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/WXNFlj2PlvwJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- David Chandler Developer Programs Engineer w: http://code.google.com/ b: http://turbomanage.wordpress.com/ t: @googledevtools -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] SDK 1.5.5 in Maven Central Repos?
It's been released to Maven Central, should show up in an hour or two. /dmc On Thu, Oct 13, 2011 at 6:27 AM, Liang Ding dl88...@gmail.com wrote: Hi, all. The SDK 1.5.5 released several days, but in the Maven Central Repositoryhttp://search.maven.org/#search%7Cga%7C1%7Cappenginestill 1.5.4. -- My Blog: http://88250.b3log.org Open Source, Open Mind, Open Sight, Open Future! -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- David Chandler Developer Programs Engineer w: http://code.google.com/ b: http://turbomanage.wordpress.com/ t: @googledevtools -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: XG Transactions with JDO/JPA
Enabling HR locally is described here: http://code.google.com/appengine/docs/java/tools/devserver.html#Using_the_Datastore -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/8YL--iXPbIkJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Facebook Login integration with java appengine
Hi Jeff. I've tried out what you suggest but it gives an error: my-app-id.appspot.com must be derived from your Site URL. The site URL is www.aggenda.com/facebook?param1=10. I must be doing something wrong... -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/DbNg07QR-mEJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] SDK 1.5.5 in Maven Central Repos?
Yep, thank you ;-) On Fri, Oct 14, 2011 at 3:25 AM, David Chandler drfibona...@google.comwrote: It's been released to Maven Central, should show up in an hour or two. /dmc On Thu, Oct 13, 2011 at 6:27 AM, Liang Ding dl88...@gmail.com wrote: Hi, all. The SDK 1.5.5 released several days, but in the Maven Central Repositoryhttp://search.maven.org/#search%7Cga%7C1%7Cappenginestill 1.5.4. -- My Blog: http://88250.b3log.org Open Source, Open Mind, Open Sight, Open Future! -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- David Chandler Developer Programs Engineer w: http://code.google.com/ b: http://turbomanage.wordpress.com/ t: @googledevtools -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- My Blog: http://88250.b3log.org Open Source, Open Mind, Open Sight, Open Future! -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Facebook Login integration with java appengine
Are you typing in a field called App Domain? It lets you type in multiple domains, one next to the other. Jeff On Thu, Oct 13, 2011 at 4:39 PM, marco marco.m.al...@gmail.com wrote: Hi Jeff. I've tried out what you suggest but it gives an error: my-app-id.appspot.com must be derived from your Site URL. The site URL is www.aggenda.com/facebook?param1=10. I must be doing something wrong... -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/DbNg07QR-mEJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Spring or Struts with Google app engine.Is it feasible to use any of these?
Hi, Thanks for your suggestion , actually i have ever worked on GWT that's why eager to try something new so it will be helpful if guide me choosing any one of Struts or Spring and learning as both are new for me and any learning tips so that will save my time. Thanks and Regards Sagar Misal. On Oct 13, 7:35 pm, Alessandro Barbosa alessandro.barb...@gmail.com wrote: Hi, both frameworks are compatible with GAE for Java, (Struts 2 with some workarounds, not much complex). I suggest you to use the framework with which you are accustomed. I have ever used Struts 2, Spring and now I am using GWT (ultimately I have preferred this one), all of them were pretty straightforward to develop. Regards, Alessandro Barbosa 2011/10/13 sagar misal sagar1982mi...@gmail.com Hello everyone, I have developed and deployed an application using GAE java and now looking forward to develop another one using the same but with Struts or Spring framework,can anyone suggest me where to start and whether it is feasible to do this?Or should i follow general way of developing GAE java project ? Thanks and Regards Sagar Misal -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.