Skip to content

Provide PersistenceAnnotationBeanPostProcessor without JNDI dependency. [SPR-6679] #11345

@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits cef44f6

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions