|
|
|
Поморите разобраться с JNDI
|
|||
|---|---|---|---|
|
#18+
У меня сервер Томкат и MySQL такая конструкция работает Class.forName("com.mysql.jdbc.Driver"); connection = DriverManager.getConnection("jdbc:mysql://localhost/mytest","root","ostsoi"); Мне нужно использовать JNDI InitialContext ic = new InitialContext(); DataSource source = (DataSource) ic.lookup("????????"); connection = source.getConnection(); Как настроить Томкат чтоб можна было использовать имена обэктов таких как базы даных. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.10.2006, 16:19:24 |
|
||
|
|

start [/forum/topic.php?fid=59&gotonew=1&tid=2147783]: |
0ms |
get settings: |
7ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
449ms |
get topic data: |
12ms |
get first new msg: |
7ms |
get forum data: |
3ms |
get page messages: |
48ms |
get tp. blocked users: |
2ms |
| others: | 194ms |
| total: | 742ms |

| 0 / 0 |
