Issue Details (XML | Word | Printable)

Key: OPENEJB-906
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: David Blevins
Reporter: David Blevins
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenEJB
OPENEJB-453

Validation: Referring to a bean via its bean class (pre 3.1)

Created: 05/Sep/08 06:17 PM   Updated: 28/Jan/09 08:36 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 3.1.1

Time Tracking:
Not Specified

Resolution Date: 28/Jan/09 08:36 PM


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
David Blevins added a comment - 05/Sep/08 06:46 PM
Given these two beans:

@Stateless
public class Foo implements FooLocal

@Stateless
public class Bar implements BarLocal

The following reference is not legal in EJB 3.0:

@EJB
private Foo foo;

In EJB 3.0 you cannot refer to a bean using its bean class and must reference it via one of its business interfaces.


David Blevins added a comment - 28/Jan/09 08:36 PM
svn ci container
Sending container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/EjbResolver.java
Sending container/openejb-core/src/main/java/org/apache/openejb/config/AnnotationDeployer.java
Adding container/openejb-core/src/main/java/org/apache/openejb/config/rules/AnnotationValidations.java
Sending container/openejb-core/src/main/resources/org/apache/openejb/config/rules/Messages.properties
Adding container/openejb-core/src/test/java/org/apache/openejb/config/rules/InvalidEjbRefTest.java
Sending container/openejb-core/src/test/java/org/apache/openejb/config/rules/InvalidInterfacesTest.java
Adding container/openejb-core/src/test/java/org/apache/openejb/config/rules/ValidationAssertions.java
Transmitting file data .......
Committed revision 738614.