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 Discussion » Connectivity from MQ JMS to C++

Post new topic  Reply to topic
 Connectivity from MQ JMS to C++ « View previous topic :: View next topic » 
Author Message
viswanath
PostPosted: Wed Dec 17, 2008 9:55 pm    Post subject: Connectivity from MQ JMS to C++ Reply with quote

Apprentice

Joined: 09 Jun 2005
Posts: 33

Hi All,

We have a requirement to connect to c++ system from message broker JMS environment.we have set the configuration required for jms(binding file).

how can an external c++ program able to connect to MQ JMS environment
we are trying to use XMS fixpack provided by IBM but still we are getting some connection failures.it would be greatly helpful if could let us know any specifc libraries or dlls needs to be used to connect to c++ environment.

Thanks in advance
Viswanath
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 18, 2008 12:59 am    Post subject: Reply with quote

Grand High Poobah

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

Even with the XMS support pack you need at a minimum the MQ Client installed on the machine. Did you try that?

Also connection failures mean little to nothing without more information:

OS and MQ level?
What was your connection setup?
What was the error message?
What was the MQ return code and MQ reason code?

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
viswanath
PostPosted: Thu Dec 18, 2008 6:17 am    Post subject: Reply with quote

Apprentice

Joined: 09 Jun 2005
Posts: 33

Thanks for the reply.actually we have only installed XMS fixpack in the c++ environment side.we have the requirement to post messages and to retireve messages from JMS MQ queues.for this do we need to provide any dlls or external libraries to give to C++ folks?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 18, 2008 6:19 am    Post subject: Reply with quote

Grand High Poobah

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

viswanath wrote:
for this do we need to provide any dlls or external libraries to give to C++ folks?


fjb_saper wrote:
you need at a minimum the MQ Client installed on the machine



_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
viswanath
PostPosted: Thu Dec 18, 2008 9:42 am    Post subject: Reply with quote

Apprentice

Joined: 09 Jun 2005
Posts: 33

Thanks victor.once they have installed mq client do they need to do any configurations other than running the c++ program?

Please suggest if you have some c++ programs to get the messages from jms queues.

we have provided the ipaddress,port of mq,initial context factory and location of the bindings to the c++ folks.any thing other than this we need to provide to them to run the program.

actually we are very new for the connectivity with c++..please suggest.

Thanks
Viswanath.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 18, 2008 12:24 pm    Post subject: Reply with quote

Grand High Poobah

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

viswanath wrote:
Thanks victor.once they have installed mq client do they need to do any configurations other than running the c++ program?


Maybe. The configuration in the manuals might be good.

viswanath wrote:
Please suggest if you have some c++ programs to get the messages from jms queues.


There's no such thing as a JMS queue. There are WMQ queues accessed by Java apps using the JMS. There is sample code supplied with the product, and also at the top of this page. These address using C++ to access WMQ (perfectly valid) rather than the XMS you're talking about using.

viswanath wrote:
we have provided the ipaddress,port of mq,initial context factory and location of the bindings to the c++ folks.any thing other than this we need to provide to them to run the program.


The matching configuration on the sever side.

viswanath wrote:
actually we are very new for the connectivity with c++..please suggest.


Decide if you want to use C++ or XMS. Advantages & disadvantages on both sides.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 19, 2008 12:09 am    Post subject: Reply with quote

Grand High Poobah

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

viswanath wrote:

we have provided the ipaddress,port of mq,initial context factory and location of the bindings to the c++ folks.any thing other than this we need to provide to them to run the program.

actually we are very new for the connectivity with c++..please suggest.

Thanks
Viswanath.


Yes, at a minimum for a client connection you need
  • IP name / address of the MQ Server
  • TCP/IP port the QMGR is listening on
  • The name of the SVRCONN channel to use for the connection


Now I would expect that information to be in the QCF. In java you retrieve the configured qcf from the initial context. Don't know if XMS allows you to do the same. And if you are new to MQ I would suggest you work with filecontext as initial context (at least when using java).

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Connectivity from MQ JMS to C++
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.