Author: norman Date: Fri Jun 10 05:21:57 2011 New Revision: 1134190 URL: http://svn.apache.org/viewvc?rev=1134190&view=rev Log: Move the persistence annotations processing to the server-context.xml as it is possible that someone don't use jpa mailbox and still use jpa domainlist etc.
Modified: james/server/trunk/container-spring/src/main/config/james/context/james-mailbox-jpa-context.xml james/server/trunk/container-spring/src/main/config/james/context/james-server-context.xml Modified: james/server/trunk/container-spring/src/main/config/james/context/james-mailbox-jpa-context.xml URL: http://svn.apache.org/viewvc/james/server/trunk/container-spring/src/main/config/james/context/james-mailbox-jpa-context.xml?rev=1134190&r1=1134189&r2=1134190&view=diff ============================================================================== --- james/server/trunk/container-spring/src/main/config/james/context/james-mailbox-jpa-context.xml (original) +++ james/server/trunk/container-spring/src/main/config/james/context/james-mailbox-jpa-context.xml Fri Jun 10 05:21:57 2011 @@ -27,7 +27,6 @@ Mailbox JPA --> - <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/> <bean id="jpa-mailboxmanager" class="org.apache.james.mailbox.jpa.openjpa.OpenJPAMailboxManager" init-method="init"> <constructor-arg index="0" ref="jpa-sessionMapperFactory"/> <constructor-arg index="1" ref="authenticator"/> Modified: james/server/trunk/container-spring/src/main/config/james/context/james-server-context.xml URL: http://svn.apache.org/viewvc/james/server/trunk/container-spring/src/main/config/james/context/james-server-context.xml?rev=1134190&r1=1134189&r2=1134190&view=diff ============================================================================== --- james/server/trunk/container-spring/src/main/config/james/context/james-server-context.xml (original) +++ james/server/trunk/container-spring/src/main/config/james/context/james-server-context.xml Fri Jun 10 05:21:57 2011 @@ -39,6 +39,11 @@ <bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor"> <property name="order" value="3" /> </bean> + + <!-- + Enable support for Persistence Annotations processing. + --> + <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/> <!-- Spring "Bean-Post-Processor" for LogEnabled interface. --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org