Hi there,
I am trying to get a simple example of
EJB working from Head First EJB and when I run my client I am getting the following error
javax.naming.NoInitialContextException: Need to specify class name in environmen
t or system property, or as an
applet parameter, or in an application resource f
ile: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(AdviceClient.java:29)
at AdviceClient.main(AdviceClient.java:13)
What am I doing wrong, my code is as follows