Wednesday, February 22, 2012

Re: EntityProxy efficiency

I never used JPA or JDO with RF, and I don't know those technologies that much, but I think what you need is the "open session in view" pattern [1] to maintain a single session for the whole HTTP request, and then use one transaction per service method.

[1] see http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/orm/hibernate4/support/OpenSessionInViewFilter.html for instance.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/MohMnZplCoIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment