# OpenEJB jndi properties
  # see: http://openejb.apache.org/3.0/embedded-configuration.html

  # set the initial context factory
  java.naming.factory.initial=org.apache.openejb.client.LocalInitialContextFactory

  # Corresponds to JBoss JNDI lookup format in ${app.jndi.pattern.test} property
  openejb.jndiname.format={deploymentId}/{interfaceType.annotationName}

  # Multiple ejb's in classpath, 
  # see: http://openejb.apache.org/3.0/system-properties.html
  openejb.deployments.classpath.ear=true

  # Prefixing configuration files, e.g. persistence.xml ==> openejb.persistence.xml,
  # see: http://openejb.apache.org/3.0/alternate-descriptors.html
  openejb.altdd.prefix=openejb

  # Database connection (same as *-ds.xml in JBoss), filtered using properties from POM during build
  ${ds.jndi.name} = new://Resource?type=DataSource
  ${ds.jndi.name}.JdbcDriver=${ds.driver.class.test}
  ${ds.jndi.name}.JdbcUrl=${ds.connection.url.test}
  ${ds.jndi.name}.username=${ds.user.name.test}
  ${ds.jndi.name}.password=${ds.password.test}
  ${ds.jndi.name}.JtaManaged=true

  ${ds.jndi.name}Unmanaged = new://Resource?type=DataSource
  ${ds.jndi.name}Unmanaged.JdbcDriver=${ds.driver.class.test}
  ${ds.jndi.name}Unmanaged.JdbcUrl=${ds.connection.url.test}
  ${ds.jndi.name}Unmanaged.username=${ds.user.name.test}
  ${ds.jndi.name}Unmanaged.password=${ds.password.test}
  ${ds.jndi.name}Unmanaged.JtaManaged=false

  # Overriding Persistence Unit (as an alternative to maintaining two persistence units)
  # see: http://cwiki.apache.org/OPENEJBx30/configuring-persistenceunits-in-tests.html 
  ${pu.name}.hibernate.dialect=${ds.hibernate.dialect.test}
  ${pu.name}.hibernate.hbm2ddl.auto=${pu.hibernate.hbm2ddl.auto.test}
  ${pu.name}.hibernate.default_batch_fetch_size=${pu.hibernate.default_batch_fetch_size.test}
  ${pu.name}.hibernate.show_sql=${pu.hibernate.show_sql.test}
  ${pu.name}.hibernate.transaction.manager_lookup_class=${pu.hibernate.transaction.manager_lookup_class.test}