[appengine-java] Empty LinkedList won't overwrite non-empty LinkedList in datastore ...
Hi, My Data class has a field of type LikedListKey. If there is only one Key in the list and if I delete it, the deleted Key will not be deleted from the datastore (after persisting the entity). I have tested all the other case, they are working fine. PS: if I set list = null, the last Key will be deleted from datastore. -- Prashant code.google.com/p/claymus/ -- 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: can i load web form and then submit it, after showing only form's captcha on screen?
Hi Sorry for the late reply... I am trying to submit same/similar data to article directories, and I am still unable to devise a solution (either as desktop app or web app) that shows only captcha on screen, and then submits the form. The task is to submit articles to upto thousands of article directories. Regards, Arvind. On Jun 19, 7:10 am, Ikai Lan (Google) ika...@google.com wrote: Just out of curiosity, what is it that you are doing that presents a captcha with a form? Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine On Sun, Jun 19, 2011 at 4:35 AM, Stephen Johnson onepagewo...@gmail.comwrote: You can do it several ways. The best way IMHO is to show the form and the captcha together and they fill in the form fields and the captcha and submit both together. Or as your question implies, you want a two-step process for some reason where they fill in the form and then you show a different page with just the captcha. Not sure why you want to do this, but in this scenario when they submit the form, you can send the captcha page back to them with the form fields as hidden fields. Then when captcha is submitted, then both form fields and captcha info is submitted together. Another alternative is to store the submitted form values into the session object on first submit, then show captcha page and when they have submitted captcha successfully, you can process the form data. Stephen On Wed, Jun 15, 2011 at 8:30 PM, Arvind Chari arvind.ik.ch...@gmail.com wrote: Hello I want to automate the submission of repetitive data to multiple web forms... I already have with me details of all fields that have to be filled in on a web form. What I want to do is, initially ask the user for values of various fields, and at time of submission show only captcha of form on screen. Now, when end user fills in the captcha, then the form (along with other fields filled in by the application) is submitted successfully. Can i do this in Google App Engine (either Java or Python or any of the other supported languages)? Regards, Arvind. -- 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/-/ftxQm2I3P5EJ. 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. -- 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] XMPP getPresence fails
Hi, calling getPresence ( WHANT_TO_KNOW_STATUS_JID, MY_JID).isAvailible() returns always false. The WHANT_TO_KNOW_STATUS_JID is a jabber.org JID. The WHANT_TO_KNOW_STATUS_JID was invited before calling: sendInvitation(WHANT_TO_KNOW_STATUS_JID, MY_JID) It is interesting, that the app receives the precence stanzas in the precencehandler correctly. Only the explicit call of getPresence returns the wrong result. Any Ideas, what should be checked or what coud be wrong. By Micho -- 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] Integrating Google Hangout (Google+) with GAE Apps
Hi Ikai - where do we request access for Google+ API developer preview? Did some searching and couldn't find much. thanks On Fri, Jul 8, 2011 at 11:45 AM, Ikai Lan (Google) ika...@google.comwrote: This API isn't available. Hangouts just shipped! Stay tuned. Have you already requested access to Google+ API developer preview? If not, I suggest you do it. Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine On Fri, Jul 8, 2011 at 7:04 AM, dreamer venugopal.vasire...@gmail.comwrote: Hi, I wanted to implement class room kind of environment from many years, getting that multi user audi/vedio interaction, just difficult and even I did not find any out of the ways , simple enough to integrate with web apps. Finally I found one, Google Hangouts (Google+). Will and Does Google lets developer use and integrate their APPS to this product using API, like its other product? I wanted to do many things, to provide real life experience - some of them nothing to do with social. what I believe is this is largely useful even outside social apps domain. For example , Like online tutoring, town hall meetings over web etc etc. Not sure, if API kind of feature is already available any other way of integration. I appreciate ,if you kindly share any information regarding this. -- 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. -- 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] Why use servlets?
I'm brand new to GAE, but I'm impressed. I think it can provide all my needs, well done Google! However, I'm fairly new to Java and i'm failing to see why I should use servlets when I can achieve the same thing with JSPs. Am I missing something here? What is the point in the servlets if JSPs can do everything the servlets can? Also, does anyone know how to transfer an application ID from one Google account to another? -- 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/-/NGW8j6CzYN4J. 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: Multi-threaded datastore test in JUnit
I have the exact same issue and can't get it to work with ApiProxy... How did you do it exactly? Thanks On Jun 14, 2:46 pm, esorf frankleonr...@gmail.com wrote: Ok, I kept trying things until I found something that worked. The information is in a few posts out there as they touch on related issues. In each thread I call ApiProxy.setEnvironmentForCurrentThread(testEnvironment); The testEnvironment is just Environment testEnvironment = new Environment() { // Implementations of all Environment value getters. Specifically, return test for appid in order to match default Environment implementation. } http://code.google.com/appengine/docs/java/tools/localunittesting.htmlno longer refers to Environment, but it's clearly still important for multi-threaded testing. -- 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] Sending sms from mobile clients to GAE
Hi, anybody plz lead me how to acheive Sending sms from mobile clients to GAE using any gateway server. also plz provide the supported gateway servers by GAE. Regards, prmod -- 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] GAE Authentication Broken
Could someone tell me how this was resolved (if it was)? I'm running into the exact same problem here. -- 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/-/ELrT0lGOAYsJ. 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] getBlobKey broken
Take a look here... http://code.google.com/intl/en/appengine/docs/java/tools/localunittesting.html#Writing_HRD_Datastore_Tests and how to solve it https://groups.google.com/forum/#!topic/objectify-appengine/ECNbSVgEcSQ -- 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] Eclipse: Importing types from other projects
Hi everyone! I am developing several gae-services in Eclipse in separate projects. These services exchange data, and share some data types. My normal approach would be to keep these shared datatype class definitions in a separate project and import where needed. However, in Eclipse, services only work when all classes are within the service project. Importing the classes from the shared project works for Eclipse, but not when I launch the service. Is there a better way than keeping duplicate classes in every project? Regards, Chris -- 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/-/SUvTe6uWL68J. 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: How to ensure two entities are updated WITHOUT using transactions?
I might add that you could add a try/catch/finally: use a transaction on the first operation in the try block that can be rolled back if a succeeded flag is false in the finally block; after the 2nd operation in the try block the succeeded gets set to true; and if you use the referred pattern in the blog above on the 2nd operation, you might want to include pre-conditions and the operation to be performed (in other words, if it's a banking operation, you want to know that you expected the amount to be x before you add y). On Jul 10, 9:15 pm, Didier Durand durand.did...@gmail.com wrote: Hi, Have a look at this to understand the issues:http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine regards didier On Jul 10, 11:09 pm, mscwd01 mscw...@gmail.com wrote: Hey I'm using JDO and need to update two entities both of which reside in their own entity group. As I cannot use a transaction, I'd like to determine how others achieve this. It is imperative that both entities are updated or none at all. 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] Why use servlets?
Hi Jack, You can use both servlets and JSPs with App Engine. To transfer an app id, just add the new owner as an Owner under Application Settings in the admin console, then remove the previous owner. /dmc On Sat, Jul 9, 2011 at 11:28 AM, Jack Borgin jalm...@gmail.com wrote: I'm brand new to GAE, but I'm impressed. I think it can provide all my needs, well done Google! However, I'm fairly new to Java and i'm failing to see why I should use servlets when I can achieve the same thing with JSPs. Am I missing something here? What is the point in the servlets if JSPs can do everything the servlets can? Also, does anyone know how to transfer an application ID from one Google account to another? -- 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/-/NGW8j6CzYN4J. 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, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.com/ b: http://googlewebtoolkit.blogspot.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] Re: Multi-threaded datastore test in JUnit
Gabriel, All the code is in my two prior posts. What happens when you run the test code above? -- 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] Why use servlets?
JSP's get converted to servlets before execution, so when your using JSP's you're using servlets. Many people, myself included, use servlets for the business logic and use JSP's for the presentation (generating the html). So, in my servlets and filters I'll determine if the user is logged in, has permissions to view whatever page they are attempting to view, query the datastore or memcache for what the data they want to view, etc. Then, I'll forward the data to the JSP page to generate the HTML view. There's nothing that stops you from using JSPs for everything, but most programmers prefer doing the heavy coding stuff in servlets and use the JSP for what they do best which is generating HTML. Stephen On Mon, Jul 11, 2011 at 9:11 AM, David Chandler drfibona...@google.comwrote: Hi Jack, You can use both servlets and JSPs with App Engine. To transfer an app id, just add the new owner as an Owner under Application Settings in the admin console, then remove the previous owner. /dmc On Sat, Jul 9, 2011 at 11:28 AM, Jack Borgin jalm...@gmail.com wrote: I'm brand new to GAE, but I'm impressed. I think it can provide all my needs, well done Google! However, I'm fairly new to Java and i'm failing to see why I should use servlets when I can achieve the same thing with JSPs. Am I missing something here? What is the point in the servlets if JSPs can do everything the servlets can? Also, does anyone know how to transfer an application ID from one Google account to another? -- 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/-/NGW8j6CzYN4J. 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, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.com/ b: http://googlewebtoolkit.blogspot.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. -- 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] Sending sms from mobile clients to GAE
Pramod, So far as I know there is no service to do it yet, neither any supported gateway. You should look for some SMS gateway provider that offers a REST or SOAP interface, then you'd be able to call it within GAE. But it would be cool to have in a future a SMS service in GAE. Nice one! :) *Jayr Motta* Software Developer * * I'm on BlackBeltFactory.comhttp://www.blackbeltfactory.com/ui#!User/jmotta/ref=jmotta ! On Mon, Jul 11, 2011 at 8:25 AM, pramod kumarg pramodkuma...@gmail.comwrote: Hi, anybody plz lead me how to acheive Sending sms from mobile clients to GAE using any gateway server. also plz provide the supported gateway servers by GAE. Regards, prmod -- 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: How to ensure two entities are updated WITHOUT using transactions?
The try/catch/finally method seems better than the convoluted method mentioned in the blog. One question though, what is the success flag you mentioned? I'm confused as to how I can have two transactions in one try/catch and make sure both succeed. Maybe a quick code sample would help if you have the time. Thanks On Jul 11, 5:01 pm, Nichole nichole.k...@gmail.com wrote: I might add that you could add a try/catch/finally: use a transaction on the first operation in the try block that can be rolled back if a succeeded flag is false in the finally block; after the 2nd operation in the try block the succeeded gets set to true; and if you use the referred pattern in the blog above on the 2nd operation, you might want to include pre-conditions and the operation to be performed (in other words, if it's a banking operation, you want to know that you expected the amount to be x before you add y). On Jul 10, 9:15 pm, Didier Durand durand.did...@gmail.com wrote: Hi, Have a look at this to understand the issues:http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine regards didier On Jul 10, 11:09 pm, mscwd01 mscw...@gmail.com wrote: Hey I'm using JDO and need to update two entities both of which reside in their own entity group. As I cannot use a transaction, I'd like to determine how others achieve this. It is imperative that both entities are updated or none at all. 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] URGENT: Upcoming scheduled maintenance: 2011 Jul 14
(If your application uses High Replication datastore, you can ignore this email) Attention App Engine users! We have an urgent scheduled maintenance period coming up *this* Thursday, 2011 Jul 14th. We apologize for the shorter-than-usual notice and will work hard to make sure that more lead-time is given for future downtime periods. The maintenance period will last approximately one hour starting exactly at this time: Thursday, 2011 Jul 14, 5:00pm/1700 PDT/GMT-7 (Friday, 2011 Jul 15, midnight//GMT) Note that this downtime does *not* affect High Replication datastore users as far as service goes, but neither Master/Slave nor HR datastore apps will be able to deploy during this period. Below is the standard information we usually send out with these notifications. Check it out for more information about read-only periods or how to be notified of production events. -- The Master/Slave datastore will be placed into read-only mode and memcache will be flushed. It is recommended that critical portions of your application that depend on the datastore should make use of the capabilities API to detect and recover gracefully during read-only periods. Documentation describing the capabilities API can be found here: - Python: http://code.google.com/appengine/docs/python/howto/maintenance.html - Java: http://code.google.com/appengine/docs/java/howto/maintenance.html There will be no downtime for developers whose applications use High Replication datastore. You can read more about High Replication here: http://googleappengine.blogspot.com/2011/01/announcing-high-replication-datastore.html Developers can subscribe to the scheduled maintenance calendar using the following link: https://www.google.com/calendar/b/0/embed?src=4chlpo92ci2f54c2u21shbj...@group.calendar.google.com Developers can add/view the scheduled maintenance calendar using this address (look for the + in the corner to subscribe to this calendar): 4chlpo92ci2f54c2u21shbj...@group.calendar.google.com Keep an eye out on this thread for more announcements regarding the downtime period. Best regards, -- The Google App Engine team - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.chun : wesc+api at google.com : @wescpy developer relations :: google cloud products -- 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: can i load web form and then submit it, after showing only form's captcha on screen?
I think I understood your question before your last addition: if you're wanting to add human verification, you might use the oddly named 'honeypot' :) On Jul 11, 1:11 am, Arvind Chari arvind.ik.ch...@gmail.com wrote: Hi Sorry for the late reply... I am trying to submit same/similar data to article directories, and I am still unable to devise a solution (either as desktop app or web app) that shows only captcha on screen, and then submits the form. The task is to submit articles to upto thousands of article directories. Regards, Arvind. On Jun 19, 7:10 am, Ikai Lan (Google) ika...@google.com wrote: Just out of curiosity, what is it that you are doing that presents a captcha with a form? Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine On Sun, Jun 19, 2011 at 4:35 AM, Stephen Johnson onepagewo...@gmail.comwrote: You can do it several ways. The best way IMHO is to show the form and the captcha together and they fill in the form fields and the captcha and submit both together. Or as your question implies, you want a two-step process for some reason where they fill in the form and then you show a different page with just the captcha. Not sure why you want to do this, but in this scenario when they submit the form, you can send the captcha page back to them with the form fields as hidden fields. Then when captcha is submitted, then both form fields and captcha info is submitted together. Another alternative is to store the submitted form values into the session object on first submit, then show captcha page and when they have submitted captcha successfully, you can process the form data. Stephen On Wed, Jun 15, 2011 at 8:30 PM, Arvind Chari arvind.ik.ch...@gmail.com wrote: Hello I want to automate the submission of repetitive data to multiple web forms... I already have with me details of all fields that have to be filled in on a web form. What I want to do is, initially ask the user for values of various fields, and at time of submission show only captcha of form on screen. Now, when end user fills in the captcha, then the form (along with other fields filled in by the application) is submitted successfully. Can i do this in Google App Engine (either Java or Python or any of the other supported languages)? Regards, Arvind. -- 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/-/ftxQm2I3P5EJ. 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. -- 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] ANN: BatchFB 2.1, a Java Facebook library with automatic batching
This is the first time I've announced this opensource project in this forum because until now there wasn't anything GAE-specific about it. You can still use BatchFB outside of GAE, but now BatchFB will use asynchronous fetching on App Engine to issue multiple batches to Facebook in parallel. This is *the* fastest way to pull down significant quantities of data from Facebook. http://batchfb.googlecode.com/ Here is a quick snippet of code: --- Batcher batcher = new FacebookBatcher(accessToken); LaterUser me = batcher.graph(me, User.class); LaterUser mark = batcher.graph(markzuckerberg, User.class); LaterListUser myFriends = batcher.query( SELECT uid, first_name, pic_square FROM user WHERE uid IN + (SELECT uid2 FROM friend WHERE uid1 = + myId + ), User.class); LaterUser bob = batcher.queryFirst(SELECT timezone FROM user WHERE uid = + bobsId, User.class); PagedLaterPost feed = batcher.paged(me/feed, Post.class); // No calls to Facebook have been made yet. The following get() will execute the // whole batch as a single Facebook call. String timezone = bob.get().timezone; --- You can stack up hundreds of Graph and FQL requests using the Future?-like interface; BatchFB will group them into batches and execute the batches in parallel on App Engine. Enjoy, Jeff -- 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.