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 API Support » Need major help coding HPUX C for MQSeries JMS.

Post new topic  Reply to topic Goto page Previous  1, 2
 Need major help coding HPUX C for MQSeries JMS. « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Tue Aug 22, 2006 8:09 am    Post subject: Reply with quote

Grand High Poobah

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

mpsmith19 wrote:

The API I refer to already exists for our in-house TCP/IP protocol and for SeeBeyond's JMS. (....) One of them is COBOL. MicroFocus COBOL to be exact.

I think I hurt pulled a muscle trying to remember how to code in COBOL. Wonder if I can get workman's comp for it?


If you've got MF COBOL & SeeBeyond you should get danger money
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 22, 2006 8:12 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

mpsmith19 wrote:
jefflowrey wrote:

Look at the pub/sub samples that come with WebSphere MQ.

For example, from amqsresa.c


Sorry, not familiar with the MQ naming convention on their samples.

The file amqsresa.c doesn't exist in my MQ samples directory. The closest thing to it is amqsreq0.c. Also, a grep of the samples directory for MQFMT_RF_HEADER comes back with 0 files.

Perhaps I'm on too old a version of MQ for the samples you're quoting? I believe I was told that we're on MQSeries 5.3.




Maybe this only comes with Broker somehow... I've also got Broker Toolkit installed on this same machine...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 22, 2006 8:15 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

No, on one of the HPUX machines I've got at this client, there is /opt/mqm/samp/pubsub/amqsresa.c

But this is MQ v6.

You should have these samples from CSD08 of MQ v5.3, I would think.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 22, 2006 12:00 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Here's the doc on the pub/sub sample programs...
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.amqnar.doc/amq622f.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
saketr
PostPosted: Wed Aug 23, 2006 5:51 am    Post subject: Reply with quote

Apprentice

Joined: 08 Feb 2006
Posts: 41

mpsmith19 wrote:
...Or better yet a manual with a title like MQSeries - Using JMS from non-Java languages. But I don't think IBM has written it


See the XMS book titled 'Message Service Clients for C/C++ and .NET' (i.e. Using JMS from non-Java languages), here ftp://ftp.software.ibm.com/software/integration/support/supportpacs/individual/ia94.pdf
Back to top
View user's profile Send private message
mpsmith19
PostPosted: Wed Aug 23, 2006 5:54 am    Post subject: Reply with quote

Novice

Joined: 02 May 2005
Posts: 20

saketr wrote:
mpsmith19 wrote:
...Or better yet a manual with a title like MQSeries - Using JMS from non-Java languages. But I don't think IBM has written it


See the XMS book titled 'Message Service Clients for C/C++ and .NET' (i.e. Using JMS from non-Java languages), here ftp://ftp.software.ibm.com/software/integration/support/supportpacs/individual/ia94.pdf


Thanks for trying, but not helpful for an HPUX question.
_________________
Michael P. Smith
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 23, 2006 6:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Michael, did you find the pub/sub samples?

The readme for v5.3 CSD11 indicates that they should be included. If nothing else, you can download the obsolete MA0C pub/sub broker and extract them from that. DON'T *install* it, though.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mpsmith19
PostPosted: Wed Aug 23, 2006 6:27 am    Post subject: Reply with quote

Novice

Joined: 02 May 2005
Posts: 20

jefflowrey wrote:
Michael, did you find the pub/sub samples?

The readme for v5.3 CSD11 indicates that they should be included. If nothing else, you can download the obsolete MA0C pub/sub broker and extract them from that. DON'T *install* it, though.


Nope. Still haven't found the samples. I'm not an MQ person so I've spent very little time on the IBM MQ site. So when I'm told to download something I have no idea where to find it. For me finding a file on the MQSeries site has been painful at best. If you can supply a link to MA0C (whatever it is), I'd appreciate it.

I did query the System Administrator and he informed me that we have 5.3 CSD06 installed with no plans of changing it until they upgrade to 6.0.

