hi how to invoke a stateless session bean from a java class. im getting a naming excpetion. It is as follows
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 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:652) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:292) at javax.naming.InitialContext.lookup(InitialContext.java:359) at itso.mighty.ejbclient.InquireParts.main(InquireParts.java:101)
help would be greatly useful. im using wsad 5.0 and was application server.
Where dose your java class redise. Do both ur EJB and java file reside in same container?
I guess the problem is with JNDI. It is not able to get the Initial Context. If your java program is somewhere in other JVM, then U have to specify where your JNDI reside using Properties and Env variables.
I am not sure what could be the property values for Websphere. May be u can google to get those values.