return (null);
}
private JMSDestinationInfo[] listDestinationsByType(String destType, String[][] s)
{
JMSDestinationInfo destInfo;
Vector dests = new Vector();
String destName, type;
String lookFor = null;
if (destType.equals(JMSAdminConstants.JMS_DEST_TYPE_TOPIC))
lookFor = Integer.valueOf(JMSConstants.TOPIC).toString();
else
lookFor = Integer.valueOf(JMSConstants.QUEUE).toString();
// Convert the array[1] from JMSAdminConstants.QUEUE/TOPIC
// to a JMSConstants.QUEUE/TOPIC
int j = 0;
for (int i = 0; i < s[1].length; i++) {
if (s[1][i].equals(lookFor)) {
destName = s[0][i];
if (s[1][i].equals(Integer.valueOf(JMSConstants.QUEUE).toString())) {
type = JMSAdminConstants.JMS_DEST_TYPE_QUEUE;
} else if (s[1][i].equals(Integer.valueOf(JMSConstants.TOPIC).toString())) {
type = JMSAdminConstants.JMS_DEST_TYPE_TOPIC;
} else {
type = "";
}
destInfo = new JMSDestinationInfo(destName, type);
dests.addElement(destInfo);
}
}
if (dests.size() > 0) {
Object objArray[] = dests.toArray();
JMSDestinationInfo jmsDestArray[];
int size = dests.size();
jmsDestArray = new JMSDestinationInfo [size];
for (int i = 0; i < size; ++i) {