}
public synchronized Collection discoverDestinationConfigs() throws JMSException
{
final Collection rval = new ArrayList();
PCFMessageAgent agent = null;
try
{
agent = new PCFMessageAgent(getQueueManager());
getQueueByType(agent, MQC.MQQT_LOCAL, rval) ;
getQueueByType(agent, MQC.MQQT_ALIAS, rval) ;
}
catch (MQException ex)
{
if (ex.reasonCode != 2033)
{
throw new HermesException(ex) ;
}
else
{
log.debug("PCF calls gave a 2033 reason code, ignoring") ;
}
}
catch (Exception ex)
{
throw new HermesException(ex);
}
finally
{
if (agent != null)
{
try
{
agent.disconnect();
}
catch (MQException e)
{
log.error(e.getMessage(), e);
}