users@glassfish.java.net

Re: RBAC for GlassFish Admin Console?

From: <glassfish_at_javadesktop.org>
Date: Mon, 30 Jun 2008 17:34:18 PDT

Assuming you have limited tasks that you want do, you can simply create a new "mini-console" that does the subset of tasks you want done. You'll have to create your own UI, but if you only have a few tasks you want to do, the burden isn't necessarily arduous.

Once you've created your UI, there's 2 different ways of doing tasks.

First, anything you can do from the console, you can do from the command line. So, you can just build up asadmin commands from the UI and run them.

Alternatively, you can talk to the Appserver directly through "AMX" beans, which are like JMX MBeans, and use those to sends admin commands to the server. The AMX Beans are how everything GF does is done, both asadmin and the GUI console are just shells on top of AMX beans.

Obviously, if you need to implement the bulk of the functions, you have a lot of work to do. But if you only have a few, then this is a more realistic plan. Once you have your app written you can control it however you want.
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=283514