aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Queue Connection Factories - one-to-one with queues? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Queue Connection Factories - one-to-one with queues?" Watch "Queue Connection Factories - one-to-one with queues?" New topic
Author

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

Jimmy Ho
Ranch Hand

Joined: Jul 31, 2007
Posts: 61
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

Joined: Oct 23, 2005
Posts: 3716
    
    5

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.


My Blog: Down Home Country Coding with Scott Selikoff
 
Consider Paul's rocket mass heater.
 
subject: Queue Connection Factories - one-to-one with queues?