dcsimg
How to ensure onMessage method is not called with the next message until the process of the last message is finished?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alan_Choy
Posted On:   Friday, December 27, 2002 10:46 AM

I have a class that implements both MessageDrivenBean and MessageListener, which listens to a queue. What is the best way to ensure onMessage method is not called with the next message until the process of the last message is finished?

N.B.: I noticed the container create another instance of MDB to process the second message.

Re: How to ensure onMessage method is not called with the next message until the process of the last message is finished?

Posted By:   vinay_salehithal  
Posted On:   Friday, December 27, 2002 11:20 AM

Have you tried this...
In yr app-server specific MDB depolment descriptor make the values of both the maxbeaninfreepool and initbeansinfreepool to 1. That way only one instance is availabe to serve the messages.

Like in weblogic-ejb-jar.xml

.



exampleMessageDriven1





1

1



quotes



examplesMessageDriven1




About | Sitemap | Contact