From: RefuX Z. <re...@ya...> - 2002-04-26 21:35:33
|
I looking at the ARCH4J MessageQueueFacade JavaDoc's example code: --- snip --- MessageQueueFacade qFacade = MessagingProvider.getProvider().getMessageQueueFacade(false); QueueSender sender = qFacade.createQueueSender("exampleQueue"); qFacade.startConnection(); TextMessage message = qFacade.createTextMessage(new StringBuffer("Hello Whirled")); sender.send(message); sender.close(); qFacade.close(); --- snip --- and was thinking, why don't we just do the 'sender.close()' in qFacade.close() ? I understand there could be multiple QueueSenders within the scope of one QueueFacade instance, but there's no reason why we couldn't track them all and just close them all (if they're not already closed) automagically on qFacade.close() Thoughts? __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ |