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 » General IBM MQ Support » JMSQueueConnectionFactoryHandle

Post new topic  Reply to topic
 JMSQueueConnectionFactoryHandle « View previous topic :: View next topic » 
Author Message
shammi_3
PostPosted: Tue Jun 26, 2007 1:22 pm    Post subject: JMSQueueConnectionFactoryHandle Reply with quote

Newbie

Joined: 26 Jun 2007
Posts: 6

Hi

can anyone tell me
how to get the MQQueueConnectionFactory from JMSQueueConnectionFactoryHandle

Thanks
Back to top
View user's profile Send private message
rparti
PostPosted: Tue Jun 26, 2007 4:26 pm    Post subject: Reply with quote

Voyager

Joined: 05 Oct 2005
Posts: 86
Location: U.S.A.

What are you trying to do?
Back to top
View user's profile Send private message
shammi_3
PostPosted: Wed Jun 27, 2007 6:38 am    Post subject: JMSQueueConnectionFactoryHandle Reply with quote

Newbie

Joined: 26 Jun 2007
Posts: 6

I am using webspheer server.
In the server QCF is configured with some jndi name, and it has the details of channel, manager, queue.
and from my program I am doing a jndi lookup for this QCF.
and want to display the details like channel, manager, queue names.

but the look up is returning the JMSQueueConnectionFactoryHandle, and i dont know how to get the details of it.

Please help me to get the QCF details.

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 27, 2007 6:44 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Isn't the point of JNDI to abstract information like this from application programs?

(I ask as an honest attempt to get my head round one of the few bits of Java I almost understand )
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rparti
PostPosted: Wed Jun 27, 2007 8:02 am    Post subject: Re: JMSQueueConnectionFactoryHandle Reply with quote

Voyager

Joined: 05 Oct 2005
Posts: 86
Location: U.S.A.

shammi_3 wrote:

but the look up is returning the JMSQueueConnectionFactoryHandle, and i dont know how to get the details of it.


That is exactly what the lookup should return.
use this handle to create a connection.

Also get a lookup of the queue and use that lookup to connect to the queue

Refer to any JMS guide for details
Back to top
View user's profile Send private message
shammi_3
PostPosted: Wed Jun 27, 2007 8:08 am    Post subject: JMSQueueConnectionFactoryHandle Reply with quote

Newbie

Joined: 26 Jun 2007
Posts: 6

is there any way we can get the channel names from JMSQueueConnectionFactoryHandle

or Quemangers assoiciated with this
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 27, 2007 8:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Are you trying to write a monitoring application?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
shammi_3
PostPosted: Wed Jun 27, 2007 8:18 am    Post subject: JMSQueueConnectionFactoryHandle Reply with quote

Newbie

Joined: 26 Jun 2007
Posts: 6

yeah similar to that.
Back to top
View user's profile Send private message
rparti
PostPosted: Wed Jun 27, 2007 8:19 am    Post subject: Reply with quote

Voyager

Joined: 05 Oct 2005
Posts: 86
Location: U.S.A.

Why would you need to get channel names?
Back to top
View user's profile Send private message
shammi_3
PostPosted: Wed Jun 27, 2007 8:22 am    Post subject: JMSQueueConnectionFactoryHandle Reply with quote

Newbie

Joined: 26 Jun 2007
Posts: 6

My requirement is i will get the QCF jndi name and i have to retrieve all the channels, and Q managers associated with it.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 27, 2007 8:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Have you considered casting the JMSQueueConnectionFactoryHandle to an MQQueueConnectionFactory?

Have you considered using JNDI methods to read the JNDI configuration information, rather than looking up the actual object and trying to query it for properties?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
shammi_3
PostPosted: Wed Jun 27, 2007 9:02 am    Post subject: JMSQueueConnectionFactoryHandle Reply with quote

Newbie

Joined: 26 Jun 2007
Posts: 6

i tried to cast it to MQQueueConnectionFactory
but it is throwing the cast exception.
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 » General IBM MQ Support » JMSQueueConnectionFactoryHandle
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.