wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Queue Connection Factories - one-to-one with queues?
 
Similar Threads
Difference between JMS Queue and MQ queue
How many Queues per QueueConnectionFactory?
NoClassDefFoundError when doing Queue CF lookup
JCA and Message Driven Beans
JNDI lookup java:comp/env/ in WSAD Test Server for P2P JMS