[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:34:18 EDT 2012


    [ https://issues.jboss.org/browse/ARQ-975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698179#comment-12698179 ] 

Michal Domagala commented on ARQ-975:
-------------------------------------

see also http://stackoverflow.com/questions/10089957/explicite-local-ejb-not-injected-with-arquillian
                
> 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
>         Attachments: suffix_test.tar.gz
>
>
> 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