[appengine-java] Are incoming http requests executed in parallel or concurrently?

2012-02-15 Thread Marc Hede
Hello all,

Coming from python, specifying "threadsafe: true" creates CPU-bound 
incoming http request threads, which limit an instance to handling one http 
request thread using the CPU at any time.  On the other hand python does 
allow handling of parallel I/O within a given http request thread.  This I 
believe means python http requests threads are only concurrent and switch 
between threads during a blocking operation, not execution in parallel.

I would like to know if Java is the same as python, or if specifying 
true means each incoming http thread is executed 
in parallel.

Is the following assumption correct?
Assumption: That would mean Python incoming http requests are handled 
concurrently, and python async api's are handled in parallel, and that Java 
incoming http requests are handled in parallel, and Java async api's are 
handled in parallel.

Thanks in advance to anyone who can shed light on this.  Please let me know 
if my assumptions of GAE Java are correct.

Best

-- 
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/-/JEwvRSG6aQIJ.
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: Setting headers to static files / resources

2012-02-15 Thread Itsu Tamam
http://code.google.com/p/googleappengine/issues/detail?id=6939

On Feb 15, 9:35 am, andrew  wrote:
> Does a feature request exist that we can star?
>
> If not, let's create one?

-- 
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: GAE + Cloud SQL + Hibernate

2012-02-15 Thread datanucleus
> I am using Gwt + gae + cloud sql + data nucleus, can anybody shed some
> light on how to do connection pool and how to monitor in-flight stats.

ConnectionPool : do any of C3P0, DBCP, or BoneCP work with CloudSQL ?
If so then you can use DataNucleus support for those (look at the DN
docs).

-- 
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: GAE + Cloud SQL + Hibernate

2012-02-15 Thread javabuddy
I am using Gwt + gae + cloud sql + data nucleus, can anybody shed some
light on how to do connection pool and how to monitor in-flight stats.

Thanks
-Gana


On Feb 14, 6:36 pm, lisandrodc  wrote:
> Thanks Ikai!
> Has it some simple example with GAE and Cloud SQL?
> I did not find in Internet.
> Thanks and regards
> Lisandro
>
> On 14 feb, 15:15, "Ikai Lan (Google)"  wrote:
>
>
>
> > That's right. When working with the datastore, it's probably best to
> > understand it first by learning the low-level API. There's a trap when you
> > start trying to think of the datastore relationally - do not do this.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > plus.ikailan.com
>
> > On Tue, Feb 14, 2012 at 10:12 AM, Paul Ford  wrote:
> > > Ikai,
>
> > > This is great so Hibernate on GAE works for Cloud SQL but not Datastore. I
> > > understand.
>
> > > Thanks
>
> > > paul
>
> > > On Tue, Feb 14, 2012 at 11:57 AM, Ikai Lan (Google) 
> > > wrote:
>
> > >> Hibernate works. I've gotten Cloud SQL to work with Hibernate ... the
> > >> article has just been pending for some time now. You just want to turn 
> > >> off
> > >> connection pooling and use AppEngineDriver where a SQL Driver is 
> > >> expected.
> > >> Example configuration XML:
>
> > >> *
> > >>  > >>        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
> > >>         "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd";>
>
> > >> 
>
> > >>    
>
> > >>        
> > >>          > >> name="connection.driver_class">com.google.appengine.api.rdbms.AppEngineDriv
> > >>  er
> > >>         jdbc:google:rdbms://
> > >> YOUR_CLOUD_SQL_INSTANCE_ID/guestbook
>
> > >>        
> > >>         1
>
> > >>        
> > >>          > >> name="dialect">org.hibernate.dialect.MySQLDialect
>
> > >>        
> > >>          > >> name="cache.provider_class">org.hibernate.cache.NoCacheProvider
>
> > >>        
> > >>         true
>
> > >>         
> > >>        update
>
> > >>        
>
> > >>    
>
> > >> *
>
> > >> --
> > >> Ikai Lan
> > >> Developer Programs Engineer, Google App Engine
> > >> plus.ikailan.com
>
> > >> On Tue, Feb 14, 2012 at 9:08 AM, Paul Ford 
> > >> wrote:
>
> > >>> Hey Lisa as far as I can tell Hibernate is not supported by GAE. This is
> > >>> documented on the GAE Java Whitelist.
>
> > >>> Furthermore, JPA and JDO are supported so this should provide all the
> > >>> ORM you need.
>
> > >>> regards
>
> > >>> paul
>
> > >>> On Tue, Feb 14, 2012 at 5:33 AM, lisandrodc wrote:
>
> >  Does someone know a simple example application GAE with
> >  Hibernate and Cloud SQL?
> >  Supposedly Cloud SQL support.
> >  (Forming:hibernate.cfg.xml, working with MySQL locally or Cloud SQL
> >  in
> >  Server)
> >  The link:
> > https://developers.google.com/cloud-sql/
> >  It does not mention anything with regard to Hibernate.
> >  Thanks and regards
>
> >  --
> >  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.
>
> > >>> --
> > >>> Regards
>
> > >>> Paul
>
> > >>> *Paul W. Ford │ Principal*
> > >>> Maven Wave Partners LLC
> > >>> GTalk  +1.312.884.1051 M:+1.312.953.1664
> > >>> paul.f...@mavenwave.com
>
> > >>> Please check out our Fusion 
> > >>> Blog for
> > >>> more insights
>
> > >>>  --
> > >>> 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.
>
> > > --
> > > Regards
>
> > > Paul
>
> > > *Paul W. Ford │ Principal*
> > > Maven Wave Partners LLC
> > > GTalk  +1.312.884.1051 M:+1.312.953.1664
> > > paul.f...@mavenwave.com
>
> > > Please check out our Fusion 
> > > Blog for
> > > more insights
>
> > >  --
> > > You received this message because you are subscribed to the 

