Hi,
I try to use JNDI to lookup "jmx/invoker/RMIAdaptor". But I got following exception. Anyone can give me some clues. Thank you!!
Exception in thread "main" 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
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at test.Testing.main(Testing.java:19)
RS
You need to setup the InitialContext properties
http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch3.chapter.html#d0e6825