Hi,
I am working in ejb3.0 and Jboss4.X .
I ahve creatde and deployes a stateful session bean in
Jboss Server.
Below is my client code to access the delpoyed Session Bean:
But I am getting an error :
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 org.jboss.tutorial.entity.client.Client.main(Client.java:40)
At my JMX-console I can see the entry like,under
Global JNDI Namespace:
Please let me know where I am missing the thing