Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1490

EJB component environment (ENC) is not read only

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-3.2.6 Final
    • EJB2
    • None

      The component JNDI environment for a Stateless session bean does not appear to be read-only.

      I have a SLSB running in 3.2.6.

      It attempts to modify it's ENC (java:comp/env environment) and succeeds. I.e. the following succeeds:

      InitialContext ic = new InitialContext();
      Context envCtx = (Context)new InitialContext().lookup("java:comp/env");
      envCtx.bind("foo", "bar");
      log.debug("Worked!!");

      Also bind stuff into the context works.

      I haven't tried with other types of EJB.

      According to the EJB 2.0 spec (Sec. 20.2.4) an enterprise beans's environment should be read-only.

            starksm64 Scott Stark (Inactive)
            timfox_jira Tim Fox (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: