[jboss-jira] [JBoss JIRA] (AS7-3181) Need to specify home interface with tag <home> when the interface is already defined in @EJB annotation
Ondřej Chaloupka (Created) (JIRA)
jira-events at lists.jboss.org
Wed Jan 4 04:36:09 EST 2012
Need to specify home interface with tag <home> when the interface is already defined in @EJB annotation
-------------------------------------------------------------------------------------------------------
Key: AS7-3181
URL: https://issues.jboss.org/browse/AS7-3181
Project: Application Server 7
Issue Type: Bug
Reporter: Ondřej Chaloupka
Assignee: Stuart Douglas
Priority: Minor
It's required to specify home interface with tag <home> when the interface is already defined in @EJB annotation.
You can check my jboss-ejb3.xml:
https://github.com/ochaloup/jboss-as/blob/JBQA-5483-test-migration-ejb2refer-annotation/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/ejb2/reference/annotation/jboss-ejb3.xml
The name "injected" is defined via @EJB annotation in file:
https://github.com/ochaloup/jboss-as/blob/JBQA-5483-test-migration-ejb2refer-annotation/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/ejb2/reference/annotation/Session30Bean.java#L47
Without using the <home> tag the jar is not deployed and ended with error:
{code}
"Could not determine type of ejb-ref java:comp/env/injected for component org.jboss.as.ejb3.component.stateless.StatelessComponentDescription".
{code}
--
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 jboss-jira
mailing list