Got it. Thanks !

//Nicholas


--- Oliver Sy <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> You might need another line of code there:
> 
> cli.waitForRouter("router1");
> 
> before "sr router1"
> 
> Try it.
> 
> Oliver
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Nicholas
> Sent: Monday, July 09, 2001 1:57 PM
> To: [EMAIL PROTECTED]
> Subject: [developers] CLI Interface Problem/Question
> 
> 
> I am having a problem with the following code:
> 
>  cli = new CLI(conn);
>  cli.executeCommand("sr router1");
>  cli.executeCommand("cc /sys$queuemanager/queues");
>  String[] allQueueNames = cli.getContextEntities();
> 
> I get an error saying that router1 is not found.
> However, if I walk through the code in a  debugger
> (slowly) or place a Thread.sleep() in between
> statements in the code, it works fine.
> 
> Any ideas ?
> 
> //Nicholas
> 
> =====
> Nicholas Whitehead
> Home: (973) 377 9335
> Cell: (973) 615 9646
> [EMAIL PROTECTED]
> 
> Laugh your pants off with Lionel at eYada.com.
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
> 
>
------------------------------------------------------
> SwiftMQ developers mailing list *
> http://www.swiftmq.com
> To unsubscribe from this list, send an eMail to 
> [EMAIL PROTECTED] and write in the body of your
> message:
> UNSUBSCRIBE developers <your-email-address>
> Archive:
> http://www.mail-archive.com/developers@mail.iit.de/
> 
> 
>
------------------------------------------------------
> SwiftMQ developers mailing list *
> http://www.swiftmq.com
> To unsubscribe from this list, send an eMail to 
> [EMAIL PROTECTED] and write in the body of your
> message:
> UNSUBSCRIBE developers <your-email-address>
> Archive:
> http://www.mail-archive.com/developers@mail.iit.de/
> 
> 
> 
> 


=====
Nicholas Whitehead
Home: (973) 377 9335
Cell: (973) 615 9646
[EMAIL PROTECTED]

Laugh your pants off with Lionel at eYada.com.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to 
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to