NoJndiLoaderFactory.java | Class | author: sedj author: author: public static Connection getPrimroseConnection() throws Exception { author: InitialContext ctx = new InitialContext(); author: PoolLoader pl = (PoolLoader)ctx.lookup("java:comp/env/AllPrimrosePools"); author: Pool myPool = pl.findExistingPool("myPoolName"); author: if (myPool != null) { author: return myPool.getConnection(); author: } else { author: // Can't find pool ...
|