0 Replies Latest reply on Feb 26, 2004 8:43 AM by SVen

    ejb restriction

    SVen Newbie

      Hello all

      I have a question.
      It is (among other things) a restriction of EJB that you are not allowed to access the filesystem (to write, edit or delete files).

      I guess that's right?!

      So why can I delete a file?
      I set <enforce-ejb-restriction> in standardjboss.xml to true
      and removed all entries from server.policy. But still I am able to delete a file from inside an SFEJB.

      try
      {
      File f = new File("D:\\test.txt");
      f.delete();
      }catch(Exception e){System.out.println(e)}
      

      if i try to run this from inside an EJB's interface method it should end in an Exception?!

      I am using JBoss (MX MicroKernel) [3.2.3 (build: CVSTag=JBoss_3
      _2_3 date=200311301445)]
      on Windows 2000 Professionel

      Thank you in advance

      SVen