|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SIMULTANEOUS ACCESS TO QUEUE MANAGER FROM MULTIPLE THREADS? |
« View previous topic :: View next topic » |
Author |
Message
|
KAKEZ |
Posted: Fri May 23, 2003 6:30 am Post subject: SIMULTANEOUS ACCESS TO QUEUE MANAGER FROM MULTIPLE THREADS? |
|
|
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 |
|
 |
bduncan |
Posted: Fri May 23, 2003 9:36 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|