Topic: 请问 tomcat下的Context.PROVIDER_URL和Context.INITIAL_CONTEXT_FACTORY的问题 |
Print this page |
1.请问 tomcat下的Context.PROVIDER_URL和Context.INITIAL_CONTEXT_FACTORY的问题 | Copy to clipboard |
Posted by: returner Posted on: 2004-11-08 23:45 在weblogic中好像配置一个properties然后传给InitialContext。 pros.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); properties.put(Context.PROVIDER_URL, url); 那么tomcat下是怎么写的呢 望大虾斑竹给个答案,这里先谢谢了!!!!! |
2.Re:请问 tomcat下的Context.PROVIDER_URL和Context.INITIAL_CONTEXT_FACTORY的问题 [Re: returner] | Copy to clipboard |
Posted by: returner Posted on: 2004-11-09 16:55 我都等了一天了,怎么都没人回答 斑竹,救我!!! |
3.Re:请问 tomcat下的Context.PROVIDER_URL和Context.INITIAL_CONTEXT_FACTORY的问题 [Re: returner] | Copy to clipboard |
Posted by: lot1 Posted on: 2004-11-10 18:14 no need, just init the context with empty properties or default properties (new InitialContext() Only when you lookup REMOTE context you need to provide the properties, the reason is the application server set up the properties by default for you already. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |