Author |
Message
|
bath |
Posted: Thu Dec 30, 2004 7:50 am Post subject: general question |
|
|
Apprentice
Joined: 23 Nov 2004 Posts: 29
|
Hello All,
I read the manual "Application programming guide" but much of things remained fuzzy.
could you give me explanations on this?
what I need is to write two applications which can send messages to each other.
So in my mQserver I define:
- One Queue Manager
- One queue
- One server connection channel
- One Client connection channel
My first application A should be able to send and receive messages from application B.
Message receive from B should be check and processed. If there are errors application A should send a report to application B and the message will be "resend" again with a high priority.
To do this Do I have to create in addition of what I defined higher:
a) a Dead letter queue in my QM?
b) define another queue for reply and report messages in my MQMD
structure?
if yes is each application must have a different reply and report
queue?
c) is the queue to put messages has to be different from the two
application?
any help shoul be greatly appreciated
thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Dec 30, 2004 7:54 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What have you tried?
Have you created a queue manager? Have you defined the objects you list?
Did you try running your programs? Did you get errors? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bath |
Posted: Thu Dec 30, 2004 8:06 am Post subject: |
|
|
Apprentice
Joined: 23 Nov 2004 Posts: 29
|
thanks ,
what I did until now :
-I created one queue manager, one queue, and one sever connection
channel and one server connection channel.
- i also write two c++ programs. I can send messages from
program A to program B.
now if i want to extend my program so that program B can send messages to program A. Do I have to use the same queue? or do i define another queue?
to handle errors messages do i have to create a dead letter queue in my QM and also define two others queues for reply messages?
thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Dec 30, 2004 8:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What kind of messages are being exchanged? Is program A making a "request" of program B, and then program B is making a "reply"?
Or are the messages unrelated? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bath |
Posted: Thu Dec 30, 2004 8:33 am Post subject: |
|
|
Apprentice
Joined: 23 Nov 2004 Posts: 29
|
thanks again,
messages are unrelated but notifiacation can be send for good reception of messages
thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Dec 30, 2004 8:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If messages are logically unrelated, then they should logically not be in the same queue.
At least, in my opinion. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bath |
Posted: Thu Dec 30, 2004 8:40 am Post subject: |
|
|
Apprentice
Joined: 23 Nov 2004 Posts: 29
|
|
Back to top |
|
 |
|