[appengine-java] Lazy Loading, Spring MVC and PersistenceManager Closing

2009-12-14 Thread Al
Hi I just wanted to confirm that I am using the PersistenceManager in the correct manner... I have a List of a JDO persisted class retrieved in my Spring MVC controller as follows: protected ModelAndView handleRequestInternal(HttpServletRequest req, HttpServletResponse resp) throws Exception {

[appengine-java] Re: eclipse plugin and maven?

2009-12-14 Thread drone
Regarding maven-gae-plugin - for now, the best way to adopt your application is to copy/paste pom parts from one of the example projects (plain jsp or gwt). It's not trivial, but not impossible. Also I tried to document every piece of pom.xml there. However it is true, that this plugin has become

[appengine-java] Re: Cache stops returning results under heavy load

2009-12-14 Thread Martin Caslavsky
There are only several objects in the cache (up to 10), each about 10kb. But there is also a bigger one (about 260kb) which I suspect of source of problems. I am afraid I am not able to reproduce the problem. Dec 7: 2600 pageviews, cache occasionally does not work (at least one time started to

[appengine-java] Re: What does precompilation-enabledtrue/precompilation-enabled do?

2009-12-14 Thread Philip
Whenever I attempt to use pre-compilation I receive a 503 Service Unavailable error and a roll back is made. There is no further explanation in the logs. I made several tries at different times. Unable to update: java.io.IOException: Error posting to URL:

Re: [appengine-java] Slow response time under load

2009-12-14 Thread Jess Evans
Can that be clarified a bit? GAE concurrent requests are capped below 10 and 1/3 sec response time is considered a long request? This doesn't seem realistic compared to non-trivial 3-tier JEE clusters where an installation might support upwards of 100+ open sockets and a looong transaction might

Re: [appengine-java] enhance classes in eclipse plugin

2009-12-14 Thread Jason Parekh
Hi, The string you should put in the ORM properties page is src/, could you try that instead of /src? jason On Fri, Dec 11, 2009 at 8:40 PM, asianCoolz second.co...@gmail.com wrote: my properties-google--orm- already put /src   but i still get the below error i'm using jdk1.6 gae1.2.6.

Re: [appengine-java] Re: What does precompilation-enabledtrue/precompilation-enabled do?

2009-12-14 Thread Toby Reyelts
Please send us your app-id privately (if you don't feel comfortable posting it publicly), and we can investigate. -- Forwarded message -- From: Philip philip.jarr...@gmail.com Date: Mon, Dec 14, 2009 at 10:19 AM Subject: [appengine-java] Re: What does

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2009-12-14 Thread Max Ross (Google)
Datastore cursors is something we hoped to support in 1.2.8 but it didn't quite make it in. There are changes in the ORM code to support it but it's not actually enabled in the datastore back-end. This should be available early next year. On Sat, Dec 12, 2009 at 7:46 AM, David Fuelling

Re: [appengine-java] Cloud2db (Universal database for cloud computing)

2009-12-14 Thread Bhim Khadka
Dear Friends, Thank you very much sent mail .I Recive to your massage is good news . I will most be i like it Bhim Bdr. Khadka Technical Supporter On 12/13/09, Sandeep sandeep.sath...@gmail.com wrote: Dear member, My name is Sandeep Sathaye. I am a founder of a company called Cloud2db.

[appengine-java] Apache Wink Project Supported on App Engine?

2009-12-14 Thread bombaygoose
Hi all, this is probably already discussed but I am slightly confused over what is and what is not supported in Google App Engine. I was looking at Google App Engine's What will play page and it says that JAXB is supported totally in Google Appengine. But on Apache Wink Project Wiki, they have

Re: [appengine-java] Apache Wink Project Supported on App Engine?

2009-12-14 Thread Jeremy Blythe
JAXB wasn't working until about December 10th and version 1.2.8. So I guess the Apache Wink Wiki might not be updated yet. I personally haven't tried Wink but I can vouch for JAXB support. J. On Mon, Dec 14, 2009 at 7:41 AM, bombaygoose bombaygo...@gmail.com wrote: Hi all, this is probably

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
I believe the exception you're getting is the result of having multiple parents for the same type, and unfortunately that bug isn't fixed in this release. The bugs fixed in this release are: - Incorrect exception for multiple fields of same type

Re: [appengine-java] Re: Sending mail with the mail api

2009-12-14 Thread Andrés Cerezo
I think I have problems with the mail.jar,Where have you downloaded the jar files? Thanks. 2009/12/13 GregD greg.du...@gmail.com I'm having the exact same problem. Can someone from gae help out here? On Dec 11, 2:41 pm, Werner Kok werner...@gmail.com wrote: Hi, Any news on this

[appengine-java] any header test for task queues (like X-AppEngine-Cron: true for crons)?

2009-12-14 Thread Prashant
Hi, Requests from the Cron Service contains a HTTP header: X-AppEngine-Cron: true Is there any header added by Task Queue Service??? 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

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread bryce cottam
good point, I kinda got lost in the exceptions I was getting :) I wound up sorting it out by making an embedded class instead of having multiple parent classes for a given child class. Although, it would be nice if a child class could have different parent types. Thanks for all your help Max.

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
Sure, sorry it was such a headache for you. When I've got a fix ready I'll let you know. On Mon, Dec 14, 2009 at 10:57 AM, bryce cottam bcot...@gmail.com wrote: good point, I kinda got lost in the exceptions I was getting :) I wound up sorting it out by making an embedded class instead of

Re: [appengine-java] Lazy Loading, Spring MVC and PersistenceManager Closing

2009-12-14 Thread Rusty Wright
Something to investigate: http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/orm/jdo/support/OpenPersistenceManagerInViewFilter.html Shortened: http://xrl.in/408b Al wrote: Hi I just wanted to confirm that I am using the PersistenceManager in the correct manner... I

Re: [appengine-java] any header test for task queues (like X-AppEngine-Cron: true for crons)?

2009-12-14 Thread Rusty Wright
http://code.google.com/appengine/docs/java/taskqueue/overview.html Then search for the string x- And it documents the 3 headers. Prashant wrote: Hi, Requests from the Cron Service contains a HTTP header: X-AppEngine-Cron: true Is there any header added by Task Queue Service???

[appengine-java] Re: Lazy Loading, Spring MVC and PersistenceManager Closing

2009-12-14 Thread abhi
Hey , why do you want to close the persistance manager here, you are not saving or updating any entities. You should use a static PMF class to get the entity manager und you feed class should have something like this ... class FEED { private static PersistenceManager pm; // this fetches the

[appengine-java] Can we use Enums as fields in Data classes

2009-12-14 Thread dantuluri
Hi, Can we use java enums as @Persistent data fields in the Data classes? There is no tutorial that talks about java enums being used in the Data classes. Thanks, Prasad -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post

[appengine-java] Re: how to save and read large content of strings to GAE JDO object

2009-12-14 Thread noelo
how can I delete the datas which generated when I test my temp application in the local environment(Eclipse + GAE plugin). Cause I had to change some properties of the model,and I met some error of data type unmatch,how can I delete the former local data which was different from the new data

[appengine-java] How to delete temp datas generated while testing the application?

2009-12-14 Thread noelo
How can I delete the datas which generated when I test my temp application in the local environment(Eclipse + GAE plugin). Cause I had to change some properties of the model,and I met some error of data type unmatch,how can I delete the former local data which was different from the new data

Re: [appengine-java] any header test for task queues (like X-AppEngine-Cron: true for crons)?

2009-12-14 Thread Prashant
oh, thanks. i was searching it in Confighttp://code.google.com/appengine/docs/java/config/queue.html page. On Tue, Dec 15, 2009 at 12:48 AM, Rusty Wright rwright.li...@gmail.comwrote: http://code.google.com/appengine/docs/java/taskqueue/overview.html Then search for the string x- And it

[appengine-java] Re: How to delete temp datas generated while testing the application?

2009-12-14 Thread Icarus
You can access the local datastore via the web interface when the app is running. If the app is running at http://local:8080, point browser to http://local:8080/_ah/admin/datastore You will see all your data there... and can edit/delete/clear them. The datastore is saved locally as a .bin file

[appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Todd Vierling
On Dec 14, 11:06 pm, Max Ross (Google) maxr+appeng...@google.com wrote: Ok I've got good news for you.  I need to do more testing but I think different parent types for child objects should work fine as long as you use list-ordering for your one-to-many relationships, which you really ought to

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
JPA _only_ supports list-ordering (the good kind). You can use the @OrderBy annotation to specify the properties to order by, but even if you leave this annotation off it will order by the primary key field. On Mon, Dec 14, 2009 at 8:45 PM, Todd Vierling t...@duh.org wrote: On Dec 14, 11:06

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread bryce cottam
hahaha, no that doesn't sound draconian. I remember reading that the ordering of lists can be a performance hit, I haven't bothered to look too deep into it yet (since I'm only doing a proof of concept right now). I have some questions about it though. For instance, what if I were to order by

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
If you order by anything other than your primary key you'll take a performance and cpu hit on writes but there won't be a penalty on your reads. The reason the JDO default is such a problem is that it adds an implicit property to each child entity containing the position of that entity in its

Re: [appengine-java] Apache Wink Project Supported on App Engine?

2009-12-14 Thread Uncle Chavan
Thanks Jeremy. Let me try that out and post back my findings. On Mon, Dec 14, 2009 at 10:19 AM, Jeremy Blythe jeremybly...@gmail.comwrote: JAXB wasn't working until about December 10th and version 1.2.8. So I guess the Apache Wink Wiki might not be updated yet. I personally haven't tried

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread bryce cottam
do SortedSets suffer from the same problem? In particular, I could define a displayOrder property that was rather sparse (every 10th int or something: 10, 20, 30 etc.) and if I needed to insert something between the first and second (which shouldn't happen very often) I could just set it's

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread Max Ross (Google)
A Set will not suffer from this same problem. The datastore has no way of knowing what the sort function of your SortedSet might be so this will be treated as an unordered Collection as well, but the sort will happen in-memory as the collection is populated. If the collection has an explicit

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-14 Thread bryce cottam
thanks for the info. Getting feedback like this from someone as close to the low level implementation as yourself is priceless! I think I'll be fine using either a SortedSet or a List with the @Order and the datanucleus extension on it for the Activity.ratePlans collection. This set could just

Re: [appengine-java] Apache Wink Project Supported on App Engine?

2009-12-14 Thread Uncle Chavan
Ok. Appengine does support Wink. It took me some time to setup the libraries, but finally got it working. I can see the response coming in both Badgerfish JSON format as well XML. On Mon, Dec 14, 2009 at 10:06 PM, Uncle Chavan bombaygo...@gmail.comwrote: Thanks Jeremy. Let me try that out