Author |
Message
|
kkasibatla |
Posted: Tue Dec 13, 2005 7:50 am Post subject: Send message from queue1 to queue2 and read msg from queue2 |
|
|
Newbie
Joined: 13 Dec 2005 Posts: 5
|
Send a message to Queue1 when we listen the Queue1 in onMessage() method. Can we send the same message to Queue2 from onMessgae().
Last edited by kkasibatla on Tue Dec 13, 2005 8:12 am; edited 1 time in total |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Dec 13, 2005 7:53 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I hope your team lead doesn't read MQSeries.net.
We're not here to do your homework for you.
If you need to write a program, you need to be a programmer.
To be a programmer, you need to be able to solve problems ON YOUR OWN.
Good luck! _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kkasibatla |
Posted: Tue Dec 13, 2005 8:01 am Post subject: Send message from queue1 to queue2 and read msg from queue2 |
|
|
Newbie
Joined: 13 Dec 2005 Posts: 5
|
jefflowrey -
writting a program is not the deal my concern was to know that
whether can i send a message to queue2 in the onmessage() method of queue1.
i.e: once Queue1 receives message you can listen it in onMessage() method and i want to send this message to queue2.
is it possible. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Dec 13, 2005 8:09 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If you had a question, then you should have asked it.
You didn't. You stated requirements.
You have now asked a question,
Quote: |
once Queue1 receives message you can listen it in onMessage() method and i want to send this message to queue2.
is it possible. |
What have you tried? Where have you looked for this information? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kkasibatla |
Posted: Tue Dec 13, 2005 8:17 am Post subject: |
|
|
Newbie
Joined: 13 Dec 2005 Posts: 5
|
well i was in the process of changing the content. ok
my program sends a message to a queue. and i can read the messages from the queue. i want to send same message back to 2nd queue from onmessage() method through sender, that time it throws null pointer exception.
this is myt requirement. i checked some resources but wasnot helpful to my requirement. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Dec 13, 2005 8:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What resources did you check?
What happens when you try it? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kkasibatla |
Posted: Tue Dec 13, 2005 8:36 am Post subject: |
|
|
Newbie
Joined: 13 Dec 2005 Posts: 5
|
i check IBM site related examples which does this but couldn't find any related one. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Dec 13, 2005 8:37 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
kkasibatla wrote: |
i check IBM site related examples which does this but couldn't find any related one. |
You found code to send a message, right? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kkasibatla |
Posted: Tue Dec 13, 2005 8:49 am Post subject: |
|
|
Newbie
Joined: 13 Dec 2005 Posts: 5
|
yep i found to send and receive, but i get null pointer exceptions when i try to embed send messages to queue2 in receive messages(onMessage()) of queue1 |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Dec 13, 2005 8:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So, post your code, and show where you get null pointer exceptions. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Dec 13, 2005 11:13 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
And post the actual exception as well..... |
|
Back to top |
|
 |
|