Author |
Message
|
mqjeff |
Posted: Mon Sep 28, 2009 8:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Don't use WMQInitialContextFactory.
Unless you know exactly what it does and exactly why you are using it.
Use File Context or a real JNDI. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Sep 28, 2009 9:00 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
strongly  _________________ MQ & Broker admin |
|
Back to top |
|
 |
isanchos |
Posted: Mon Sep 28, 2009 11:30 pm Post subject: |
|
|
Newbie
Joined: 28 Sep 2009 Posts: 3
|
I need to use WMQInitialContextFactory for my test. I fix this bug(add to project jar with com.ibm.mq.MQException class) and now i have new exception javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager localhost:1415/SYSTEM.DEF.SVRCONN [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2195'.]  |
|
Back to top |
|
 |
Vitor |
Posted: Tue Sep 29, 2009 7:36 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
isanchos wrote: |
I need to use WMQInitialContextFactory for my test. |
Why? What value does this offer over the other options? Especially over file context, which is great for tests?
isanchos wrote: |
I fix this bug(add to project jar with com.ibm.mq.MQException class) and now i have new exception javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager localhost:1415/SYSTEM.DEF.SVRCONN [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2195'.]  |
Well as you've undoubtably discovered from your research, 2195 is unexpected error. Whatever you're doing is causing the queue manager to throw an abend. Look up the ProbeId in the FDC file that would have been produced and see what's happening.
Or try a different JNDI. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
isanchos |
Posted: Tue Sep 29, 2009 8:12 am Post subject: |
|
|
Newbie
Joined: 28 Sep 2009 Posts: 3
|
Im trying connect to mq(using WMQInitialContextFactory) all day I have fail. After some google serfing i try another way. I am use JmsConnectionFactory class And I connect to my MQ !!!
Now I understand that the study of MQ just beginning
Thanks all for help! |
|
Back to top |
|
 |
shivam_mukhi |
Posted: Thu Jan 31, 2013 8:07 pm Post subject: Re: Jar files to connect to IBM MQ from standalone Java prog |
|
|
Newbie
Joined: 31 Jan 2013 Posts: 4
|
Vitor wrote: |
sailussr wrote: |
Can I send messages to MQ using a java program alone without MQ Series Client/Server installation on my local machine. |
It's not recommended, and there are good reasons why it's not. Specifically it's better to use the jar files that come with the product than bundle them with your application, so that when the product is updated the jar files are updated.
sailussr wrote: |
where can I download the following jar files:
com.ibm.mq.jar ,com.ibm.mqjms.jar |
They're part of the client installation.
sailussr wrote: |
do they come only with server installation? |
No, they're part of the client installation.
sailussr wrote: |
Anyone has any suggestions where I can get these jar files? |
Download and install the client. |
Hi all,
Can you please help me to find the jms_mq_installer.exe ? I am unable to find it.
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Feb 01, 2013 5:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
shivam_mukhi |
Posted: Sun Feb 03, 2013 8:58 pm Post subject: |
|
|
Newbie
Joined: 31 Jan 2013 Posts: 4
|
|
Back to top |
|
 |
|