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 » Need help writing an C based MQ client/Server prog for MQ 6

Post new topic  Reply to topic
 Need help writing an C based MQ client/Server prog for MQ 6 « View previous topic :: View next topic » 
Author Message
j1
PostPosted: Wed Mar 15, 2006 1:22 pm    Post subject: Need help writing an C based MQ client/Server prog for MQ 6 Reply with quote

Centurion

Joined: 23 Jun 2003
Posts: 139

Hi ,

I sthere any sample code for SSL based communications using C based programs in MQ 6. My C is a bit rusty, so im trying to find some guidance. Appreciate the help. This is on Solaris
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Mar 15, 2006 2:59 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

What are you looking for, how to pass the SSL parameters on the MQCONNX call?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
j1
PostPosted: Thu Mar 16, 2006 7:02 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2003
Posts: 139

to start with:

- What is a truststore and what is a keystore. What is the difference and how do i assign them in C Iss the .sto file the keystore. Do i need to do anything else for the truststore.

- How is writing an SSL client for C different than Java

- I am trying to use a channel table. How do I assign that in the code, or Do i use an environment variable and if so, which one...

Thanks
Back to top
View user's profile Send private message
j1
PostPosted: Thu Mar 16, 2006 8:47 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2003
Posts: 139

Im also getting undefined symbol errors for all my MQ calls like:

MQCLOSE
MQPUT
MQOPEN
MQDISC
MQCONNX
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 16, 2006 8:56 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You should read the Security manual for WebSphere MQ.

It should help a lot with your questions on SSL. And then you should go look for a more general primer or tutorial on SSL.

The Application Programming Guide has specific steps for building C applications. You should read and follow those.

We're not here to give general training.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Mar 16, 2006 9:16 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

This Redbook might help: http://www.redbooks.ibm.com/abstracts/sg247128.html

Look at Chapter 10 Section 2. That is, Section 10.2.
Back to top
View user's profile Send private message
j1
PostPosted: Thu Mar 16, 2006 10:03 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2003
Posts: 139

jefflowrey, I dont beleive I asked for general training. Most questions, can eventually be boiled down to a 'training issue'. I beleive my questions were reasonably specific.

I hope your general answers to my specific questions help...
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Mar 16, 2006 10:34 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

sailesh wrote:
I beleive my questions were reasonably specific.

Yes, but it takes atleast a week to explain you how all that works.
Have you read the SSL manual?
You need a C programming class.

Quote:
Im also getting undefined symbol errors for all my MQ calls like:

MQCLOSE
MQPUT
MQOPEN
MQDISC
MQCONNX

How are we suppose to understand what symbols?

If you think we are not helping then let me try something
Is your simple C programming without SSL working?
What are you trying to do in your program?
You mentioned you are using MQCONNX call and in another post you are talking about channel tables? Which one are you exactly using
Have you looked at the samples shipped with the product? Like amqsput amqsget etc...

Hope this helps you to get started with what you need to look for.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
j1
PostPosted: Thu Mar 16, 2006 11:26 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2003
Posts: 139

Vennela, As I had pointed out earlier, my C is quite rusty and its been a while since I last coded in C

What I came here looking for was something to get me started in the right direction. for the benefit of others in this forum a sample SSL MQ client, along with an enterprise implementation example can be found at:

http://www.redbooks.ibm.com/redbooks/pdfs/sg246814.pdf

With regards to

Quote:
"How are we suppose to understand what symbols?"


The error I was getting with unresolved symbols was to do with the MQCLOSE,MQOPEN etc... calls themselves not being understood by the compiler. This was because the cmqc.h header file was not in the correct dir, as i later found out.

I did go through the SSL manual and a couple of other books, but a lot of it seems to be based on MQ 5.3. Thanks anyways..[/quote]
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Mar 16, 2006 11:38 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Well that's quite a steep learning curve......
MQ v6 information center is in
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp

Security section is
MQ v6 Security

Welocme to MQ world
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Need help writing an C based MQ client/Server prog for MQ 6
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.