public void unbind ( DataSource dataSource ) throws NamingException { if ( dataSource == null ) { throw new IllegalArgumentException ( "dataSource cannot be null" ) ; } String jndiUrl = this . dataSourceBindings . get ( dataSource ) ; if ( jndiUrl == null ) { throw new NamingException ( "No such binding" ) ; } this . initialContext . unbind ( jndiUrl ) ; this . dataSourceBindings . remove ( dataSource ) ; }
Unbinds a data source .