Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-218

hibernate fails to bind session factory name to jndi

    Details

      Description

      Put the following line in persistence.xml:

      <property name="hibernate.session_factory_name" value="modelSessionFactory" />

      Hibernate fails to bind modelSessionFactory.

      Remove the following two lines from HibernatePersistenceProviderAdaptor.java

      • properties.put("hibernate.jndi.java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
      • properties.put("hibernate.jndi.java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");

      Then the bindind succeeds.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  smarlow Scott Marlow
                  Reporter:
                  gsapountzis George Sapountzis
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: