Thursday, 15 November 2012

Script to find Default JMS Queue Details in WAS

To get the default JMS Queue details in WAS (Web sphere Application Server), below “jacl” script can be used.
set perfName [$AdminControl queryNames WebSphere:type=SIBQueuePoint,name=QUEUE_NAME,process=server1,*"]

set identifier [$AdminControl getAttribute $perfName identifier]

puts [$AdminControl getAttributes $perfName]
Let say we have saved above script in file called “test.jacl”, then it can be executed from WAS_HOME/bin as below:-
./wsadmin.sh -lang jacl -user <user-id> -password <password> -conntype SOAP -port <SOAP-Port> -f test.jacl

Output Will be like:-

WASX7209I: Connected to process "server1" on node <NODE-NAME> using SOAP connector;  The type of process is: UnManagedProcess
WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[QUEUE_NAME]"

{depth 0} {state ACTIVE} {id 94828E41C96C098B9A781FF9_QUEUE_189} {identifier QUEUE_NAME} {highMessageThreshold 50000} {sendAllowed true}

No comments:

Post a Comment