I don't know if this would help you, but I have this spring context configuration:
Code:
<tx:annotation-driven transaction-manager="transactionManager"/>
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
<property name="persistenceUnitName" value="transactions-optional"/>
</bean>
<bean name="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>
Also my application have persistence.xml in the META-INF folder, file which has the connection URL in my case. Which have this:
<persistence-unit name="transactions-optional">
I'm not a Spring expert however it shows that this is how things are wired together.
Also I found this just a while ago:
http://www.slideshare.net/junyuo/spr...p-presentation