[jboss-dev-forums] [Design of JBoss Tools (dev)] - JBoss AS - Starting, Stopping, Polling in AS 5

rob.stryker@jboss.com do-not-reply at jboss.com
Wed Jan 16 16:25:47 EST 2008


Currently, AS Tools executes run.jar and shutdown.jar respectively to start and stop the server. For polling, it loads the proper classes from the AS folder and executes a JMX call to find out if the server is up or not.  (An alternate "dumb" pollre is available which does no polling at all and just sets the server's state as "Started" in the tooling after a specified duration.)

The polling, which defaults to JMX for startup, does not work with current JBoss 4.x minimal configurations, so any input on the best way to determine if the server is up is welcome.

The design of polling currently is pretty moduler, allowing different poller types to be added and used, so if the API to determine if AS 5 is stopped, starting, started, or stopping has changed, a new poller can easily be created and can use whatever the new APIs are. So long as there *are* APIs to check.  

The currently implementation uses jmx/invoker/RMIAdaptor, searches for the object  jboss.system:type=Server,  and checks the "Started" attribute of that object. 

Will this MBean exist in JBoss 5? If it will, then no substantial changes will need to be made to the poller itself, though some will to find the proper jars.   If it doesn't exist, then I'll need to find out which new API to use for a custom JBoss 5.0 poller. 

- Rob Stryker

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120647#4120647

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120647



More information about the jboss-dev-forums mailing list