0 Replies Latest reply on Apr 14, 2003 10:44 AM by Luca

    Env-Entry pointing to a file in ejb-jar.xml

    Luca Newbie

      Hi everybody
      I have a .jar with 2 stateless session beans. One of them has an env-entry which points to an external file, in this way:
      <env-entry>

      <env-entry-name>defpa</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>/defpaejb.xml</env-entry-value>
      </env-entry>
      The bean read this file with a getResourceAsStream after having read its name via jndi (of course).
      The .xml is placed correctly within the .jar (it works perfectly both with Bea Weblogic and Oracle AS), but all I get is null, when invoking the getResourceAsStream on /defpaejb.xml.
      Thanks in advance
      Best Regards
      L