Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-975

Embedded glassfish 3.1 container supports only EJB with suffix "bean" in name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • GlassFish Containers
    • None

    Description

      Embedded Glassfish supports only Local EJB which have name with suffix "bean"
      Assume Hello and Bye are minimal interfaces and HelloBean and ByeImpl are local Stateless EJB

      The following test pass:

      @Deployment
      public static JavaArchive createDeployment()

      { return ShrinkWrap.create(JavaArchive.class).addClasses(Hello.class, HelloBean.class); }

      @EJB
      Hello helloBean;

      @Test
      public void test() throws Exception

      { assertNotNull(helloBean); //OK }

      but this one fails:

      @Deployment
      public static JavaArchive create()

      { return ShrinkWrap.create(JavaArchive.class).addClasses( Bye.class, ByeImpl.class); }

      @EJB Bye basic;

      @Test
      public void test() throws Exception

      { assertNotNull(basic); //NOK }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michaldo_jira Michal Domagala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: