[appengine-java] App Engine and Google Apps

2010-09-08 Thread Vishal Singh
This is my use case. We are building a health care solution using App
Engine. The idea is people would be able to add the health care app
engine solution in their Google App Domain. The health care app engine
solution will be able to differentiate there request from different
Google Apps and store data using the new multi-tenancy NameSpace
features. In short one deployment being accessed by multiple Google
Apps and data partitioned according to name space. Is this possible ?

As I understand one would need to get openid authentication working
for Google Apps as Gmail Option or Google Apps authentication will not
help me in my above mentioned scenario.

If one gets open id working for Apps can there be one deployment of
app engine serving multiple Google Apps user ? A clear answer will
help

-- 
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 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] NameSpaceManager getGoogleAppsNamespace()

2010-09-08 Thread Vishal Singh
What is NameSpaceManager.getGoogleAppsNamespace()  expected to print.
I accessed my application using a Google App account and was
expecting  NameSpaceManager.getGoogleAppsNamespace()  to print my
Google app domain but instead it was giving a empty string.
My authentication mechanism was to use Google Apps.

Am I missing something.

Vishal

-- 
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 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] GWT form upload using BlobstoreService App Engine

2010-06-14 Thread Vishal Singh
 I am using GWT and Google App Engine Java for my application. I have
a profile screen where user enters profile information like name, age
and address, saves it and gets success or failure message. I developed
this initial application using GWT-RPC and it worked fine. I had a new
requirement where I have to store image of the user. I am using
BlobstoreService to store images. This has created complications in
the flow. I had to use FormPanel as it is the only way to do a
FileUpload in GWT. The BlobStore service servlet expects a redirect on
completion. As a result it cannot now return any status back to my GWT
application once the profile is saved. Is there easy to store images
using GWT along with other form fields and show a status message back
to user once the profile is saved.

-- 
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 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: Uploading to blobstore gives OutOfMemoryError

2010-06-11 Thread Vishal Singh
I have the same issue.

On Jun 4, 11:51 am, eighty  wrote:
> +1
>
> On Jun 2, 4:14 pm, Jean Hsu  wrote:
>
>
>
> > Hi all,
>
> > I am trying to set up a basic file upload to blobstore,  but I get
> > this OutOfMemoryError:
>
> > WARNING: Error for /_ah/upload/
> > aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
> > java.lang.OutOfMemoryError: Java heap space
> >         at java.util.Arrays.copyOf(Arrays.java:2786)
> >         at 
> > java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
> >         at
> > javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:
> > 316)
> >         at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186)
> >         at 
> > javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
> >         at
> >com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa 
> >dBlobServlet.java:
> > 135)
> >         at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
> > $000(UploadBlobServlet.java:72)
> >         at com.google.appengine.api.blobstore.dev.UploadBlobServlet
> > $1.run(UploadBlobServlet.java:100)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at
> > com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS 
> > ervlet.java:
> > 98)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> >         at 
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > 511);
>
> > I used the Memory Analyzer on Eclipse and it said that the memory leak
> > suspect is QueuedThreadPool.  I found this information about a memory
> > leak bug:
>
> >http://jira.codehaus.org/browse/JETTY-1188
>
> > How can I figure out what release of jetty is running locally?  It
> > looks like they fixed this in version 6.1.23:
>
> >http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160&vers...
>
> > Has anyone else had this issue?
>
> > Thanks,
> > Jean

-- 
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 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: Java Uploader

2010-05-31 Thread Vishal Singh
It will be good to have a official Java Uploader.

On May 18, 10:19 pm, "Ikai L (Google)"  wrote:
> Also, I should mention that in general, use HTTP POST for anything
> destructive. An HTTP GET should not change data. It's too easy for a user to
> reload a page without a warning or a web crawler to accidentally invoke some
> action.
>
>
>
>
>
> On Tue, May 18, 2010 at 8:59 AM, Erich  wrote:
> > Thanks for the tips Ikai! I'll try stuffing the parameters into a post
> > and I'll make it a servlet instead.
>
> > When I've made the changes I'll post my work for others to inspect and
> > use as they wish.
>
> > Thanks,
> > Erich
>
> > On May 17, 2:04 pm, "Ikai L (Google)"  wrote:
> > > Use a POST - the 2000 character limit is there because some browsers
> > can't
> > > handle URLs that long. It might also be easier to write your code in a
> > > servlet and not a JSP. Can you post it for people to look at?
>
> > > On Sun, May 16, 2010 at 2:11 PM, Erich  wrote:
> > > > Hi All.
>
> > > > I'm completely illiterate in Python, so I've created a workaround in
> > > > Java to upload Java Object to the datastore.
>
> > > > I have a deployed JSP which receives data and uses reflection and
> > > > various magic to take the incoming URL, create the objects dynamically
> > > > and add them to the store. I've built my uploader and receiver to take
> > > > advantage of bulk operations to save URL and datastore calls.
>
> > > > There are some serious drawbacks to this method:
> > > > 1 - The maximum URL length before a 414 error is 2000. This really
> > > > limits how many objects can be passed per URL.
> > > > 2 - I haven't figure out a way to do this using securely. (without
> > > > exposing the JSP publicly)
>
> > > > The good things about it:
> > > > 1 - All Java (no installing a second google app program and mucking
> > > > around in Python)
> > > > 2 - No need to create intermediate files on your system. Plain Object -
> > > > > Datastore
>
> > > > I would like to improve this if possible. Does anyone know how the
> > > > python uploader works? Is a special URL or connection I can make to
> > > > pass more data or do it securely?
>
> > > > Thanks,
> > > > Erich
>
> > > > --
> > > > 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 this group, send email to
> > > > google-appengine-java+unsubscr...@googlegroups.com > > >  unsubscr...@googlegroups.com>
> >  > %252bunsubscr...@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > --
> > > Ikai Lan
> > > Developer Relations, Google App Engine
> > > Twitter:http://twitter.com/ikai
> > > Delicious:http://delicious.com/ikailan
>
> > > 
> > > Google App Engine links:
> > > Blog:http://googleappengine.blogspot.com
> > > Twitter:http://twitter.com/app_engine
> > > Reddit:http://www.reddit.com/r/appengine
>
> > > --
> > > 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 this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > > For more options, visit this group athttp://
> > 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-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> Ikai Lan
> Developer Relations, Google App Engine
> Twitter:http://twitter.com/ikai
> Delicious:http://delicious.com/ikailan
>
> 
> Google App Engine links:
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/appengine
>
> --
> 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 this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://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-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubs