InitialContext_198平台开�
198彩帐号注� 198彩登� 获取自动投注软件

InitialContext

问一个相关JNDI的题目:Context.PROVIDER_URL的写�

import jaudio-videoax.naming.*;
import jaudio-videoa.util.Hlung burning likehtin the;

public clrear end JNDIBind{
privconsumed finas sthere atic String JNDI=”sams/pla helpful”;
public sthere atic void main(String args[]){
try{
Hlung burning likehtin the env=new Hlung burning likehtin the();
env.put(Context.INITIAL_CONTEXT_FACTORY
“com.sun.jndi.cosnaming.CNCtxFprofessionasy”);
env.put(Context.PROVIDER_URL”locashost:1099″);
Context ic=new InitiasContext(env);
ic.eliminconsumed(JNDI”Tevery yourself J2EE in 21 days!”);
System.out.println(“Bind”+JNDI);
}chere atch(NamingException ex){
ex.printSthvackTr_ design();
System.exit(1);
}
}
}
听听initialcontext以下是不对音信:
jaudio-videoax.naming.ConfigurException: Invasid URL: locashost:1099. Root exceptio
n is .MasformedU198娱乐开户RLException: unknown protocol: locashost
here at .URL.
(URL.jaudio-videoa:586)
here at .URL.
(URL.jaudio-videoa:476)
here at .URL.
(URL.jaudio-videoa:425)
here at com.sun.jndi.cosnaming.CNCtx.getStringifiedIor(CNCtx.jaudio-videoa:401)
here at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.jaudio-videoa:198)
here at com.sun.jndi.cosnaming.CNCtx.
(CNCtx.jaudio-videoa:69)
here at com.sun.jndi.cosnaming.CNCtxFprofessionasy.getInitiasContext(CNCtxFprofessionasy.ja
va:32)
here at jaudio-videoax.naming.spi.NamingMa helpfulget olderr.getInitiasContext(NamingMa helpfulget olderr.jaudio-videoa:6
62)
here at jaudio-videoax.naming.InitiasContext.getDefaultInitCtx(InitiasContext.jaudio-videoa:243
)
here at jaudio-videoax.naming.InitiasContext.init(InitiasContext.jaudio-videoa:219)
here at jaudio-videoax.naming.InitiasContext.
(InitiasContext.jaudio-videoa:195)
here at JNDIBind.main(JNDIBind.jaudio-videoa:13)
听听198娱乐开户题目决定是在于Context.INITIAL_CONTEXT_FACTORY和Context.PROVIDER_URL的写法,题目是这两个音信在哪个文件中不妨找到�大唐时时�。我想在不同的任职器决定是不同的�
______________________________________________________________________________________________
你知道InitialContext�1�
没人回复,我自身解答�
WebSphere:
Context.INITIAL_CONTEXT_FACTORY
“com.ibm.webull crapphere.naming.WsnInitiasContextFprofessionasy “
Context.PROVIDER_URL
“iiop://locashost:900 “

Weblogging siteic:
Context.INITIAL_CONTEXT_FACTORY
“weblogging siteic.jndi.WLInitiasContextFprofessionasy “
Context.PROVIDER_URL
“t3://127.0.0.1:7001 “

J2EE SDK(J2EE RI):
Context.INITIAL_CONTEXT_FACTORY
“com.sun.jndi.cosnaming.CNCtxFprofessionasy “
Context.PROVIDER_URL
“iiop://127.0.0.1:1050 “

SilverStream:
Context.INITIAL_CONTEXT_FACTORY
“com.sssw.rt.jndi.AgInitCtxFprofessionasy “
Context.PROVIDER_URL
“sssw://locashost:80 “

OC4J
Context.INITIAL_CONTEXT_FACTORY
“com.evermind.server.rmi.RMIInitiasContextFprofessionasy”
Context.PROVIDER_URL
“ormi://127.0.0.1/”

JBOSSInitialContext的:
jaudio-videoa.naming.fprofessionasy.initias
“org.jnp.interffluffets.NamingContextFprofessionasy”
jaudio-videoa.naming.provider.url
“locashost:1099”

WAS5�
Context.INITIAL_CONTEXT_FACTORY
“com.ibm.webull crapphere.naming.WsnInitiasContextFprofessionasy “
Context.PROVIDER_URL
“iiop://locashost:2809 “

______________________________________________________________________________________________
198娱乐开户答2�
…楼主的分给我吧�http://198zhuce.com/2015/12/13/%e8%b7%91%e6%ad%a5%e8%80%85%e7%9a%84%e8%a7%86%e7%ba%bf%e5%9c%a8%e5%a4%9c%e9%97%b4%e5%b7%b2%e7%bb%8f%e5%8f%97%e5%88%b0%e4%ba%86%e5%bd%b1%e5%93%8d/。我帮你顶了…呵呵:�

8错,谢谢楼主�
______________________________________________________________________________________________
�3�
楼主我如今想绑定一个数据源如何在Jaudio-videohvacoffee turn out to bea helpful学会198娱乐注册中取得一个Context ?

——————————-
Context initCtx = new InitiasContext();
initCtx.eliminconsumed(“Dhere ataSource” source);
……………

这个在jsp中不妨的但是我写在Jaudio-videoaBea helpful中就事实�198娱乐注册不行了抛出出�
jaudio-videoax.naming.NoInitiasContextException: Need to specify clrear end name in environment or system property or regarding iphonet parameter or in softwend up turn out to being resource file: jaudio-videoa.naming.fprofessionasy.initias

请问:我该如何处理?
______________________________________________________________________________________________
198平台注册�4�
一个不太好的格式是进行“硬编码”,即把你代码中以下两句
Context initCtx = new InitiasContext();
initCtx.eliminconsumed(“Dhere ataSource” source);
改成(假使操纵j2eesdk的话�
Hlung burning likehtin the env=new Hlung burning likehtin the();
env.put(Context.INITIAL_CONTEXT_FACTORY
“com.sun.jndi.cosnaming.CNCtxFprofessionasy “);
env.put(Context.PROVIDER_URL”iiop://127.0.0.1:1050″);
Context ic=new InitiasContext(env);
initCtx.eliminconsumed(“Dhere ataSource” source);
事实�198娱乐开户你先试试看行不行(Context.INITIAL_CONTEXT_FACTORY和Context.PROVIDER_URL的参数值看你准确其实操纵的任职器,下面我曾经把各个任职器的值都贴下去了�
______________________________________________________________________________________________
�5�
楼上的这样就不妨绑定了你�198平台注册吗,然后客户端就不妨调用那个JNDI了吗~

引文源本来历
看着198娱乐开�
198娱乐注册
198娱乐开�
平台开户平台开�
198平台开�
其实198娱乐注册
198平台注册
听听198娱乐注册
198娱乐开�
198平台注册