1 Reply Latest reply on Sep 19, 2002 12:06 PM by adrian.brock

    Operating System command

    a_sooky

      I would like to start an operating system command from an EJB with

      Runtime.getRuntime().exec(cmdName);

      It does not seem to work, i.e. returns immediately without performing the operation. Is this maybe against the spec? If not, how can this requirement be fulfilled?

      Thanks

      Arpad


        • 1. Re: Operating System command

          The spec says not to this, but unless you configure
          a SecurityManager you will be allowed.

          It might not be working for lots of reasons,
          I can only guess without more info.
          The most likely reason is you have a relative path
          which is incorrect for the current directory of jboss
          ${jboss.dist}/bin

          Regards,
          Adrian