DetectingJBossStartedWithTwiddle

Version 9

    Detecting JBoss Status

    JBoss comes with TWIDDLE, a simple command line tool that may be used, manually or as part of a script, to indicate whether the server has been started/stopped successfully.

     

    Before you start

    Before running JBoss inspect if your JMX invoker requires authentication before it allows a client to establish connection with it.

    Note,

     

    a) Twiddle uses default JNDI name of - jmx/invoker/RMIAdaptor

     

    b) If you application deployment does not have jmx-invoker-service.xml , JMX invoker will not be registered with JNDI

     

    c) Copy jmx-invoker-service.xml from all/deploy to MyApp/deploy

     

    d) Start JBoss

     

    Starting TWIDDLE from the command line Win32

    • Without authentication:   twiddle get "jboss.system:type=Server" Started

    • With authentication:      twiddle -u username -p password get "jboss.system:type=Server" Started

     

    Starting TWIDDLE from the command line Linux

    • Without authentication:   ./twiddle.sh get jboss.system:type=Server Started

    • With authentication:      ./twiddle.sh -u username -p password get jboss.system:type=Server Started

     

    Starting TWIDDLE in RedHat Developer Studio

     

    Select your server in the Jboss Server View Tab right-click and select Twiddle Server

    • Without authentication:   -s localhost:1099 -a jmx/rmi/RMIAdaptor get jboss.system:type=Server Started

    • With authentication:      -s localhost:1099 -a jmx/rmi/RMIAdaptor-u username -p password get jboss.system:type=Server Started

     

     

    Referenced by: