2 Replies Latest reply on Oct 9, 2006 9:20 AM by 600114046

    simple ejb3 not binding

    600114046

      Hi, I've created a simple ejb to try out ejb3 on Jboss AS jboss-4.0.4.GA(running on jdk 1.5) but after deploying the three simple classes (code below) into a jar into the {jboss AS home}\server\{server name}\deploy directory it doesn't seem to pick it up. The console doesn't recognise anything as it would if it was an ear file and their is no JNDI bind in the JMX Console -> service=JNDIview -> Global JNDI namespace. Any ideas on what i'm doing wrong??

      Thanks



      Local interface:
      ---------------------------------------
      import javax.ejb.Local;


      @Local
      public interface MMAPILocal
      {
      String echoString(String echo);
      }

      -----------------------------------------


      Remote interface:
      -----------------------------------------
      import javax.ejb.Remote;


      @Remote
      public interface MMAPIRemote
      {
      String echoString(String echo);
      }
      -----------------------------------------

      Implementation bean
      -----------------------------------------
      import javax.ejb.Stateless;
      import javax.persistence.PersistenceContext;
      import javax.persistence.EntityManager;


      @Stateless
      public class MMAPIBean implements MMAPILocal, MMAPIRemote
      {

      public String echoString(String echo)
      {
      return "I am echoing : " + echo;
      }


      }

        • 1. Re: simple ejb3 not binding
          bill.burke

          maybe it is because 4.0.4.GA doesn't come with EJB3? You need to either download and install the separate EJB3 distribution or use the graphical installer.

          • 2. Re: simple ejb3 not binding
            600114046

            Thanks for getting back. I had installed the latest: jboss-4.0.4.GA-Patch1-installer.jar and used the graphical interface chosing the "all" option on what type of server and the previous options suggest ejb3 distibution is included. A completely new build too i.e. i didn't go round playing with libs.