ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » SIMULTANEOUS ACCESS TO QUEUE MANAGER FROM MULTIPLE THREADS?

Post new topic  Reply to topic
 SIMULTANEOUS ACCESS TO QUEUE MANAGER FROM MULTIPLE THREADS? « View previous topic :: View next topic » 
Author Message
KAKEZ
PostPosted: Fri May 23, 2003 6:30 am    Post subject: SIMULTANEOUS ACCESS TO QUEUE MANAGER FROM MULTIPLE THREADS? Reply with quote

Centurion

Joined: 10 Oct 2002
Posts: 117

Hi,

I read in the mqseries "Websphere MQ Using Java" documentation, page 72, subject "Multithreaded programs":

<The implementation of WebSphere MQ classes for Java ensures that, for a given connection (MQQueueManager object instance), all access to the target WebSphere MQ queue manager is synchronized. Therefore, a thread wishing to issue a call to a queue manager is blocked until all other calls in progress for that connection are complete.

If you require simultaneous access to the same queue manager from multiple threads within your program, create a new MQQueueManager object for each thread that requires concurrent access. (This is equivalent to issuing a separate MQCONN call for each thread.)>

Please I would like to know if it is true, as said in the documentation shown above that within a Java application several threads may each create a new MQQueueManager object and issu a separate MQCONN, get a specific Hconn and so be able to have concurrent connections to the same QMGR at the same time?

It was long to explain but very important when thinking about how to get performance when running several threads within an application.

Other thing, that is only possible with Java appli and not possible with a C or C++ appli?

Thanks for help.
Jack
Back to top
View user's profile Send private message
bduncan
PostPosted: Fri May 23, 2003 9:36 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

As far as I know, the documentation is correct and applies to any language which supports multithreading...
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » SIMULTANEOUS ACCESS TO QUEUE MANAGER FROM MULTIPLE THREADS?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.