context envcontext jdbc

Context initContext = new InitialContext();
    Context envContext = (Context) initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource) envContext.lookup("\"jdbc:postgresql://localhost:5432/postgres");what is that and  how i can fill that!PLease help.

Ответы (0 шт):