-
Bug
-
Resolution: Done
-
Major
-
EJB 3.0 RC9 - Patch 1
-
None
-
None
The name of the @Resource annotations should default to the property or method name. The following simple environment injections are not working as expected:
@Resource
String stringValue;
Long longValue = Long.valueOf(1);
@Resource
void setLongValue(Long longValue) {
this.longValue = longValue;
}
Workaround:
@Resource(name = "stringValue")
String stringValue = "hi";
Long longValue = Long.valueOf(1);
@Resource(name = "longValue")
public void setIntValue(Long longValue) {
this.longValue = longValue;
}