You don't need any onMessage method to *send* JMS messages. Please read the tutorial for more details.
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
posted
0
ok.
sessionbean send messages to Queue or topic.
then MDB listen to messages and when there is a message it take the message.
then who is the consumer?
is consumer MDB?
A consumer is any class that implements the MessageListener and subscribes to the topic/queue.
An MDB is a MessageListener (implements the interface) and hence is a consumer.
An MDB is also an EnterpriseBean - so you can use Container supported transactions, object pooling features right out of the box as you would with any ejb.
ram.
This message was edited 1 time. Last update was at by ramprasad madathil
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
posted
0
is there any other thing it can be consumers other than MDbs?
Let me explain you more clearly ,Any class can be Consumer if it implements the MessageListener , and we normally go for MDB as the container takes care of all things like MDB instance creation and many other things .
Save India From Corruption - Anna Hazare.
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
posted
0
ok.
1)client send messages to Queue.
2)MDB gets messages from Queue.
Is this the whole process?
But i read that MDB is a like a voice mail.It doesn't need to present both message sender and receiver.
anyway Isn't there any other process?
This message was edited 1 time. Last update was at by Samanthi perera
subject: can Session beans allow us to send JMS messages