如何在JBoss-7中找到JNDI名称? [英] How to find JNDI name in JBoss-7?
问题描述
请在下面找到场景,
@Stateless(name = "TestManager")
@Remote(TestInterfaceRemote.class)
@Local(TestInterfaceLocal.class)
public class TestManagerBean implements TestInterfaceLocal, TestInterfaceRemote {}
如果服务器日志级别为INFO,则在server.log文件中打印的TestManagerBean类的以下JNDI名称.通过使用此JNDI,我可以在EJB客户端程序中访问Bean.
The following JNDI name for the TestManagerBean class which is printed in server.log file if the server log level is INFO. By using this JNDI, I am able to access the bean in the EJB client program.
java:global/Sample/Demo/TestManager!net.juniper.jmp.test.TestInterfaceRemote
我的问题是
如何在JBoss-7设置中找到相同的JNDI名称?我们有任何控制台可以知道JBoss中所有的JNDI吗?
How to find same JNDI names in JBoss-7 setup? Do we have any console to know the all JNDI's in JBoss?
我尝试通过使用jconsole模式查找JNDI名称,但是上面只有EJB名称不是完全限定的JNDI名称.
I tried to find JNDI names by using jconsole mode but there's only EJB name not fully qualified JNDI name on it.
如果我们可以选择JBoss-7中的JNDI名称,请给我一个IDEA吗?
Could you please give me an IDEA if we have an option to know JNDI names in JBoss-7?
推荐答案
在JBoss EAP 6.2.0.GA(JBoss AS 7.3.0.Final)中,Web管理控制台提供了JNDI视图:
In JBoss EAP 6.2.0.GA (JBoss AS 7.3.0.Final) the web administration console provides a JNDI View:
这篇关于如何在JBoss-7中找到JNDI名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!