This content has been marked as final.
Show 1 reply
-
1. Re: Run CLI from mbean
bvnghiem1012 Aug 13, 2013 10:09 PM (in response to bvnghiem1012)I found the solution for this. Just wrap the code in a single thread.
But I have another question about CLI. I add a security-domain successfully by CLI in Java code using ModelControllerClient. The new domain also showed in jconsole but in LoginContext, it does not exist and I cannot use it for authentication.
Any one know how to flush the new added security-domain in Java code? Thanks a lot!