-
Bug
-
Resolution: Done
-
Blocker
-
1.0.0.Beta35
-
None
-
None
Source is:
@Resource
public void setSessionContext(SessionContext sc) {
sctx = sc;
}
jboss-metadata populates ResourceEnvironmentReferenceMetaData properly, given that there's no mapped-name.
However, EJB3 Module in AS has error:
java.lang.RuntimeException: mapped-name is required for sessionContext of deployment someEjbTest
at org.jboss.ejb3.client.ClientResourceHandler.loadXmlResourceEnvRefs(ClientResourceHandler.java:181)
at org.jboss.ejb3.client.ClientResourceHandler.loadXml(ClientResourceHandler.java:212)
at org.jboss.ejb3.client.ClientContainer.processMetadata(ClientContainer.java:341)
at org.jboss.ejb3.client.ClientContainer.<init>(ClientContainer.java:123)
at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:83)
at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:184)
at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:177)
This is a regression; was some code removed which populates mapped-name, given that the injection target is javax.ejb.SessionContext?