[jboss-jira] [JBoss JIRA] Resolved: (JBAS-6003) jboss.entity.manager.jndi.name in persistence.xml doesn't work

jaikiran pai (JIRA) jira-events at lists.jboss.org
Tue Mar 24 08:16:22 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jaikiran pai resolved JBAS-6003.
--------------------------------

    Resolution: Duplicate Issue
      Assignee: jaikiran pai


Fixed in AS 5.0 GA and later versions. Tracked through https://jira.jboss.org/jira/browse/EJBTHREE-1679


> 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
>            Assignee: jaikiran pai
>
> 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