Community
Participate
Working Groups
A new type will be added to the system parts in package eglx.persistence.sql: externalType SQLJNDIDataSource extends SQLDataSource type NativeType end It has no new API, it just obtains the Connection differently than plain JDBC (SQLDataSource). Users can manually instantiate this, or they can use resource bindings. It has the same constructors as SQLDataSource, but you pass in the JNDI name instead of the JDBC URL. If the data source is using Application authentication instead of Container authentication, the user can pass in a dictionary with the 'user' and 'password' attributes. Corresponding Java class for SQLJNDIDataSource will be added to the runtime, subclassing SQLDataSource. SysLib.getResource() will create SQLJNDIDataSource when the jndi:// URI for a binding is used. An SQLException will be thrown if the lookup fails (the name is not found, or the InitialContext cannot be created - as is typically true in non-JEE environments).
changing target from M1 to M2
Implemented as described in comment 1.
Closing