-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Marcel Overdijk opened SPR-6679 and commented
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor currently entends JndiLocatorSupport and catches a couple of NamingException's.
This causes problem when using the PersistenceAnnotationBeanPostProcessor on Google App Engine.
So I think it would be good to refactor out common stuff and provide a PersistenceAnnotationBeanPostProcessor (default; also supports JNDI) and a ContextOnlyPersistenceAnnotationBeanPostProcessor. The ContextOnlyPersistenceAnnotationBeanPostProcessor could also be useful in other non-JEE environments where JNDI would not be supported.
I've attached my own ContextOnlyPersistenceAnnotationBeanPostProcessor which is a copy of the PersistenceAnnotationBeanPostProcessor but without JNDI support and dependencies.
Also see these articles realted to this problem on Google App Engine:
http://blog.smart-java.nl/blog/index.php/2009/06/05/getting-on-the-cloud/
http://objectuser.wordpress.com/2009/05/19/spring-jpa-in-google-app-engine/
Affects: 3.0 GA
Attachments:
Issue Links:
- AnnotationContextUtils.registerAnnotationConfigProcessors() register bean definitions for bean processors even if such beans exist in parent registry, then singletons are removed from config [SPR-6631] #11297 AnnotationContextUtils.registerAnnotationConfigProcessors() register bean definitions for bean processors even if such beans exist in parent registry, then singletons are removed from config
Referenced from: commits cef44f6