0 Replies Latest reply on Apr 22, 2002 8:56 PM by sudhir

    Reading env-entry from ejb

    sudhir Newbie

      can anybody tell me how to read env-entry parameter from
      ejb-jar.xml?

      This is the sample code of xml
      <env-entry>
      <env-entry-name>DocumentRoot</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>c:/upload/</env-entry-value>
      </env-entry>

      and in java code i try to read like this
      mszDocumentRoot = (String) oicContext.lookup("java:comp/env/DocumentRoot")

      and jboss throws DocumentRoot not bound error.

      Any help

      passionit