我使用我的程序,这是对于JBoss 7客户端JNDI查找下面的代码。org.jboss.naming.remote.client.InitialContextFactory行家扶养
public static Context getInitialContext() throws NamingException {
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jboss.naming.remote.client.InitialContextFactory");
properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
properties.put(Context.PROVIDER_URL, "remote://localhost:4447");
return new InitialContext(properties);
}
当我运行从Eclipse的我的程序>运行的Java应用程序的正常工作提供给我的JBoss /斌/客户/的jboss-client.jar的在我的类路径中。
我需要在我的Maven的依赖同样的罐子。
什么是Maven的POM扶养为“org.jboss.naming.remote.client.InitialContextFactory”或在那里我能找到的依赖POM。
谢谢。