|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Exit looking for some help, warning: C layman... |
« View previous topic :: View next topic » |
Author |
Message
|
Michael Dag |
Posted: Wed Dec 22, 2004 5:22 am Post subject: Message Exit looking for some help, warning: C layman... |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
posting as a seperate question and not as a response to another similar post this time...
I have been able to get some samples working and am able to substitute character data in the MQMD using a C Message Exit:
Code: |
memcpy((PMQMD)((PMQXQH)(AgentBuffer))->MsgDesc.Format , MQFMT_STRING , MQ_FORMAT_LENGTH); |
knowing very little of C, to replace an MQLONG or MQBYTE value properly like resetting the MsgType or Persistance for that matter
what would I need to do to set the MsgType from DATAGRAM to REQUEST:
Code: |
memcpy((PMQMD)((PMQXQH)(AgentBuffer))->MsgDesc.MsgType , MQMT_REQUEST , sizeof(MQLONG)); |
does not work as everytime the exit blows up, removing this line everything works... but then the MsgType is not set to REQUEST...
I know I am doing something wrong, so looking for some help... _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
clindsey |
Posted: Wed Dec 22, 2004 5:38 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Michael,
For MQLONG and MQBYTE, just do an assignment.
(PMQMD)((PMQXQH)(AgentBuffer))->MsgDesc.MsgType = MQMT_REQUEST ;
Charlie |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Dec 22, 2004 6:05 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
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
|
|
|
|