- Posted by: Saravanan Thoppae
- Posted on: September 18 2004 06:26 EDT
I have written a EJBClient file which has main method. I created remote,home, ejb and then this EJBClient. I have deployed it in the server also. Now i need to execute this EJBClient file. Note that i dont want any web modules. So i am trying to execute like normal java file. I am getting a exception NoInitialContextException. How to solve this problem. I am new to EJB and so please help me out to solve this problem.
Server used is weblogic 8.1
You need to provide a URL for the JNDI provider when creating the initial context for looking up the home interface. Since you aren't running inside the container, there is no default JNDI provider.