[arquillian-issues] [JBoss JIRA] (ARQ-975) Embedded glassfish 3.1 container supports only EJB with suffix "bean" in name

Michal Domagala (JIRA) jira-events at lists.jboss.org
Fri Jun 1 18:32:17 EDT 2012


Michal Domagala created ARQ-975:
-----------------------------------

             Summary: Embedded glassfish 3.1 container supports only EJB with suffix "bean" in name
                 Key: ARQ-975
                 URL: https://issues.jboss.org/browse/ARQ-975
             Project: Arquillian
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: GlassFish Containers
            Reporter: Michal Domagala


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
	}



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list