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-12 Thread bryce cottam
hmmm I think I may have installed the patch wrong perhaps. I still get the same error. I'm using the same code I sent you for the test case Max. Do you see any tell-tale signs in here that indicate I've mis-configured something? I have datanucleus-appengine-1.0.4.1-RC2.jar on my classpath

[appengine-java] google guice @transactional at service layer

2009-12-12 Thread asianCoolz
1.normally on spring, we will use @transactional at service layer for concurency control, if we use google guice, is there similar annotation and does it suported in GAE? 2. is google guice all classes supported in GAE? i about to start look at google guice, as i find some of the classes in spring

[appengine-java] Why not use integer primary keys?

2009-12-12 Thread Hershiv Haria
Hi all, I understand this is a relatively basic question, but I have been searching around and can't find an answer that explains it. According to http://www.datanucleus.org/products/accessplatform/jdo/types.html there shouldn't be any problem with using an int as a PK, but when I use it in my

Re: [appengine-java] Why not use integer primary keys?

2009-12-12 Thread Shawn Brown
Error in meta-data for my.syncdroidserver.Box.boxID: Unsupported primary key type: int http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group.

[appengine-java] Pattern for eCommerce Development on GAE

2009-12-12 Thread gopoto
Hi, I try to develop an eCommerce solution on GAE for Java. The solution has to manage up to 100 000 products. Customers can search by different ways like by theme, category, brand, price as you can do for example with Amazon. I have some difficulties to find a good way to implement the fact

[appengine-java] Re: JDO bug (entity groups and double update)

2009-12-12 Thread Ratamovic
Alright I just didn't realize datastore datanucleus plugin was the responsibility of the google team. I created some issues: http://code.google.com/p/googleappengine/issues/detail?id=2501 http://code.google.com/p/googleappengine/issues/detail?id=2502

[appengine-java] Logging in JUnit tests

2009-12-12 Thread a.maza
Hello, I have currently some troubles with logging in junit tests. In general, I have the following questions: -) According to the manuals, I could basically use any log framework which logs to System.out and System.err, respectively (e.g., log4j). However, for having a fine grained selection

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

2009-12-12 Thread Philippe Marschall
On Dec 5, 7:45 pm, Rusty Wright rwright.li...@gmail.com wrote: Is it possible to use the GAE Eclipse plugin if you're using Maven?  Maven uses a different directory structure so I'm guessing that's why the GAE plugin doesn't recognize the project as a GAE web app. Google seems determined

[appengine-java] Re: Logging in JUnit tests

2009-12-12 Thread Philippe Marschall
On Dec 12, 2:50 pm, a.maza andr.m...@gmail.com wrote: Hello, I have currently some troubles with logging in junit tests. In general, I have the following questions: -) According to the manuals, I could basically use any log framework which logs to System.out and System.err, respectively

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

2009-12-12 Thread David Fuelling
Thanks Max, that fixed my problem with the inheritence. One other question: What version of the ORM code is currently included in the 1.2.8 SDK? I only ask because I noticed that the release notes for ORM VERSION 1.0.4 Final includes Support datastore cursors, and am wondering if that is

[appengine-java] Statistics and JUnit

2009-12-12 Thread David Fuelling
I'm running some JUnit tests to excercise my data-layer classes using the TestEnvironment patter implementing ApiProxy.Environment (i.e., so I can test my code's datastore operations inside of JUnit). The tests run fine, except when I try to interact with the Statistics from inside of a test.

[appengine-java] Re: FetchType.Lazy produces JDODetachedFieldAccessException while FetchType.EAGER does not...

2009-12-12 Thread David Fuelling
Sorry for not clarifying -- my example is all JPA, and the import statements in my code imply the following: @javax.persistence.OneToOne @javax.persistence.Embedded On Dec 11, 5:06 am, Rusty Wright rwright.li...@gmail.com wrote: Are you mixing ORMs? �...@onetoone is JPA and @Embedded is JDO?  

[appengine-java] LonRe Wang wants to share their location with you on Google Latitude

2009-12-12 Thread LonRe Wang
LonRe Wang (lonre...@gmail.com) wants to start sharing their location with you on Google Latitude. You need to sign in to Latitude with a Google Account (eg, @gmail.com) and invite LonRe Wang. To get started, or to learn more about Latitude, click the link below. To get Google Latitude on

[appengine-java] LonRe Wang wants to share their location with you on Google Latitude

2009-12-12 Thread LonRe Wang
LonRe Wang (lonre...@gmail.com) wants to start sharing their location with you on Google Latitude. You need to sign in to Latitude with a Google Account (eg, @gmail.com) and invite LonRe Wang. To get started, or to learn more about Latitude, click the link below. To get Google Latitude on

[appengine-java] Re: Why not use integer primary keys?

2009-12-12 Thread Hershiv Haria
On Dec 12, 11:32 am, Shawn Brown big.coffee.lo...@gmail.com wrote: Error in meta-data for my.syncdroidserver.Box.boxID: Unsupported primary key type: int http://code.google.com/appengine/docs/java/datastore/creatinggettinga... How long have these restrictions been in place? I have created

Re: [appengine-java] Re: Why not use integer primary keys?

2009-12-12 Thread Jeff Schnitzer
H, some issues surrounding this: * As you've probably figured out, the datastore natively only supports two types of id, Long and String * Only Long will autogenerate * There is no guarantee that autogenerated values will be monotonic or even valued in the low-order 4 bytes. So, if you are

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-12 Thread Rusty Wright
Yep, that was my reaction, definitely not really good enough. I'm using Spring and I've heard that it makes apps slow to start with all of its instantiating and wiring things together. I've been meaning to search or post a query on the Spring forums about things I could do to

