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 » Jar files to connect to IBM MQ from standalone Java program

Post new topic  Reply to topic Goto page Previous  1, 2
 Jar files to connect to IBM MQ from standalone Java program « View previous topic :: View next topic » 
Author Message
mqjeff
PostPosted: Mon Sep 28, 2009 8:37 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Sep 28, 2009 9:00 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

strongly
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
isanchos
PostPosted: Mon Sep 28, 2009 11:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Sep 29, 2009 7:36 am    Post subject: Reply with quote

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
View user's profile Send private message
isanchos
PostPosted: Tue Sep 29, 2009 8:12 am    Post subject: Reply with quote

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
View user's profile Send private message
shivam_mukhi
PostPosted: Thu Jan 31, 2013 8:07 pm    Post subject: Re: Jar files to connect to IBM MQ from standalone Java prog Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Feb 01, 2013 5:26 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

It's part of the client install but you may have to use a custom install.

http://www-304.ibm.com/support/docview.wss?uid=swg24032744

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
shivam_mukhi
PostPosted: Sun Feb 03, 2013 8:58 pm    Post subject: Reply with quote

Newbie

Joined: 31 Jan 2013
Posts: 4

fjb_saper wrote:
It's part of the client install but you may have to use a custom install.

http://www-304.ibm.com/support/docview.wss?uid=swg24032744

Have fun


Thank you very much for replying.
You mean to say that JMS client is a part of WMQ client ? If yes, can you please help me to find the installer. I searched on the net but unfortunately couldn't get. I got wmq 7.0.9 version for solaris machine but as i am a novice i got stuck with the few steps mentioned at the link below.

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.amqdac.doc%2Fsq10550_.htm

Many many thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » Jar files to connect to IBM MQ from standalone Java program
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.