Could be an issue with listSIBJMSConnectionFactories.



These commands return nothing.



set nodeId [ $AdminConfig getid /Node: $AdminControl getNode ]

set serverId $AdminConfig getid /Server:$serverName



set sibJMSConnectionFactoryList $AdminTask listSIBJMSConnectionFactories $serverId

set sibJMSConnectionFactoryList $AdminTask listSIBJMSConnectionFactories $nodeId


Hoever "$AdminConfig getid /J2CConnectionFactory:$name/" works.



E.G.



if { catch { $AdminConfig getid /J2CConnectionFactory:$name/ } j2cId == 0 } {



if { $j2cId != {} } {



putsLog "! SIB JMS Connection Factory already exists"

putsLog "deleting SIB JMS Connection Factory $name............"



if { catch { $AdminTask deleteSIBJMSConnectionFactory $j2cId } r == 0 } {



putsLog " SIB JMS Connection Factory $name removed sucessfully"



} else {



putsLog " !ERROR: failed to delete SIB JMS Connection Factory $name"

return -code error $r



}



}



}