Do not bind to JNDI if hibernate.session_factory_name_is_jndi is set to false

Description

I’m seeing a WildFly test failure with the org.jboss.as.test.integration.ee.injection.support.jpa.EntityListenerInjectionSupportTestCase test that deploys before the JNDI name space has been setup for the test deployment.

I’m seeing org.hibernate.internal.SessionFactorySettings#determineJndiName the passed session name returned as JNDI name even though options.isSessionFactoryNameAlsoJndiName() == Boolean.FALSE

 

Perhaps we should return null first if isSessionFactoryNameAlsoJndiName is set to false but currently we do:

In WildFly the expliciSessionFactoryname is not empty and returned even though options.isSessionFactoryNameAlsoJndiName() is set to false.

Activity

Show:

Scott Marlow yesterday

I’ll create a pr for the change to:

Details

Assignee

Reporter

Components

Priority

Created 2 days ago
Updated yesterday