the jdo-gae-context.xml is only used for integration tests. Yes, it duplicates the transactions defined in the service layer, but it's configured so that any transaction already started by the service layer will be inherited by the dao layer, so it won't start a new transaction.
The nontransactionalread and nontransactionalwrite in the jdoconfig.xml are there because that's what google distributes. Why, or what they do, I don't know. I just used that part as-is. Ask the google boys the what and why. The transient on the logger is just a habit, in case I were to add a logger to a model/domain/dto object. I don't like declaring the logger as static because then I can't use getClass(); if you use MyClass.class instead then you can't copy and paste that line into another file. cw teoh wrote: > @Rusty > > I tried read your codes, > > 1. you already defined pointcuit for transaction in jdo-gae-context.xml > but will still define @transaction.. inside service layer? that is > duplicate work right? > > 2. why do you define "transient" of logger in service layer? i do > understand transient is not serializable, but what it serves in your > context ... > > 3. in your jdoconfig.xml u set > > <property > name="javax.jdo.option.NontransactionalRead" > value="true" > /> > > <property > name="javax.jdo.option.NontransactionalWrite" > value="true" > /> > > > that mean we are not usnig transaction right? > > -- > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