Re: [appengine-java] Re: Spring MVC with annotations

2009-12-12 Thread Rusty Wright
rc3 runs on gae for me (finally). The error I was getting previously, NoClassDefFoundError: org/springframework/core/convert/support/DefaultConversionService was because I was using Spring Security 3.0.0.RC1; rc3 needs the latest Spring Security, 3.0.0.RC2. asianCoolz wrote: any update on

Re: [appengine-java] Re: Spring MVC with annotations

2009-12-12 Thread Rusty Wright
I should say that Spring 3.0.0.RC3 needs the latest version of any and all Spring projects you may be including; it's not just Spring Security. Rusty Wright wrote: rc3 runs on gae for me (finally). The error I was getting previously, NoClassDefFoundError:

Re: [appengine-java] google guice @transactional at service layer

2009-12-12 Thread Rusty Wright
Very good question; I'd like to know the answer to that as well. I'm using Spring's @transaction stuff. I tweaked it slightly to make read-only and read/write annotations; @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Transactional( readOnly =

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

2009-12-12 Thread Rusty Wright
I'm getting google stuff from repos. Here's my dependency pom for gae stuff (see http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-grouping-dependencies/): ?xml version=1.0 encoding=ISO-8859-1 ? project xmlns=http://maven.apache.org/POM/4.0.0;

Re: [appengine-java] Re: Logging in JUnit tests

2009-12-12 Thread Rusty Wright
I'm using slf4j and logback, and the slf4j adapters for jakarta commons logging etc., that re-route things through slf4j. Here's my maven dependency pom so you can see what I'm using. After that is my logback.xml file (everything goes to the console). If you're using maven, be sure and do a

Re: [appengine-java] Statistics and JUnit

2009-12-12 Thread Rusty Wright
I think the stats only work on google's servers, not your desktop (or test environment). David Fuelling wrote: I'm running some JUnit tests to excercise my data-layer classes using the TestEnvironment patter implementing ApiProxy.Environment (i.e., so I can test my code's datastore

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-12 Thread Eduardo Ramírez
On Sat, Dec 12, 2009 at 20:06, Rusty Wright rwright.li...@gmail.com wrote: I'm using Spring and I've heard that it makes apps slow to start with all of its instantiating and wiring things together. Have you tried to lazy load your beans? In my local tests I have a very fast startup.

Re: [appengine-java] Re: Why not use integer primary keys?

2009-12-12 Thread Shawn Brown
Well this won't help to use id as an array index but...  * As you've probably figured out, the datastore natively only supports two types of id, Long and String  * Only Long will autogenerate Key will autogenerate too won't it! and from the api: long

[appengine-java] Re: Pattern for eCommerce Development on GAE

2009-12-12 Thread andy.booth
Hi I'm similarly trying to implement faceted/attribute search with Google App Engine for blog entries (months, tags facets) and products (product attributes, category, price facets). My current approach, but I've not done too complex examples, is to return broad result sets from the datastore

[appengine-java] How to define parent persistent class without identity field

2009-12-12 Thread Yegor
Hi, Glad to see some reasonable inheritance support in Datastore. However, I'm a little puzzled. I am trying to setup a simple persistent class hierarchy, in which the base class defines some standard audit fields shared by all concrete persistent classes: public abstract class AbstractEntity

[appengine-java] Re: where I should put the Task Queue code?

2009-12-12 Thread John V Denley
Yes, I would like a real example of how to do this too, I get that we need to use a URL to accept the request to do something, but where does the URL start executing code. obviously its not going to be at the onModuleLoad entry point. Thanks, John On Nov 11, 1:23 am, edarroyo

Re: [appengine-java] Re: where I should put the Task Queue code?

2009-12-12 Thread Rusty Wright
The docs say The default queue will call the request handler at the URL /worker ... So it sounds to me that if you were, for example, using Spring MVC, and had a Spring controller with @Controller @RequestMapping(/worker) public final class WorkerController { @RequestMapping(method =

[appengine-java] Re: google guice @transactional at service layer

2009-12-12 Thread asianCoolz
@Rusty, can you explain any specify reason why you tweak it for bigtable? can elaborate? -- 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

[appengine-java] Re: Fast MVC Framework for GAE?

2009-12-12 Thread Brian
I assume they aren't doing a full JVM startup every warm up, are they? Seems they could load it into the JVM memory.. then page it out to disk or something. Somehow has to be a way to keep it scalable to many 1000s of users, while not taking 7 seconds to wake up On Dec 12, 8:20 pm, Rusty Wright

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-12 Thread Rusty Wright
My guess is that they have some sort of soft undeploy which tells jetty to purge the app's code and data from its memory (after some period of inactivity). Then when a request arrives jetty re-loads the app (meaning a full restart of the app). Each jetty might be supporting multiple apps.

[appengine-java] strange redirection

2009-12-12 Thread Vik
Hie All of a sudden when i type http://www.sakshum.com it redirects me to http://sites.google.com/a/sakshum.com/www/ I am not sure what changed or went wrong. This was working fine few days back and i did not made any changes anywhere. Please guide how to fix this. Thankx and Regards Vik

[appengine-java] Re: Loading request time

2009-12-12 Thread jd
The logs show that Guice is taking 5 seconds to build the Injector. I have tried setting Guice to development mode in the hope that it would start up faster but it takes about the same as production. Does anyone else find Guice slow to start? On top of this delay it is taking 7 seconds before