Context ctx = new InitialContext();
String dsn = argv[0];
System.out.println("Looking up " + dsn);
Object o = ctx.lookup(dsn);
DataSource d = (DataSource)o;
System.out.println("Getting connection ");
Connection con = d.getConnection();
System.out.println("Got it!");