1 Reply Latest reply on Oct 12, 2004 9:10 PM by alanmoor

    context problem(using heavy files stored outside the jboss)

    raj_kumar

      hi all...
      i am using jboss 3.2.3 and i'm into the web development ...
      i'm going through a serious problem...in my application i'm playing
      .mp3, .mpg files through javascript by using browser plugin like (real player etc). and i've stored all the muisc file into the .war folder in DEPLOY
      directory....
      and here the problem comes... i'm not used to store
      alll this music files into my .war directory it can be anywhere in the
      hardisk of my server .....but when i run this files through absolute path
      then when the javaScript executes it searches the client directory
      and when i uses the context then it searches into the .war folder .....
      but i want that ti should play from the server's harddisk.... i'm not able
      to get how should i achive this in jboss? .....is there any feasible way to
      acheive this that i can access files outside the jboss i mean from any drive.....? pls help me if there is any solution coz these files are too heavy and i cant put all this into .war folder ?.your reply will be heartly appreciated...

      thanks
      Raj.........

        • 1. Re: context problem(using heavy files stored outside the jbo
          alanmoor

          Hi Raj,

          I don't think you'll be able to serve up files directly outside the jboss install structure on Windows. On linux you could set up a logical link. If it were me, I'd write a super simple servlet that serves it up. Post a file= parameter, then let the servlet go get the file and stream it out. You could use an parameter in the servlet setup to tell it where the files are.

          Al