菜鸟求助:一个BMP的问题
ctx = new InitialContext();
Object obj = ctx.lookup("TestBMPRemoteHome");
程序在第二句就产生异常了,报错信息是:javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
描述文件:- <entity>
<display-name>TestBMP</display-name>
<ejb-name>TestBMP</ejb-name>
<home>test.TestBMPRemoteHome</home>
<remote>test.TestBMPRemote</remote>
<ejb-class>test.TestBMPBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
</entity>
请教大虾错在哪里,只点小弟一二