Hi,
How do I run an Application Client Module under the WSAD
Test Environment. I have defined JNDI references to the
EJB's used in the application client deployment descriptor and started the a Test Server running with the EJB's loaded. The only way I can see to run the Client class is to switch to the
Java or Debug view and run from there. However when I do this, I get the following error...
Caught an exception.
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 guysports.ejb.client.PlayerClient.main(PlayerClient.java:24)
The code in the main() method for PlayerClient starts with...
try {
Context initial = new InitialContext();
Object objref = initial.lookup("ejb/PlayerHome");
PlayerHome playerHome = (PlayerHome)PortableRemoteObject.narrow(objref, PlayerHome.class);
.
.
.
This is run in a Websphere 5.0 Test Environment
Thanks in advance
Guy Barden