I just checked in some better Seam Managed PC integration with Spring. Here is a list of some of the features:
* Automatically makes Seam Managed PC available to spring JPA utilities like JpaTemplate and Spring beans using the Spring PersistenceAnnotationBeanPostProcessor.
* If a Seam Managed PC is accessed outside the scope of a Seam Lifecycle.beginCall() (because of a quartz job or something) then this will automatically make a Seam call available scoped to the current spring transaction so that the Seam Managed PC will function without having to make all the Spring beans that use the Seam PC into Seam components.
* It is now possible to use the Seam Managed PC with spring managed Transactions though long lasting conversation scoped PCs will have to manually be flushed rather than allowing allowing Seam to automatically flush the PC at conversation end.
* Paves the way for using a Seam Managed PC in a Spring typical multi tiered application where Seam is the view and Spring makes up the Service Layer.
Please try it out and post comments here: