protected static String createIdFromJndiLocation(String jndiLocation){
  int[] delimeters=new int[]{jndiLocation.lastIndexOf('/'),jndiLocation.lastIndexOf('.'),jndiLocation.lastIndexOf(':')};
  Arrays.sort(delimeters);
  int highestIndex=delimeters[2];
  return jndiLocation.substring(highestIndex + 1);
}

protected static String createIdFromJndiLocation ( String jndiLocation ) { int [ ] delimeters = new int [ ] { jndiLocation . lastIndexOf ( '/' ) , jndiLocation . lastIndexOf ( '.' ) , jndiLocation . lastIndexOf ( ':' ) } ; Arrays . sort ( delimeters ) ; int highestIndex = delimeters [ 2 ] ; return jndiLocation . substring ( highestIndex + 1 ) ; }
get a string name for the configuration of this datasource . this should be xml and filesystem friendly . for example , the string returned will have no slashes or punctuation , and be as short as possible .
