Hi all When starting a server, normally I need to type: java -Djava.security.policy=fbn.policy XXXXXX. I just wondering if I can put the fbn.policy into a java file, say fbn.java, so that I can start the server like java XXX? Thanks for any help. Peter
Hi Peter - You can assign java.security.policy a value within the server source if you want: ... Properties props = System.getProperties(); props.put("java.security.policy", "fbn.policy"); ... This hard-codes the policy by name, so if you want multiple policies without editing the same file for each use: props.put("java.security.policy", args); where arg is a command-line parameter instead of a directive (-D thingy). ------------------ Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
Make visible what, without you, might perhaps never have been seen. - Robert Bresson
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads