How do I check my application status from shell?

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

 

This is a two process step: at first you need to retrieve the deployment-id associated with your application:

twiddle -s localhost:1099 query jboss.web.deployment:*

jboss.web.deployment:war=invoker.war,id=1188245482
jboss.web.deployment:war=jbossmq-httpil.war,id=818328454
jboss.web.deployment:war=jmx-console.war,id=-742061087
jboss.web.deployment:war=jboss-seam-registration.war,id=209639553
jboss.web.deployment:war=jbossws-context.war,id=270573684
jboss.web.deployment:war=jboss-profiler.war,id=1640316612
jboss.web.deployment:war=jboss-seam-messages.war,id=-632397857
jboss.web.deployment:war=ROOT.war,id=1273039891
jboss.web.deployment:war=jboss-seam-numberguess.war,id=-1863357686
jboss.web.deployment:war=Gap.war,id=-1263613270
jboss.web.deployment:war=web-console.war,id=2121270277

Now feed this id to twiddle issuing a get request :

twiddle -s localhost:1099 get --noprefix "jboss.web.deployment:war=Gap.war,id=-1263613270" StateString

Started

Notice that Unix users can use the magic "expansion" facility to get this just in one step:

./twiddle.sh -s 127.0.0.1:1099 get --noprefix `./twiddle.sh -s 127.0.0.1:1099 query jboss.web.deployment:* | grep war_name` StateString

Related articles available on mastertheboss.com

How do I get the list of MBeans with twiddle?

  JBoss provides a simple command line tool that allows for inte

How to count active session with twiddle ?

  There are some well known alternatives to count the number of

How do I run garbage collector from shell?

  You can suggest JBoss to run the garbage collector in differen

How do you shut down multiple JBoss instances?

  Supposing you have configured 2 instances of JBoss, one on por

twiddle reference guide

Please note: twiddle is not available any more as default Command

AS 7 Graphical CLI

One new feature of the release 7.1.0 of JBoss AS is the Graphical

Follow us on Twitter