[jboss-jira] [JBoss JIRA] Created: (JBAS-6003) jboss.entity.manager.jndi.name in persistence.xml doesn't work
Xavier Jodoin (JIRA)
jira-events at lists.jboss.org
Mon Sep 29 13:54:20 EDT 2008
jboss.entity.manager.jndi.name in persistence.xml doesn't work
--------------------------------------------------------------
Key: JBAS-6003
URL: https://jira.jboss.org/jira/browse/JBAS-6003
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossAS-5.0.0.CR2
Environment: Ubuntu 8.04 java 1.6
Reporter: Xavier Jodoin
Works under jboss 5 CR1 and not under CR2
the jndi name is not bound:
<property name="jboss.entity.manager.jndi.name" value="securityEntityManager"/>
new InitialContext().lookup("securityEntityManager");
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="NAIDsecurity" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/SECURITYDS</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
<property name="hibernate.show_sql" value="false"/>
<property name="jboss.entity.manager.jndi.name" value="securityEntityManager"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
</properties>
</persistence-unit>
</persistence>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list