ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Queue Connection Factory VS Connection Factory

Post new topic  Reply to topic
 Queue Connection Factory VS Connection Factory « View previous topic :: View next topic » 
Author Message
qcf
PostPosted: Mon Aug 01, 2005 11:23 pm    Post subject: Queue Connection Factory VS Connection Factory Reply with quote

Novice

Joined: 25 Jul 2005
Posts: 10
Location: Australia

What is the difference between Connection Factory (CF) and Queue Connection Factory (QCF) in JMS?
When to use which?
When I define JNDI name for WMQ objects for Point-to-Point connection should I just define QCF and no need to define the CF?
Back to top
View user's profile Send private message
fschofer
PostPosted: Tue Aug 02, 2005 12:30 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

use the QueueConnectionFactory.

ConnectionFactory is the superclass of QueueConnectionFactory.
Its only needed to inherit code to its two subclasses QueueConnectionFactory and TopicConnectionFactory.

For more information look here
http://java.sun.com/docs/books/tutorial/java/javaOO/subclasses.html

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
JLRowe
PostPosted: Tue Aug 02, 2005 3:54 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

This was a change in JMS 1.1, it's just so that you can use a CF instead of a QCF or TCF. It allows your code to work with either topics or queues, before this you had to code to either a queue or a topic.
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Tue Aug 02, 2005 5:38 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I believe the change also allows you to do publish/subscribe and point-to-point in the same unit of work. Before, they would be separate because of where you had access to objects.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Queue Connection Factory VS Connection Factory
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.