0 Replies Latest reply on Apr 7, 2006 7:34 AM by alf1984

    Test EJB from a Java application

    alf1984

      Hello,
      Could someone help or advice me : I'm trying to test my EJB from a java application but do not succeed at all.
      I'm working with Eclipse 3.1.1 (WTP conf) and JBoss server 4.0.3(SP1).
      I succeed in building my EJB deploying it on the server through an 'ear' file.
      Everything works fine when I put some servlet and html file in my deployed application, I can get interface of my EJB and use it.
      But when I just deploy my EJB (no servlet, no web archive in my application), I'm unable to test it from a simple Java application, I get the following error :

      java.lang.RuntimeException: 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 TestSimpleMonEJB.main(TestSimpleMonEJB.java:41)

      Do I miss something in the configuration ? do I use a bad JNDI name ? sth else ?

      In advance thanks for your help.