The code example on the IBM WAS Infocenter for retrieving the config
id of a JMS queue is misleading.

http://publib.boulder.ibm.com/infoce...ueue_show.html

The correct usage is:

set queueId [ $AdminConfig getid /J2CAdminObject:$queueName/ ]


if { [ catch { $AdminConfig getid /J2CAdminObject:$queueName/ }
queueId ] == 0 } {

if { $queueId != {} } {

putsLog "!SIB JMSQueue $queueName already exists"
putsLog "deleting SIB JMSQueueination
$queueName............"

if { [ catch { $AdminTask deleteSIBJMSQueue $queueId } r ]
== 0 } {

putsLog " SIB JMS Queue $queueName removed
sucessfully"

} else {

putsLog " !ERROR: failed to delete SIB JMS Queue
$queueName "
return -code error $r

}

}

}