> <persistence-unit name="NAME" transaction-type="${transtype}">
>
   ${dbconfig}
>
> </persistence>

Try something along these lines:
<profile>
  <id>production</production>
  <properties>
    <transtype>JTA</transtype>
    
<dbconfig><![CDATA[<jta-data-source>JNDI_NAME_FOR_MY_DATASOURCE</jta-data-source>]]</dbconfig>
  </properties>
</profile>

And yes, you'd need to put the whole <property...> section in a CDATA
node for your unit test version.

Having said all that, I think I'd look for another option. Surely
OpenJPA would allow you to specify an alternate P-U config file so you
could just include both and then instruct OpenJPA which one to use.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to