Hello,
when trying to define the persistence unit as property in blueprint, the
property is not resolved when used in the jpa namespace:
<cm:property-placeholder persistent-id="persistence">
<cm:default-properties>
<cm:property name="persistenceunitname"
value="default_persistenceunit" />
</cm:default-properties>
</cm:property-placeholder>
<bean id="dbManager"
class="DBManagerImpl"
scope="singleton" init-method="init">
<jpa:context property="entityManager"
unitname="${persistenceunitname}" />
<tx:transaction method="*" value="Required"/>
</bean>
...
I saw some question for the same topic, but the solution was to use
datasources. In my case, I'd like to use different persistence units to be
able to access different databases (and some of the persistence unit
settings are DB specific).
I'm using version 1.0.2 of the JPA container and 1.0.4 for the JPA
Container Blueprint integration.
Is this a bug in Aries JPA, or would that be a new feature to make the
property resolution work?
Best Regards,
Jochen