|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reading a message by columns |
« View previous topic :: View next topic » |
Author |
Message
|
sivadharsan |
Posted: Sat Jan 18, 2003 4:14 am Post subject: Reading a message by columns |
|
|
Newbie
Joined: 14 Jan 2003 Posts: 7
|
How to read an incoming message from a MQ as columns?
The message from MQ is predefined (when writing to a queue) into some columns (Ex: EmpID , Name , Address). When reading messages into the application a requirement arises to read the incoming message as the defined columns.
Is there any direct API support to do this? Or any smart way to handle this? |
|
Back to top |
|
 |
kirani |
Posted: Sat Jan 18, 2003 2:12 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You should write some split function, which will populate data into EmpId, Name, Address, etc. fields using the BUFFER returned by your MQGET call. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
TonyD |
Posted: Sun Jan 19, 2003 1:18 pm Post subject: |
|
|
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
|
|
Back to top |
|
 |
nimconsult |
Posted: Sun Jan 19, 2003 11:14 pm Post subject: |
|
|
 Master
Joined: 22 May 2002 Posts: 268 Location: NIMCONSULT - Belgium
|
It depends on the programming language you are using.
If you are working with something like C or Cobol or most procedural languages, you will generally map a pre-defined structure on the buffer pointer received from MQGET.
If you are working with Java, you will call methods methods of the MQMessage to retrieve requested data types (readInt, readString...).
Nicolas _________________ Nicolas Maréchal
Senior Architect - Partner
NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|