I'm trying to avoid having a test message placed on an MQ queue by one of the Websphere programmers so that I can retrieve it and disect the MQRFH2 header. I'm trying REAL hard to avoid that. But it's seeming more and more likely every day.

I've also been in meetings since my original post and the waffling continues. Still not even 50% what transport method they want to use for this critical application . I swear someone has a camera in my cube and they just love to see the frustrated look on my face every time the development direction changes.
_________________
Michael P. Smith
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 23, 2006 6:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Support Packs are here.
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27007197#1

It may actually be better to download the MQ client, and install that. The client should include the pub/sub samples in the Development Toolkit portion, and you should be able to do a custom install of just that piece.

MA0C is, as I've said, obsolete, so it's on the withdrawn page.
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27007170

And is
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000643&loc=en_US&cs=utf-8&lang=en
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Aug 23, 2006 6:36 am    Post subject: Reply with quote

Grand High Poobah

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

mpsmith19 wrote:

I'm trying to avoid having a test message placed on an MQ queue by one of the Websphere programmers so that I can retrieve it and disect the MQRFH2 header. I'm trying REAL hard to avoid that. But it's seeming more and more likely every day.


Try this:
http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi.cgi?CTY=US&FNC=SRX&PBL=SC34659600

Application Programming Reference in PDF form. It describes the RFH2 header in detail - should save a disection.

MA0C is at

http://www-1.ibm.com/support/docview.wss?rs=203&uid=swg24000643&loc=en_US&cs=utf-8&lang=en
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 23, 2006 6:44 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

MQ information center is http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp

App Programming Reference on MQRFH2 is
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzak.doc/mqrfh2.htm

Using Java page on how JMS populates MQRFH2 is
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/csqzaw1481.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mpsmith19
PostPosted: Wed Aug 23, 2006 7:04 am    Post subject: Reply with quote

Novice

Joined: 02 May 2005
Posts: 20

Jeff and Vitor, thanks for the links.

The link to the section on Mapping JMS messages onto Websphere MQ messagse has helped immensely. Not so much in interpretting the information, but in showing my management the difficulty in having a C program trying to interpret an MQRFM2 header that may or may not contain many user defined values.

I'm going to push for my API to use native MQSeries instead of MQSeries JMS unless a version of XMS becomes available for HPUX.

Thanks for the help. I think this thread is done
_________________
Michael P. Smith
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 23, 2006 2:02 pm    Post subject: Reply with quote

Grand High Poobah

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

mpsmith19 wrote:
Jeff and Vitor, thanks for the links.

The link to the section on Mapping JMS messages onto Websphere MQ messagse has helped immensely. Not so much in interpretting the information, but in showing my management the difficulty in having a C program trying to interpret an MQRFM2 header that may or may not contain many user defined values.

I'm going to push for my API to use native MQSeries instead of MQSeries JMS unless a version of XMS becomes available for HPUX.

Thanks for the help. I think this thread is done
Don't push for that...
Embrace JMS and have them suppress the RFH header....

At level 5.3 in the JNDI make sure the target Client is marked as MQ and not JMS for the queue definitions...
For the replyto Destination a little more is required...but easy to program.

At level 6.0 the default is targetClientMatching(true) which means even request reply will go smoothly....

Worst case scenario your app should be able to read and discard the x bytes from the RFH header.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
saketr
PostPosted: Thu Aug 24, 2006 1:31 am    Post subject: Re: Need major help coding HPUX C for MQSeries JMS. Reply with quote

Apprentice

Joined: 08 Feb 2006
Posts: 41

mpsmith19 wrote:
I've searched the IBM site and this site for several days and can't really find an answer. Although I have seen mention of XMS here, but can't find an HPUX XMS on the IBM site.

Any help would be greatly appreciated.


Hi there,

HP-UX is in the plan for porting XMS, but due to other priority requirements, it is not currently expected to be shipped in the near future. If you would like to make a formal request, through your IBM account team, for XMS to support HP-UX, then that will help the XMS development team to prioritise their plans.

Warm regards,
Saket
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 API Support » Need major help coding HPUX C for MQSeries JMS.
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.