繁体   English   中英

javax.ejb.NoSuchEJBException:EJBCLIENT000079 Eclipse,JBOSS,EJB 3.1

[英]javax.ejb.NoSuchEJBException: EJBCLIENT000079 Eclipse, JBOSS,EJB 3.1

javax.ejb.NoSuchEJBException: EJBCLIENT000079 与 JBoss 7.1 和 Eclipse

我的测试代码与上述帖子中给出的完全相同,并且我面临的问题也在同一篇帖子中提到,但没有看到任何确认的解决方案。

如果您有任何解决方案/想法,请告诉我。

Properties jndiProperties = new Properties();
jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
jndiProperties.put(Context.PROVIDER_URL, "http-remoting://127.0.0.1:8080/"); // double-check IP and PORT of your app server; you may need to use remote+http or remote+https
jndiProperties.put("jboss.naming.client.ejb.context", true);
jndiProperties.put("org.jboss.ejb.client.scoped.context", "true"); 

Context context = new InitialContext(jndiProperties); 
HelloWorld bean=(HelloWorld)context.lookup("/HellowWorldSessionBean/HelloWorldBean!com.sample.ejb.HelloWorld");

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM