Last active
August 29, 2015 14:06
-
-
Save d6y/194cf56a0f54105f6604 to your computer and use it in GitHub Desktop.
JDNI check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* can we get a JDBC connection from JNDI using the default connection name? | |
*/ | |
def jndiJdbcConnAvailable_? : Boolean = jndiJdbcConnAvailable_?(DefaultConnectionIdentifier) | |
/** | |
* Is the named connection available via JNDI? | |
* @param name the connection identifier to check. | |
* @return true if the JNDI name can be resolved. | |
*/ | |
def jndiJdbcConnAvailable_?(name: ConnectionIdentifier) : Boolean = jndiConnection(name).isDefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment