Author |
Message
|
shammi_3 |
Posted: Tue Jun 26, 2007 1:22 pm Post subject: JMSQueueConnectionFactoryHandle |
|
|
Newbie
Joined: 26 Jun 2007 Posts: 6
|
Hi
can anyone tell me
how to get the MQQueueConnectionFactory from JMSQueueConnectionFactoryHandle
Thanks |
|
Back to top |
|
 |
rparti |
Posted: Tue Jun 26, 2007 4:26 pm Post subject: |
|
|
 Voyager
Joined: 05 Oct 2005 Posts: 86 Location: U.S.A.
|
What are you trying to do? |
|
Back to top |
|
 |
shammi_3 |
Posted: Wed Jun 27, 2007 6:38 am Post subject: JMSQueueConnectionFactoryHandle |
|
|
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 |
|
 |
Vitor |
Posted: Wed Jun 27, 2007 6:44 am Post subject: |
|
|
 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 |
|
 |
rparti |
Posted: Wed Jun 27, 2007 8:02 am Post subject: Re: JMSQueueConnectionFactoryHandle |
|
|
 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 |
|
 |
shammi_3 |
Posted: Wed Jun 27, 2007 8:08 am Post subject: JMSQueueConnectionFactoryHandle |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Jun 27, 2007 8:17 am Post subject: |
|
|
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 |
|
 |
shammi_3 |
Posted: Wed Jun 27, 2007 8:18 am Post subject: JMSQueueConnectionFactoryHandle |
|
|
Newbie
Joined: 26 Jun 2007 Posts: 6
|
|
Back to top |
|
 |
rparti |
Posted: Wed Jun 27, 2007 8:19 am Post subject: |
|
|
 Voyager
Joined: 05 Oct 2005 Posts: 86 Location: U.S.A.
|
Why would you need to get channel names? |
|
Back to top |
|
 |
shammi_3 |
Posted: Wed Jun 27, 2007 8:22 am Post subject: JMSQueueConnectionFactoryHandle |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Jun 27, 2007 8:41 am Post subject: |
|
|
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 |
|
 |
shammi_3 |
Posted: Wed Jun 27, 2007 9:02 am Post subject: JMSQueueConnectionFactoryHandle |
|
|
Newbie
Joined: 26 Jun 2007 Posts: 6
|
i tried to cast it to MQQueueConnectionFactory
but it is throwing the cast exception. |
|
Back to top |
|
 |
|