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 » Can I use Message Driven Bean just to send messages

Post new topic  Reply to topic
 Can I use Message Driven Bean just to send messages « View previous topic :: View next topic » 
Author Message
kiran_tala
PostPosted: Wed Oct 20, 2004 7:40 am    Post subject: Can I use Message Driven Bean just to send messages Reply with quote

Novice

Joined: 16 Jul 2004
Posts: 14

we are using MDB's to receive messages and process them and sending the reply back using setJMSReplyTo().

Now we have a case of just to send messages and we know that we can use EJB session beans.

The question is can I use an MDB just to send messages instead of listening to any queue or topic ?

Why I am posting this question is for consistency reasons if possible we would like to use MDB's for all the below cases.

(we are using the below first two cases)

1) receive messages and process them and send the reply back

2) receive messages and process them and update the database

(this is the one I need some help)
3) just to send messages from the business layer without listening to the incoming messages.

Please let me know.

kiran
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 20, 2004 9:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

An MDB is only created and invoked when a message appears on a queue.

Your question is similar to asking "Can I use a Session Bean to create a Session?"
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kiran_tala
PostPosted: Wed Oct 20, 2004 9:41 am    Post subject: Can I use Message driven bean just to send messages Reply with quote

Novice

Joined: 16 Jul 2004
Posts: 14

Hello jefflowrey,

Thanks for the reply. But I am using MDB's to receive messages and I know MDB's only to receive messages.

But I have been asked by team lead whether we can use MDB's just to send messages instead of using a session bean to maintain constistency.
(this is the first project we are using MDB's).

The question is

1) can we do just sending messages with MDB without listening to any queue ? (I told my team lead that MDB's are not that purpose.just I want to double check with this forum since I am not sure whether we can MDB like that also).

2) if yes, is there any disadvantage of doing that like resources wise?

I really appreicate your reply.

kiran
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Oct 20, 2004 10:20 am    Post subject: Re: Can I use Message driven bean just to send messages Reply with quote

Jedi Knight

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

kiran_tala wrote:
But I am using MDB's to receive messages and I know MDB's only to receive messages.
....
1) can we do just sending messages with MDB without listening to any queue ?


Didn't you answer your own question? If an MDB gets started by receiving a message, how are you going to use one without listening to any queue?
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 » Can I use Message Driven Bean just to send messages
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.