+1

--
Thanks
Ashish Vijaywargiya

On Sat, 28 Nov 2026 at 22:18, Mridul Pathak via dev <[email protected]>
wrote:

> Hi all,
>
> I'd like to propose removing the last remnants of the legacy JNDI
> integration from the entity engine on trunk: the "jndi-jdbc" datasource
> type and the JNDITransactionFactory (the option to obtain the JTA
> TransactionManager/UserTransaction from a container's JNDI). These exist to
> let OFBiz get its DataSource and transaction manager from an external Java
> EE application server, which is a deployment model we retired long ago when
> the appserver component was moved to the Attic (OFBIZ-6195) and we stated
> that external application-server deployment was no longer supported
> (OFBIZ-9175). OFBiz runs standalone on its embedded Tomcat and uses
> GeronimoTransactionFactory by default, so these JNDI paths are off by
> default (only commented examples remain in entityengine.xml), have no tests
> or demo data, and nothing in the codebase uses them.
>
> Concretely this would remove JNDITransactionFactory, the jndi-jdbc
> datasource type and the related config-model classes, the corresponding
> elements from entity-config.xsd, and the commented JNDI examples in
> entityengine.xml. It is trunk only: release24.09 and release26.11 keep the
> current behaviour unchanged, so anyone who still relies on
> container-managed datasources or JTA can stay on a release branch. An
> UPGRADING note would describe the change.
>
> To be clear about what is not affected: LDAP authentication is unchanged
> (it uses the javax.naming directory API directly, not this integration),
> and Tomcat's own naming context is unchanged. The shared JNDI helper
> classes (JNDIContextFactory, jndiservers.xml, jndi.properties) and the JMS
> service engine stay for now, because the JMS service engine still looks up
> its connection factory and destinations through JNDI; those remaining
> pieces would be retired together with the JMS removal that is already
> tracked separately (OFBIZ-13829).
>
> If there are no objections within a week, I will create a Jira issue and
> submit a PR. Feedback welcome.
>
> Thanks,
> Mridul Pathak
>

Reply via email to