@EJB(name) value used to resolve ambiguous refs
-----------------------------------------------
Key: OPENEJB-828
URL: https://issues.apache.org/jira/browse/OPENEJB-828
Project: OpenEJB
Issue Type: Improvement
Components: deployment
Affects Versions: 3.0, 3.0-beta-2, 3.0-beta-1
Reporter: David Blevins
Assignee: David Blevins
Fix For: 3.0.1
This is now possible:
public interface Color {
String getColor();
}
public static class Yellow implements Color {
public String getColor() {
return "Yellow";
}
}
public static class Green implements Color {
public String getColor() {
return "Green";
}
}
public static class Bean {
@EJB Color yellow;
@EJB Color green;
public String getGreen() {
return green.getColor();
}
public String getYellow() {
return yellow.getColor();
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.