public QueuedMessage[] listQueuedMessages() throws Exception {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "listQueuedMessages");

    List list = new ArrayList();

    Iterator iter = _c.getQueuedMessageIterator();
    while (iter != null && iter.hasNext()) {
      SIMPQueuedMessageControllable o = (SIMPQueuedMessageControllable) iter.next();
      list.add(o);
    }

    List resultList = new ArrayList();
    iter = list.iterator();
    int i = 0;
    while (iter.hasNext()) {
      Object o = iter.next();
      QueuedMessage qm = SIBMBeanResultFactory.createSIBQueuedMessage((SIMPQueuedMessageControllable) o);
      resultList.add(qm);
    }

    QueuedMessage[] retValue = (QueuedMessage[])resultList.toArray(new QueuedMessage[0]);

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "listQueuedMessages", retValue);
    return retValue;
  }
public QueuedMessage [ ] listQueuedMessages ( ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "listQueuedMessages" ) ; List list = new ArrayList ( ) ; Iterator iter = _c . getQueuedMessageIterator ( ) ; while ( iter != null && iter . hasNext ( ) ) { SIMPQueuedMessageControllable o = ( SIMPQueuedMessageControllable ) iter . next ( ) ; list . add ( o ) ; } List resultList = new ArrayList ( ) ; iter = list . iterator ( ) ; int i = 0 ; while ( iter . hasNext ( ) ) { Object o = iter . next ( ) ; QueuedMessage qm = SIBMBeanResultFactory . createSIBQueuedMessage ( ( SIMPQueuedMessageControllable ) o ) ; resultList . add ( qm ) ; } QueuedMessage [ ] retValue = ( QueuedMessage [ ] ) resultList . toArray ( new QueuedMessage [ 0 ] ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "listQueuedMessages" , retValue ) ; return retValue ; }
OPERATIONS