[appengine-java] data in xml format from data store

2010-11-29 Thread pac
In a website I need to provide a feature to get data in xml format i.e. some url e.g. http://www.mysite.com../data.xml I think in gae I can not create a file. Any suggestions to create such feature to get data from data store in this way? Data store will have large number of records, so in

[appengine-java] Re: data in xml format from data store

2010-11-29 Thread Didier Durand
Hi, To emulate files, you have to use the Blob object in the datastore to store such xml content: see com.google.appengine.api.datastore.Blob in http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Core_Value_Types Blob has a limited max size: 1 Mbyte. So, you can use a

Re: [appengine-java] Re: data in xml format from data store

2010-11-29 Thread Stephen Johnson
It sounds like you want to send a xml file to the client not upload an xml file. If so, you can use the standard XML document classes (see the org.w3c.dom package). Build up your document then you can convert it to a String using an empty Transform (see the javax.xml.transform and javax.xml

[appengine-java] Re: data in xml format from data store

2010-11-29 Thread pac
A client will download a xml file instead of uploading. Records will be created (or updated, deleted) in a table/kind over time and all records from a kind need to be downloaded in form of a xml file, I hope I am explaining the issue bit more clearly. I am not sure if I could make use of

[appengine-java] Re: data in xml format from data store

2010-11-29 Thread pac
Sorry, did not see your post earlier Stephen. I was not aware of this 10 minute feature to create a file, I will look into. File size will be greater then 10MB, it is an existing website which I am thinking to port to gae, file size already gets around 12MB or so. So I guess more than 10MB

[appengine-java] Re: Session Management on GAE

2010-11-29 Thread Stefan
Hi Alexander, Google also provides a servlet to help with deleting stale session info. Have a look at this thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/4f0d9af1c633d39a Best regards, Stefan On 23 Nov., 18:06, Alexander Arendar alexander.aren...@gmail.com

[appengine-java] no async queries on AsyncDatastoreService for 1.4.0?

2010-11-29 Thread Luke
i was taking a look at the 1.4.0 javadoc for AsyncDatastoreService. i see the get, put and delete operations return a Future, but the prepare methods return a naked PreparedQuery object, and it doesn't look like PreparedQuery has any async get methods. does the AsyncDatastoreService not support

[appengine-java] updating object with owned one to one relationship.

2010-11-29 Thread clement boret
hello. I have a problem when trying to update an object that has already been saved in the dataStore An Employee and Contactnfo. One employee has a contactInfo... //

Re: [appengine-java] Re: data in xml format from data store

2010-11-29 Thread Stephen Johnson
I believe the 30 second limit is imposed on the time it takes for your servlet to finish. Thus, if your servlet finished generating and returning the file to the AppEngine infrastructure in 29 seconds, then I think you will be safe even though it might take another minute or two for Google's

Re: [appengine-java] no async queries on AsyncDatastoreService for 1.4.0?

2010-11-29 Thread Max Ross (Google)
Hi Luke, First the awesome news: As of 1.4.0, many queries are implicitly asynchronous. When you call PreparedQuery.asIterable() or PreparedQuery.asIterator(), we initiate the query in the background and then immediately return. This lets you do work while the first batch of results is being

[appengine-java] Re: 1.4.0 Preview and Channel API

2010-11-29 Thread Scott
Is the HTML snippet the full client code? If so you need to call the createChannel service from the client prior to opening the socket. Also what does the ?key=dev do for you in your script import? Good luck! Scott On Nov 29, 7:20 am, James M jmort...@gmail.com wrote: Hi Scott, I'm trying to

Re: [appengine-java] Re: datanucleus-appengine

2010-11-29 Thread Ikai Lan (Google)
We haven't abandoned JDO/JPA, but we may emphasize the low-level APIs going forward. You'll always get low-level features first. The mismatch between datastore features and relational database features is starting to really grow. One thing we'll plan on doing is to work more closely with

[appengine-java] 1.4.0 Preview + javax.xml.rpc.ServiceException

2010-11-29 Thread Shaun Clark
I am getting: javax.xml.rpc.ServiceException: access denied (java.lang.RuntimePermission modifyThreadGroup) at com.google.api.adwords.lib.AdWordsVersion $AdWordsVersionV201008.setHeaders(AdWordsVersion.java:313) at

[appengine-java] After a bit more searching

2010-11-29 Thread Rich
I found this http://someprog.blogspot.com/2010/08/google-app-engine-can-not-find-tag.html . This will fix your problem. Not sure why the goog-appengine-plugin didn't pull it in but use those directions. And a thanks to Sergey Vasilyev for his first blog post and answer to this question! --

Re: [appengine-java] calling blobstore from inside the webapp

2010-11-29 Thread A. Stevko
There are numerous posts concerning the differences between the dev and prod blobstore behaviors. Perhaps this is your issue: http://code.google.com/p/googleappengine/issues/detail?id=3273 http://code.google.com/p/googleappengine/issues/detail?id=3273Another resource to check are the blobstore

[appengine-java] Re: Blobstore and JUnit?

2010-11-29 Thread Brad
Simply mock out the blobstore service using something like mockito: http://mockito.org/ On Nov 28, 9:13 am, Gal Dolber gal.dol...@gmail.com wrote: Hi, I am having problems testing the blobstore. I did the initialization:             LocalBlobstoreServiceTestConfig blob =

[appengine-java] Re: 1.4.0 Preview and Channel API

2010-11-29 Thread James M
Thanks for the tip. I added the call to the controller to create the ChannelService. However, what's odd is that my implementation is like your first attempt. I had to use the channelId returned from ChannelService in the JavaScript when opening the socket. The other odd thing I'm seeing is

[appengine-java] Re: Channel API ?

2010-11-29 Thread James M
Hi Robert, Check out this thread here. We were able to get it working, but only with polling. We've yet to figure out the comet part of things: http://groups.google.com/group/google-appengine-java/browse_thread/thread/19f250b1ff0e4342 James On Nov 24, 7:41 am, Roberto Saccon

[appengine-java] Re: calling blobstore from inside the webapp

2010-11-29 Thread Mike
Zsombor, Follow the implementation outlined in this excellent blog post. It explains how to upload to blobstore from within your app. Good luck, Michael Weinberg http://jeremyblythe.blogspot.com/2010/10/manipulating-images-in-blobstore.html On Nov 28, 8:08 am, Zsombor gzsom...@gmail.com

Re: [appengine-java] calling blobstore from inside the webapp

2010-11-29 Thread Jeremy Blythe
I have also written a blog post here http://jeremyblythe.blogspot.com/2010/10/manipulating-images-in-blobstore.html with code samples. On 30 Nov 2010, at 01:06, A. Stevko andy.ste...@gmail.com wrote: There are numerous posts concerning the differences between the dev and prod blobstore

Re: [appengine-java] Re: calling blobstore from inside the webapp

2010-11-29 Thread Jeremy Blythe
Whoops, posted at the same time!! Glad you found my blog post useful. Jeremy. On 30 Nov 2010, at 06:00, Mike weinbe...@gmail.com wrote: Zsombor, Follow the implementation outlined in this excellent blog post. It explains how to upload to blobstore from within your app. Good luck,