1 Reply Latest reply on Oct 22, 2002 5:01 AM by Juha Lindfors

    Does JBoss 3.0 Support <env-entry> in session bean

    Roman Lee Newbie

      Hi
      I had added a <env-entry> elements in DD and writed a session bean to access this environment variable. But it doesn't work. Does JBoss 3.0 Support <env-entry> in session bean? the following are my DD and bean code. Thanks for any replies.
      ======================================================
      <env-entry>
      A String Test
      <env-entry-name>RSTLang</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>Hi Roman</env-entry-value>
      </env-entry>
      ======================================================
      try{
      Context initCtx = new InitialContext();
      String str = (String) initCtx.lookup("java:comp/env/RSTLang");
      } catch (javax.naming.NamingException e){

      }