What is the problem with message queues? I've used
them succesfully....
--- [EMAIL PROTECTED] wrote:
> I've got a message-driven bean listening to a topic.
> (Yes, I know, queues
> would be better, but the queue/message driven
> mechanism has a problem, last
> I checked.) However, every message causes a new
> instantiation of a
> message-driven bean... and since it's a topic, it's
> feeding the message to
> every listener, which means the second message going
> through the topic gets
> processed TWICE (once by each instantiated bean),
> the third gets processed
> three times, etc.
>
> Is there a workaround? I normally dislike
> workarounds, but this is currently
> just for a dog and pony show coming up. The beans
> are simple; I've included
> one example (does nothing worthwhile.)
>
>
> ATTACHMENT part 2 application/octet-stream
name=Router.java
> ATTACHMENT part 3 application/octet-stream
name=MessageBase.java
__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/