Bonjour
J utilise une base oracle pour mes données , pour créer une connection, j utilise un pool de connection, le temps de crétaion d'une connection est d environs 200 ms, je trouve cela énorme (des fois cela est monté jusqu a 500ms)
voici mon code
Est ce normal? d avoir un temps de 200 ms?? voir 500 ??
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 public static Connection getConnection() throws NamingException, Exception, SQLException { try { Context ctx = new InitialContext(); if (ctx == null) throw new GedFatalExceptionDB("No Context"); _dataSource = (DataSource) ctx.lookup(locationJNDI); connection = _dataSource.getConnection(); } catch (Exception e) { LOGGER.error(e.getMessage(), e); } return connection; }
Partager