private static final String EJBNAME = "IBackServiceBeanRemote/remote";
应该是这样的!
应该是这样的!
解决方案 »
- 熟悉richfaces的大哥请来帮个忙
- jdom xml 高分求教
- struts hibernate spring 整合的问题(刚才没有发好,重新整理一下代码)
- struts 中的org.apache.jasper.JasperException:错误
- Spring中配置文件一点小问题
- MyEclipse 5.0GA + jboss-4.0.4.GA的问题
- j2sdk 现在最高的版本是多少?我下了个jakarta-tomcat-5.0.25的,配合哪个版本的j2sdk比较好
- struts问题---启动tomcat的时候提示错误,大家帮忙看看什么意思!
- 浏览器端不能浏览网页中的APPLET该怎么办?
- JAVA中如何调用配置文件的值与数据库文件的值进行比较
- 还是URL中文编码问题
- 分支结构出现的重定义
package userEJB;import java.util.Properties;
import javax.naming.InitialContext;
public class UseEJB {
private static InitialContext ctx=null;
public static InitialContext getInitialContext(){
if(ctx!=null){
return ctx;
}
else{
try{
Properties props = new Properties();
props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("jndi.properties")); ctx=new InitialContext(props);
}
catch(Exception e){
ctx=null;
e.printStackTrace();
}
return ctx;
}
}
}
的确是jndi里面配置的内容
所以我怀疑还是remote的问题
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=jboss.naming:org.jnp.interfaces
jnp.partitionName=test
加入用户名和密码