File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 3702
    
    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?
 
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