[jboss-as7-dev] Management Console JDK Server Example
Jason T. Greene
jason.greene at redhat.com
Wed Jan 19 20:55:25 EST 2011
Previously I mentioned the possibility of a console so lightweight that
it can be included inline on the DC process.
I threw together a basic example in a few minutes that demonstrates how
a GWT->JSON application (using the GWT JSON sample) can be trivially
served up via the JDK http server API with barely any overhead.
http://community.jboss.org/servlet/JiveServlet/download/16363-1-24960/embedded-demo.jar
Source:
http://community.jboss.org/servlet/JiveServlet/download/16363-3-24962/ResourceServer.java.zip
Just do java -jar embedded-demo.jar, and go to http://localhost:8000.
Our management console architecture could follow a similar approach. We
would have both the REST/JSON Domain API and console collected in the
same DC JVM. The console would then just be static content
(javascript/html) that issues the proper JSON requests via HttpRequest.
It's also possible to do GWT-RPC this way, but that would essentially be
adding an extra layer, which is likely not needed. In both cases we
would be shifting state to client, which saves resources.
--
Jason T. Greene
JBoss, a division of Red Hat
More information about the jboss-as7-dev
mailing list