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 » JMS Queue Connection Factory

Post new topic  Reply to topic
 JMS Queue Connection Factory « View previous topic :: View next topic » 
Author Message
vanessa
PostPosted: Wed Feb 06, 2002 8:28 am    Post subject: Reply with quote

Novice

Joined: 24 Jan 2002
Posts: 22

how do i get QueueConnectionFactory in JMS without using JNDI.
Is there any way we get it without using MQ specific com.ibm.mq.jms.MQQueueConnectionFactory.


thanks
Back to top
View user's profile Send private message
Vin
PostPosted: Tue Mar 26, 2002 8:14 pm    Post subject: Reply with quote

Master

Joined: 25 Mar 2002
Posts: 212
Location: India

The QueueConnection Factory is one of the administered objects. You either need to register this object in JNDI or write a wrrapper around MQ which will return a connection to MQSeries. This wrapper uses MQ classes to get a connection.
Back to top
View user's profile Send private message
kolban
PostPosted: Tue Mar 26, 2002 8:49 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Import the package com.ibm.mq.jms.*;

Create an instance of an MQQueueConnectionFactory object. It is sub class of javax.jms.QueueConnectionFactory and hence can be used anywhere that can. See the Using Java manual for the reference on this class and not the methods marked with a "*". They are NOT JMS but allow you to set the "administered object properties" from within your app. Great for testing.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Mar 27, 2002 9:56 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Take a look at the sample JMS program PTPSample01 provided by IBM.

It has an option to not use JNDI, so you can see the code needed.

Cheers,

_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS Queue 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.