6 Replies Latest reply on Jun 28, 2002 3:57 PM by gags_78

    Locating xml files from my bean

    gags_78

      Hi there folks,
      I've been having this problem for quite some time and really hope you guys can help me.

      Basically from one of my beans I need to be able to access an xml file that is effectively a template for a document I create on the fly.. I've tried locating the file 'normal.xml' in the meta-inf directory of the ear file but when I try the code

      ------------------------------------------------------
      File test = new File("normal.xml");
      if (test.exists())
      System.out.println("Found normal.xml");
      else
      System.out.println("Couldn't find normal.xml");
      ------------------------------------------------------
      unfortunately it can't find it.. Am I doing something wrong? Do I need to declare anything within the ejb-jar or the jboss.xml file or perhaps in the Manifest file? In fairness when I stick it in the jboss/bin directory it can find it but that really isn't an appropriate solution..

      Are there any examples out there with this done?

      Thanks again,
      Mark.