I had the same problem until I discovered the following. If you look at the
sample JMS programs that came with SwiftMQ, you will see they all call
SampleUtilities.exit(exitResult). Looking at the code for that exit()
method, you find the following. Note the comment.
/**
* The exit method is needed because of an RMI/IIOP bug that causes
JMS
* programs to exit only with an explicit call to System.exit().
*
* @param result The exit result; 0 indicates no errors
*/
public static void exit(int result) {
System.exit(result);
}
I found I always need to call System.exit() to get my apps to exit properly.
Perhaps someone else with more experience in this area (I am new to JMS and
SwiftMQ) can shed more light on this.
Geoffrey A. Lowney
Senior Software Development Engineer
Recreational Equipment, Inc.
Phone 253-395-8164 Fax 253-437-7291
Pager 206-625-8477 [EMAIL PROTECTED]
[EMAIL PROTECTED] http://www.rei.com/
In order to draw a limit to thinking, we should have to think both sides
of this limit.
-- Ludwig Wittgenstein, Tractatus Logico-Philosophicus
> -----Original Message-----
> From: Chintu Vijay [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 9:21 PM
> To: [EMAIL PROTECTED]
> Subject: [developers] Problem in close()
>
>
> I have written a normal java class with a main method
> which connects to swiftmq router and listens for
> messages. Listner is implemented as inner classes.
>
> My question is:------
>
> When i close a connection with QueueConnection.close()
> it just waits and doesnt comeout of the application.
> I have to come out by doing a System.exit(0).
>
> Thanks
> Chintu
>
> __________________________________________________
> 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/