Uploaded image for project: 'JBoss Metadata'
  1. JBoss Metadata
  2. JBMETA-94

@Resource injection for SessionContext is expecting a mapped-name, should not be processed at all

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.0.0.Beta36
    • 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?

              emuckenhuber_jira Emanuel Muckenhuber (Inactive)
              arubinge@redhat.com Andrew Rubinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: