0 Replies Latest reply on Jan 26, 2005 3:11 AM by Tim Fox

    EJB ENC (java:comp/env) not read-only

    Tim Fox Master

      Hi All-

      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!!");

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

      Can anyone tell me is there something I have to do (perhaps in Jboss config.) to make the ENC read-only?