Errai: The browser as a platform

Monday, March 29, 2010

Visual Bus Monitor


For the past few weeks, I've been focusing on seeing how we can improve the development / debugging experience with ErraiBus. The biggest component of this, is our new Swing-based ErraiBus Monitor application.

It's really straight-forward to get up and running.

You simply add it as a runtime dependency, and bootstrap GWT Development Mode with the -Derrai.tools.bus_monitor_attach=true VM flag, and this magical UI should automatically appear as ErraiBus bootstraps.

When the monitor is activated, it attaches probes in into the bus and records all activity accordingly. You can drill down into individual services and examine individual messages that have been received to debug any mysterious problems that arise.

There will be more details to come as I firm up the tool, but I thought I'd share my progress with the community since Heiko says I don't blog enough :)

3 comments:

  1. Is it possible to use the monitor in an jboss AS 7 situation?
    I have tried it by adding the define to the standalone.conf.bat but no luck.

    ReplyDelete
  2. Hi
    You say the UI automatically appears. This is not the case for me. Do I need to open a special view? I did not find anything "ERRAI" like. Should I see anything in the JBoss server log?
    I am on Eclipse Juno with ERRAI 2.1

    ReplyDelete
  3. We found the solution. We use JBoss and needed to add the following flags to the JBoss launch configuration VM arguments
    -Derrai.tools.bus_monitor_attach=true -Djava.awt.headless=false

    In the first place, we added the flags to the GWT web app launcher, which was wrong.

    ReplyDelete