Unofficial Content
  • This documentation is valid for:

DbConnection new properties


Scope

Languages: Java
Interfaces: web
Access Technology: External Datasource (JNDI)

Introduction

Some new properties of the DBConnection datatype have been added: UseExternalDatasource and ExternalDatasourceName. The purpose is to allow the conection with an external datasourse, using the server pool instead of the genexus one.

UseExternalDatasource

This property set whether to use an external datasource or not.
The values are
1: connects using a datasource (server pool)
0: connects directly with jdbc (genexus pool)

Example:
&dbcon.UseExternalDatasource = 1

ExternalDatasourceName

When the connection is through an external datasource (propiedad UseExternalDatasource = 1), the name of the datasource must be set in this property

Example:
&dbcon.ExternalDatasourceName = "jdbc/orabarba1"


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant