Re: [appengine-java] Google checkout and GAE

2011-03-22 Thread Tarun Jain
Hello Will,

I am assuming you are using the Google Checkout integration java API. Though
I don't remember the exact details but I recall having run into similar
issues with Google Checkout when I was doing some work for
Exxtensions and
it turned out that it was the JAXB context creation that accounted for
almost all the delay. So it is not really an issue with checkout being slow,
but the client library just isn't optimized. Ultimately, I had to move the
creation of the context to the static block apart from several other minor
changes here and there.

Hope that helps.

Tarun

On Mon, Mar 21, 2011 at 10:34 PM, WillSpecht  wrote:

> I am trying to integrate Google checkout with my GAE app.  I am
> hitting 2 big bottle necks.  exampleNotificationServelet is using a
> ton of CPU and usually fails with a time out if starting a new
> instance.  I'm reading a few values from the merchant data and then
> doing one write to the data store.  I don't see what can be taking
> that much time.
>
> It is also taking forever to create a cart and redirect to the Google
> checkout page.  It takes almost 15 seconds once pressing the checkout
> button.  I have narrowed this down to the build and postCart methods.
> When I step through while debugging on my local host, these methods
> take about 10-12 seconds to complete.  Is this normal?
>
> I am having trouble debugging exampleNotificationServelet, since I
> don't know what checkout is sending to my server.  Can anyone explain
> a good way to fake a notification to the localhost running
> exampleNotificationServelet? So I can set break points and see what is
> taking up so much CPU.
>
> --
> 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] Google checkout and GAE

2011-03-21 Thread Jeff Schnitzer
The google checkout sdk doesn't work on appengine.  There are some
reports of weirdness (like you describe) relating jaxb.  I considered
investigating and found the SDK code doesn't compile, decided this
wasn't for me.

If you want google checkout, don't use the SDK - just write your own handlers.

I just completed Amazon Payments, and while it has its own quirks, the
API is cleaner than GC and *way* cleaner than Paypal's.

Jeff

On Mon, Mar 21, 2011 at 7:34 PM, WillSpecht  wrote:
> I am trying to integrate Google checkout with my GAE app.  I am
> hitting 2 big bottle necks.  exampleNotificationServelet is using a
> ton of CPU and usually fails with a time out if starting a new
> instance.  I'm reading a few values from the merchant data and then
> doing one write to the data store.  I don't see what can be taking
> that much time.
>
> It is also taking forever to create a cart and redirect to the Google
> checkout page.  It takes almost 15 seconds once pressing the checkout
> button.  I have narrowed this down to the build and postCart methods.
> When I step through while debugging on my local host, these methods
> take about 10-12 seconds to complete.  Is this normal?
>
> I am having trouble debugging exampleNotificationServelet, since I
> don't know what checkout is sending to my server.  Can anyone explain
> a good way to fake a notification to the localhost running
> exampleNotificationServelet? So I can set break points and see what is
> taking up so much CPU.
>
> --
> 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.