This method allows the user to get a Connection to a Database. If the DataSource has already been created by a subsequent call or through
a JNDI registration, then they a Connection will be returned from the DataSource that has been cached using the astrDataSourceName argument.
If the DataSource has been established, then a new DataSource will be created using the astrDriver, astrConnectionString, astrUsername, and
astrPassword. If a valid DataSource can be established, it will be cached for reuse using the astrDataSourceName argument.
astrDataSourceName - String A logical name that can be used to lookup a cached DataSource.
astrDriver - String A fully qualified Driver Class name or a DataDirect Database Driver ID.
astrUrl - String The URL to be used to connect to the desired Database.
astrUsername - String The username to be used to connect to the Database.
astrPassword - String The password to be used to connect to the Database.
Connection A new Connection object from the DataSource.
java.lang.Exception - Exceptions can be thrown due to invalid arguments, license restrictions, or issues connecting to the Database.