This works fine, but it returns immediately and the router takes 10-20
seconds to exit. Is there any way to halt a router and have the command
block until the router is really gone?

Thanks,
Brian

> -----Original Message-----
> From: Andreas Mueller [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 18, 2001 3:44 AM
> To: [EMAIL PROTECTED]
> Subject: [developers] CLosing SwiftMQ
> 
> 
> 
> Check this:
> 
> http://www.swiftmq.com/cliadminapi.html#MARK_2
> 
> -- 
> Andreas Mueller, [EMAIL PROTECTED], IIT GmbH, Bremen/Germany, 
> http://www.iit.de
> SwiftMQ, JMS Enterprise Messaging System, http://www.swiftmq.com
> --------------------------------------------------------------
> ---------
> Support SwiftMQ! PLEASE vote for SwiftMQ as "Best Java 
> Messaging Tool":
>          http://www.sys-con.com/java/readerschoice2001/
> 
> 
> -----Original Message-----
> From: "Van Sioung Ng Yan Tun" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Thu, 18 Jan 2001 16:31:38 +0800
> Subject: [developers] CLosing SwiftMQ
> 
> > Hi,
> > 
> > I have used the steps you described below:
> > However, I noticed sometimes it is able to shout down the router and
> > sometimes it genrate the following errors :
> > com.swiftmq.admin.cli.CLIException: Router 'router1' is unknown.
> > 
> > ----- Original Message -----
> > From: "Andreas Mueller" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, January 18, 2001 4:24 PM
> > Subject: [developers] CLosing SwiftMQ
> > 
> > 
> > >
> > > You must first use the 'sr' command to switch to the appropriate
> > router:
> > >
> > > cli.executeCommand("sr router1");
> > > cli.executeCommand("halt");
> > >
> > > --
> > > Andreas Mueller, [EMAIL PROTECTED], IIT GmbH, Bremen/Germany,
> > http://www.iit.de
> > > SwiftMQ, JMS Enterprise Messaging System, http://www.swiftmq.com
> > >
> > 
> --------------------------------------------------------------
> ---------
> > > Support SwiftMQ! PLEASE vote for SwiftMQ as "Best Java Messaging
> > Tool":
> > >          http://www.sys-con.com/java/readerschoice2001/
> > >
> > >
> > > -----Original Message-----
> > > From: "Van Sioung Ng Yan Tun" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Date: Thu, 18 Jan 2001 15:47:18 +0800
> > > Subject: [developers] CLosing SwiftMQ
> > >
> > > >
> > > >
> > > >    cli = new CLI(connection);
> > > >
> > > >     cli.executeCommand("halt");
> > > >
> > > >
> > > > After I used the above command, I got the following error :
> > > > com.swiftmq.admin.cli.CLIException: Unknown command
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Andreas Mueller" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, January 18, 2001 3:30 PM
> > > > Subject: [developers] CLosing SwiftMQ
> > > >
> > > >
> > > > >
> > > > > > Is there any way one can close SwiftMQ router using 
> CLI api or
> > > > through
> > > > > > a batch script .
> > > > > > If so , how is it done?
> > > > >
> > > > > Execute the CLI 'halt' command.
> > > > >
> > > > > --
> > > > > Andreas Mueller, [EMAIL PROTECTED], IIT GmbH, Bremen/Germany,
> > > > http://www.iit.de
> > > > > SwiftMQ, JMS Enterprise Messaging System, 
> http://www.swiftmq.com
> > > > >
> > > >
> > 
> --------------------------------------------------------------
> ---------
> > > > > Support SwiftMQ! PLEASE vote for SwiftMQ as "Best 
> Java Messaging
> > > > Tool":
> > > > >          http://www.sys-con.com/java/readerschoice2001/
> > > > >
> > > > >
> > > > > ------------------------------------------------------
> > > > > 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/
> > > >
> > > >
> > > >
> > >
> > >
> > > ------------------------------------------------------
> > > 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/
> > 
> > 
> > 
> 
> 
> ------------------------------------------------------
> 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/




Reply via email to