これは、以前の質問Spring と Hibernate - 方言の変更へのフォローアップです。
たとえば、この .xml がある場合
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
<property name="persistenceUnitName" value="SpringMVCTest" />
<property name="jpaProperties">
<props>
<prop key="hibernate.dialect" >
</prop>
</props>
</property>
</bean>
hibernate.dialect
今、 jndi by によって公開されている値に設定したかったのですjdbc/dialect
が、入れる<jee:jndi-lookup jndi-name="jdbc/MyDataSource"/>
と取得しているInvalid content was found starting with element 'jee:jndi-lookup'. No child element is expected at this
ので、タグを入れることができないのではないかと思いますprop
。
このプロパティに jndi リソースを挿入する方法はありますか?