File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Queue Connection Factories - one-to-one with queues?

 
Jimmy Ho
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've noticed a lot of sample code where a Queue Connection Factory is set up on the server and is always paired up with a Queue. Do I always need a separate QCF for every queue, or can I have one QCF that help me instantiate a bunch of queues?

My specific environment is WebSphere Application Server 5.1, running WebSphere MQ 5.3.x.
 
Scott Selikoff
author
Saloon Keeper
Posts: 3896
16
Eclipse IDE Flex Google Web Toolkit
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A connection factory can have multiple queues. Read up on the "factory pattern". The idea of the pattern is that it generates a general type of object, but not necessarily of a specific class.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic