Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2166

no-interface view implementation based on MC constructs is brittle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Critical
    • EJB 3.1
    • depchain-1.0.0-alpha-4
    • nointerface
    • None

    Description

      Currently the no-interface view proxy that gets bound into JNDI, internally uses a KernelControllerContext (MC construct) corresponding to the endpoint container of the EJB. The proxy depends just on DESCRIBED state of the endpoint. The invocation handler of that proxy, on first invocation, pushes the context to INSTALLED state (if not already in INSTALLED stated) and then invokes on the endpoint.

      This approach won't work out because MC returns an UnModifiable kernel controller context which throws an exception when we try to change the state of that context. More on this in the "Important" note at the end of this MC chapter http://docs.jboss.org/jbossmc/docs/2.0.x/userGuide/ch11s04.html:

      <quote>
      All context information is wrapped into unmodifiable objects to prevent the user from changing anything outside of the microcontainer's control.
      </quote>

      It's just plain luck that no-interface view works currently, because the first invocation on the nointerface view happens after the context has already been set to INSTALLED state by MC.

      Attachments

        Issue Links

          Activity

            People

              jaikiran Jaikiran Pai (Inactive)
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: