openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Louis Bros <louisbros...@hotmail.com>
Subject Re: derby database not created
Date Sat, 11 Aug 2012 01:03:17 GMT
Hi

Thanks very much for the suggestion. I now have this set up.

tomee.xml:
<Resource id="My Test Datasource" type="DataSource">
  JdbcDriver org.apache.derby.jdbc.EmbeddedDriver
  JdbcUrl jdbc:derby:/opt/databases/test_db;create=true
  JtaManaged true
</Resource>

persistence.xml:
<persistence-unit name="test" transaction-type="JTA">
	<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
	<jta-data-source>My Test Datasource</jta-data-source>
	<exclude-unlisted-classes>false</exclude-unlisted-classes>
	<properties>
		<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/>
	</properties>
</persistence-unit>

The database in now being created as expected.

Thanks



--
View this message in context: http://openejb.979440.n4.nabble.com/derby-database-not-created-tp4656789p4656791.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message