ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Send message from queue1 to queue2 and read msg from queue2

Post new topic  Reply to topic
 Send message from queue1 to queue2 and read msg from queue2 « View previous topic :: View next topic » 
Author Message
kkasibatla
PostPosted: Tue Dec 13, 2005 7:50 am    Post subject: Send message from queue1 to queue2 and read msg from queue2 Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 13, 2005 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message
kkasibatla
PostPosted: Tue Dec 13, 2005 8:01 am    Post subject: Send message from queue1 to queue2 and read msg from queue2 Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 13, 2005 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
kkasibatla
PostPosted: Tue Dec 13, 2005 8:17 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 13, 2005 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
kkasibatla
PostPosted: Tue Dec 13, 2005 8:36 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 13, 2005 8:37 am    Post subject: Reply with quote

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
View user's profile Send private message
kkasibatla
PostPosted: Tue Dec 13, 2005 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 13, 2005 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Tue Dec 13, 2005 11:13 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

And post the actual exception as well.....
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Send message from queue1 to queue2 and read msg from queue2
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.