# OpenEJB jndi properties # see: http://openejb.apache.org/3.0/embedded-configuration.html # see: https://blogs.apache.org/openejb/entry/example_common_troubleshooting_flags # set the initial context factory # NOTE: It is important that this line is present in the jndi.properties file. # Seam does not work without this line! java.naming.factory.initial=org.apache.openejb.client.LocalInitialContextFactory # Corresponds to JBoss JNDI lookup format in ${app.jndi.pattern.test} property # see: http://openejb.apache.org/3.0/jndi-names.html 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 # Uncomment next two lines to get a more detailed log output, see: http://openejb.apache.org/logging.html #log4j.appender.C.layout=org.apache.log4j.PatternLayout #log4j.appender.C.layout.ConversionPattern=[%d{HH:mm:ss,SSS}] %5p (%F:%L) - %m%n # Database connection (same as *-ds.xml in JBoss), filtered using properties from filter-*.properties 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}