|
|
|
PoolConnection , one question, pls
|
|||
|---|---|---|---|
|
#18+
Плиз, посмотрите - очень простенький коннект пула соединений к mySQL; Почему драйвер находится и все ОК , когда это все пишется в main() , но если этот кусочек вызывается из сервлета или из users tag - то ругается что Driver не найден? try { DriverAdapterCPDS pcds = new DriverAdapterCPDS(); pcds.setDriver("com.mysql.jdbc.Driver"); pcds.setUrl("jdbc:mysql://localhost/test"); pcds.setUser("root"); pcds.setPassword("root"); Jdbc2PoolDataSource tds = new Jdbc2PoolDataSource(); tds.setConnectionPoolDataSource(pcds); DataSource ds = tds; con = ds.getConnection(); } catch (Exception ex) { System.out.println("ClassNotFoundExceptioncjjjjj : "+ex.getMessage()); } ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.07.2005, 16:29:14 |
|
||
|
|

start [/forum/topic.php?fid=47&gotonew=1&tid=1853848]: |
0ms |
get settings: |
11ms |
get forum list: |
20ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
220ms |
get topic data: |
11ms |
get first new msg: |
8ms |
get forum data: |
3ms |
get page messages: |
39ms |
get tp. blocked users: |
2ms |
| others: | 238ms |
| total: | 562ms |

| 0 / 0 |
