2 Replies Latest reply on Apr 16, 2004 11:45 AM by Adrian Brock

    Applying security policy - slow on windows

    jdepons Newbie


      I am creating temporary queues at run time, and am using an MBean call to apply the security policy. On windows sytems the server.invoke() call can take anywhere from 10-30 seconds. I don't see the same issue on Linux. Is there an alternative (native) way to make this call, or a way to speed it up on windows. I have reproduced the slowness on win2000, and XP. Any help is appreciated.

      String policy = "";
      server.invoke( new ObjectName( "jboss.mq:service=SecurityManager" ),
      "addDestination",
      new Object[] { queueName, policy },
      new String[] { "java.lang.String", "java.lang.String" }
      );