Author |
Message
|
maja |
Posted: Fri Jun 27, 2008 2:33 am Post subject: Reading Binary Messages from Queue with C++ API for MQ |
|
|
Apprentice
Joined: 13 Jun 2006 Posts: 30
|
Hi,
We have a requirement in which an application reads a clob column form database and writes to MQ Queue(this is .net application), my application has to read this message and use it, This reading application is C++ application. When I try to read teh message from the queue, I am not able to do the same. Please suggest as to how I should do the same.
Thanks,
Maja. |
|
Back to top |
|
 |
exerk |
Posted: Fri Jun 27, 2008 3:19 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
What is the CC (Completion Code) and RC (Reason Code) being passed back to the C++ application? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
maja |
Posted: Mon Jul 07, 2008 12:47 am Post subject: |
|
|
Apprentice
Joined: 13 Jun 2006 Posts: 30
|
I could read the message at last using the C++ api. The same message I am trying to put back, it will put the message , but the format would be completely different..... so teh same cannot be unzipped to retrieve teh original message.
Please advise.
Thanks,
Maja |
|
Back to top |
|
 |
exerk |
Posted: Mon Jul 07, 2008 1:06 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
I'm not sure I understand your question, but...
The application which is reading from the database must put the message in a format and structure the receiving application will understand. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
maja |
Posted: Mon Jul 07, 2008 1:18 am Post subject: |
|
|
Apprentice
Joined: 13 Jun 2006 Posts: 30
|
OK l;et me rephrase the question.
I have a BLOB column in database.
Application 1 reads database and writes to the Queue(binary message), using .net.
Application 2 has to retrieve this message form Queue(get ) and use it for some processing and put it back as binary to another queue.(this applkication is C++ application.
So the Application 2 is able to read from the queue a Binary message and process it. It then zips this message and tries to put it to queue. It is successful but the format is not retained, due to which the same message cannot be created form the binary data.
So actually having a problem to put a binary message to the queue using C++ api.
please advise.
Thanks,
Maja |
|
Back to top |
|
 |
exerk |
Posted: Mon Jul 07, 2008 1:49 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
And in which format is your application 2 putting the message?
When you state that the application 'zips' the message, precisely what do you mean? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
|