Seam Equivalent of Spring PersistenceUnitPostProcessor

Posted by shipmaster on Stack Overflow See other posts from Stack Overflow or by shipmaster
Published on 2010-03-11T17:28:08Z Indexed on 2010/03/11 17:29 UTC
Read the original article Hit count: 275

Filed under:
|
|

We have a very comfortable setup using JPA through Spring/Hibernate, where we attach a PersistenceUnitPostProcessor to our entity manager factory, and this post processor takes a list of project names, scans the classpath for jars that contain that name, and adds those jar files for scanning for entities to the persistence unit, this is much more convenient than specifying in persistence.xml since it can take partial names and we added facilities for detecting the different classpath configurations when we are running in a war, a unit test, an ear, etc.

Now, we are trying to replace Spring with Seam, and I cant find a facility to accomplish the same hooking mechanism. One Solution is to try and hook Seam through Spring, but this solution has other short-comings on our environment. So my question is: Can someone point me to such a facility in Seam if exists, or at least where in the code I should be looking if I am planning to patch Seam?

Thanks.

© Stack Overflow or respective owner

Related posts about seam

Related posts about spring