Programmatically Add Users to Role
807607Oct 16 2006 — edited Nov 13 2006I am writing a Java Enterprise Edition Web application that needs to dynamically add and remove users to roles. I know that this can be done by statically setting up the XML descriptors of the Sun Java Application Server 9 and redeploying the application, but I need to be able to do this on the fly at runtime.
Any ideas? (code would be great!)