Re: [appengine-java] Abridged summary of google-appengine-java@googlegroups.com - 10 Messages in 5 Topics

2012-02-15 Thread Mike Lawrence
Does the GAE File API support GAE projects created with a Google Apps account?

http://code.google.com/appengine/docs/java/googlestorage/overview.html
 says:
   Copy the value under Service Account Name. This is the service
account name of your application, in the format
application...@appspot.gserviceaccount.com. If you are using an App
Engine Premier Account, the service account name for your application
is in the format
application-id.example@appspot.gserviceaccount.com.

When I visit this page:
https://code.google.com/apis/console/b/0/#project:476894375364

and try to add this user (the account I'm trying to access the file api from):
   apptes...@appspot.gserviceaccount.com

I get the error:
   User apptes...@appspot.gserviceaccount.com may not be added to
project "API Project". Only members from domain systemsplanet.com (my
Google Apps Domain) may be added.

Sincerely,  Mike Lawrence

Blessed are the flexible, for they will never get bent out of shape

-- 
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: Handling ISO-8559-1 encoded parameter values in request

2012-02-15 Thread Ronoaldo José de Lana Pereira
Hello,

You may find something usefull here: 
http://stackoverflow.com/questions/3278900/httpservletrequest-setcharacterencoding-seems-to-do-nothing.
 
I suggest you to try setting the encoding of the request prior to 
processing any information, it may works for the query string too.

If that wont works, It seem's that this is configured in the servlet 
container. Maybe you can try reading the whole QueryString 
(req.getQueryString()) and see if you can convert it using one of those 
methods: 
http://stackoverflow.com/questions/655891/converting-utf-8-to-iso-8859-1-in-java-how-to-keep-it-as-single-byte
 
(just change the from/to encodings to match your case ISO -> UTF8).

Please post here if it works.

Hope this helps,

-Ronoaldo

-- 
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/-/4Rq2qMopHrEJ.
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.