Help in a simple Hello World EJB aplication

Discussions

EJB design: Help in a simple Hello World EJB aplication

  1. Help in a simple Hello World EJB aplication (1 messages)

    We are introducing to EJB and trying to deploy one Hello World example. We are using Pramati Server. We deploy the JAR file into the server but it appears the following error:

    "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."

    It seems that the client can not find the JNDI initial context.

    Thanks in advance
  2. Help in a simple Hello World EJB aplication[ Go to top ]

    First java.naming.factory','initial should be java.naming.factory'.'initial. Second, that error possibly appears on running a client, not during deployment. You can specify the initial context factory on the client command line as:
     java -Djava.naming.factory.initial=XXX -Djava.naming.provider.url=YYY Client

    XXX depends on Pramati and is the fully qualified name of the class to instantiate InitialContext objects (e.g. com.sun.jndi.cosnaming.CnCtxFactory). Read the manual.

    YYY depends on Pramati and the network and is specified as protocol://host:port (e.g. iiop://www.foo.com:1050). Again, read the manual.