|
java:comp/env
|
|||
---|---|---|---|
#18+
Господа - расшифруйте пож 2 строчки - Context myEnv = (Context) initial.lookup("java:comp/env"); Object objref = myEnv.lookup("ejb/SimpleConverter"); Вторая указывается как ссылка на сам EJBean - а что значит первая? ... |
|||
:
Нравится:
Не нравится:
|
|||
14.05.2004, 18:58 |
|
java:comp/env
|
|||
---|---|---|---|
#18+
Ссылка на контекст из которого локапятся бины ... |
|||
:
Нравится:
Не нравится:
|
|||
14.05.2004, 19:03 |
|
java:comp/env
|
|||
---|---|---|---|
#18+
Так она всегда одинаковая что-ли? ... |
|||
:
Нравится:
Не нравится:
|
|||
14.05.2004, 19:34 |
|
java:comp/env
|
|||
---|---|---|---|
#18+
Может это прояснит, хотя последнего вопроса я не понял - The J2EE platform does define a limited naming policy for application components (read "comp"). This namespace is rooted with "java:comp". "comp" provides a sub-tree for component related bindings. "env" is bound to a sub-tree for component environment-related bindings, as defined in the components deployment descriptor. A typical setup for the "env" namespace is: java:comp/env/ejb/{binded EJBs} java:comp/env/jdbc/{binded JDBC datasources} java:comp/env/jms/{binded JMS connection factories} java:comp/env/mail/{binded Java mail connection factories} "java:comp/env" is the namespace that a J2EE container uses to tie logical names to the various components being managed by the container. ... |
|||
:
Нравится:
Не нравится:
|
|||
14.05.2004, 20:07 |
|
|
start [/forum/topic.php?fid=59&msg=32518933&tid=2154120]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
37ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
36ms |
get tp. blocked users: |
1ms |
others: | 13ms |
total: | 129ms |
0 / 0 |