Posted: Wed Oct 20, 2004 7:10 am Post subject: Message Driven Bean Question
Voyager
Joined: 07 Jan 2004 Posts: 75
two types of messages coming into a system and bein dropped on two different queues.
They will both eventually be accessing the same DB but one queue recieves persist msg and the other receive non-persist msg
the persist msg are db updates
the non persist are DB searches
should I use a MDB for both?
OR
use a stateless session bean (request/reply) for the non persist msgs since they will just be searches on the database anyway and should wait for reply?
The real question is what are you doing with the answer to the searches. If they are displayed to a user as they come back use the session bean.
If they are handled without human intervention and without regard to any correlation Id they might have use an MDB. I would not use a selector with an MDB. It will have some implications as to synchronized queue access methods if you need to use more then one selector.
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