Ok - that works.  I'll get entityManagerFactory to use a bean for dataSource, instead of using persistenceUnit.

Michael

----- Original Message -----
From: "Drew Wills" <notifications@github.com>
To: "Jasig/SimpleContentPortlet" <SimpleContentPortlet@noreply.github.com>
Cc: "Michael Gillian" <mgillian@unicon.net>
Sent: Monday, June 2, 2014 4:37:22 PM
Subject: Re: [SimpleContentPortlet] Ip 74 (#8)



In src/main/webapp/WEB-INF/context/applicationContext.xml: > @@ -67,17 +67,26 @@
>          p:order="10" p:cache="true" p:prefix="/WEB-INF/jsp/" p:suffix=".jsp"/>
>  
>      <!-- Attachments related configuration -->
> -    <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean" >
> -        <property name="persistenceUnitName" value="AttachmentsDb"/>
> +    <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
> +        <property name="jpaVendorAdapter" ref="jpaVendorAdapter" />
> +        <property name="persistenceUnitName" value="AttachmentsDb" /> 

I've only scratched the surface of the docs, but is there a chance to use the dataSource property -- http://docs.spring.io/spring/docs/3.1.1.RELEASE/javadoc-api/org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBean.html#setDataSource(javax.sql.DataSource) -- instead of persistenceUnitName, so we can define the connection pool as a spring bean? 

— 
Reply to this email directly or view it on GitHub .