Hello Guy's,
I've got a little problem on how to do something @ work.
Well, imagine that you've got a lot of people that can put message in a queue. But you want this queue to be read by more then one user but only 1 user at the time.
so ... you want that the next person that connect to the application read the first message on the queue.
For example :
User 1 : put message A in reception queue
User 2 : put message B in reception queue
User 3 : put message C in reception queue
After, this the user 4 is connecting to the application and when it connect on the home page, the user 4 read's the first message on the queue. So it read the message A.
The user 5 connect .. it reads the message B .. and guess what : user 6 read the message C.
My concern is how to do that with EJB3, without using for example the
JBOSS toolkit that can give you how to do this by the @ Comsumer method.
My problems is that the EJB3 Message Driven Bean has the onMessage and it always listen on the Queue. So this scenario is not possible with that kind of
message.
Im a little confuse , can someone help me with that ?
Thanks.