EJBClient class file


EJB programming & troubleshooting: EJBClient class file

  1. EJBClient class file (1 messages)

      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


    Threaded Messages (1)

  2. EJBClient class file[ Go to top ]

    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.