0 Replies Latest reply on Mar 5, 2006 9:01 AM by Denis Peyrusaubes

    Pb binding SLSB

    Denis Peyrusaubes Newbie

      Hi all,
      I'm using JB 4.04RC1.
      Trying to deploy an ear called xxx.ear that contains war and ejb3 modules.

      Session EJB seams to deploy without pb:

      14:52:10,509 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=MyManagerBean, class=test.MyManagerBean, type=STATELESS

      But when I try to bind to it :

      String name = "xxx/MyManagerBean/remote";
       try {
       InitialContext ctx = new InitialContext();
       System.out.println("Connecting to:" + name);
       Object result = ctx.lookup(name);
       return result;
       } catch (Exception e) {
       throw new RuntimeException("Could not lookup remote object: "
       + name, e);

      The jndi name was deduced from: http://wiki.jboss.org/wiki/Wiki.jsp?page=FromJBossEJB3.0RC3ToRC4PFD

      But the binding fails...
      I read the last version of spec, Packiaging an ejb3 ejb-ajr does'nt need any ejb-jar.xml if ejb3 classes are annotated...
      Where Am I wrong ??