This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes Do i need to disconnect queue manager, send queue after i send each message? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Do i need to disconnect queue manager, send queue after i send each message?" Watch "Do i need to disconnect queue manager, send queue after i send each message?" New topic
Author

Do i need to disconnect queue manager, send queue after i send each message?

Emil Iakoupov
Greenhorn

Joined: Oct 14, 2008
Posts: 4
I have MQ code that i use to send messages. Basically i create an object then i call its send method. In there i send a message and disconnect and close send queue after message is sent. Should i maybe cache queue and queue manager and send? Below is the code i use:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Do i need to disconnect queue manager, send queue after i send each message?
 
Similar Threads
Unable to set the userId in the MQ header
MQ: MQException: Completion Code 2, Reason 2033
MQWebsphere(MQJE001: An MQException occurred: Completion Code 2, Reason 2059)
Help With Simple Java MQ Connection?
parameter in threads